Documentation ¶
Index ¶
- type Config
- type Repository
- func (r Repository) AddLabelsToPullRequest(number int, labels []string) error
- func (r Repository) FileContent(filepath string) (*github.RepositoryContent, error)
- func (r Repository) Name() string
- func (r Repository) OpenPullRequests() ([]*github.PullRequest, error)
- func (r Repository) Owner() string
- func (r Repository) PullRequestModifiedFiles(number int) ([]*github.CommitFile, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository represents GitHub repository.
func (Repository) AddLabelsToPullRequest ¶
func (r Repository) AddLabelsToPullRequest(number int, labels []string) error
AddLabelsToPullRequest adds labels to a pull request.
func (Repository) FileContent ¶
func (r Repository) FileContent(filepath string) (*github.RepositoryContent, error)
FileContent returns content of a single file. If filepath doesn't reference to a file it returns nil.
func (Repository) OpenPullRequests ¶
func (r Repository) OpenPullRequests() ([]*github.PullRequest, error)
OpenPullRequests lists all the pull requests in the open state.
func (Repository) PullRequestModifiedFiles ¶
func (r Repository) PullRequestModifiedFiles(number int) ([]*github.CommitFile, error)
PullRequestModifiedFiles lists the files in a pull request.
Click to show internal directories.
Click to hide internal directories.