github

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Github

type Github struct {
	// contains filtered or unexported fields
}

Github contain github configuration

func New

func New(token, baseURL string) (*Github, error)

New create a new Github client

func (Github) CreatePullRequest

func (g Github) CreatePullRequest(ctx context.Context, repository domain.Repository, newPR domain.NewPullRequest) error

CreatePullRequest creates a pull request

func (Github) GetPullRequestStatuses

func (g Github) GetPullRequestStatuses(ctx context.Context, orgName, branchName string) ([]domain.PullRequest, error)

GetPullRequestStatuses gets the statuses of all pull requests of with a specific branch name in an organization

func (Github) GetRepositories

func (g Github) GetRepositories(ctx context.Context, orgName string) ([]domain.Repository, error)

GetRepositories fetches repositories from and organization

func (Github) MergePullRequest

func (g Github) MergePullRequest(ctx context.Context, pr domain.PullRequest) error

MergePullRequest merges a pull request

Jump to

Keyboard shortcuts

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