gitrepo

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package gitrepo provides all the required structs and interfaces to use a git repository (eg: github, gitlab, bitbucket)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitRepo

type GitRepo interface {
	// Authenticate to a git repository server
	Authenticate(host, token string) error
	// CreatePR in a git repository server
	CreatePR(pr NewPR) (string, error)
}

GitRepo is a interface to represent any git repository (eg: github, gitlab, bitbucket)

type NewPR

type NewPR struct {
	Branch      string
	Title       string
	Description string
	Org         string
	Repository  string
}

NewPR is a struct used to create a new pull request in a git repository

Directories

Path Synopsis
Package github that implements GitRepo interface
Package github that implements GitRepo interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL