manager

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GithubManager added in v0.2.1

type GithubManager struct {
	V3         *github.Client
	V4         *githubv4.Client
	Repository string
	Owner      string
}

GithubManager for handling requests to the Github V3 and V4 APIs.

func NewGithubManager added in v0.2.1

func NewGithubManager(s *models.Source) (*GithubManager, error)

NewGithubManager ...

func (*GithubManager) GetCommitByID added in v0.2.1

func (m *GithubManager) GetCommitByID(objectID string) (*models.CommitObject, error)

GetCommitByID ...

func (*GithubManager) GetPullRequestByID added in v0.2.1

func (m *GithubManager) GetPullRequestByID(objectID string) (*models.PullRequestObject, error)

GetPullRequestByID ...

func (*GithubManager) ListModifiedFiles added in v0.2.1

func (m *GithubManager) ListModifiedFiles(prNumber int) ([]string, error)

ListModifiedFiles in a pull request (not supported by V4 API).

func (*GithubManager) ListOpenPullRequests added in v0.2.1

func (m *GithubManager) ListOpenPullRequests() ([]*models.PullRequest, error)

ListOpenPullRequests gets the last commit on all open pull requests.

func (*GithubManager) PostComment added in v0.2.1

func (m *GithubManager) PostComment(objectID, comment string) error

PostComment to a pull request or issue.

func (*GithubManager) UpdateCommitStatus added in v0.2.1

func (m *GithubManager) UpdateCommitStatus(objectID, statusContext, status string) error

UpdateCommitStatus for a given commit (not supported by V4 API).

Jump to

Keyboard shortcuts

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