Documentation
¶
Index ¶
- type Manager
- func (m *Manager) AddComment(subjectID string, comment string) error
- func (m *Manager) GetChangedFiles(pr int) ([]string, error)
- func (m *Manager) GetCommitByID(objectID string) (models.Commit, error)
- func (m *Manager) GetLastCommits() ([]models.PullRequestCommits, error)
- func (m *Manager) GetPullRequestByID(objectID string) (models.PullRequest, error)
- func (m *Manager) SetCommitStatus(subjectID, ctx, status string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
Manager for handling requests to the Github V3 and V4 APIs.
func (*Manager) AddComment ¶
AddComment to a PullRequest or issue (cost 1).
func (*Manager) GetChangedFiles ¶
GetChangedFiles in a PullRequest (not supported by V4 API).
func (*Manager) GetCommitByID ¶
GetCommitByID ... (zero cost).
func (*Manager) GetLastCommits ¶
func (m *Manager) GetLastCommits() ([]models.PullRequestCommits, error)
GetLastCommits gets the last commit on all open Pull requests (costs 1/5000).
func (*Manager) GetPullRequestByID ¶
func (m *Manager) GetPullRequestByID(objectID string) (models.PullRequest, error)
GetPullRequestByID ... (zero cost).
func (*Manager) SetCommitStatus ¶
SetCommitStatus for a given commit (not supported by V4 API).
Click to show internal directories.
Click to hide internal directories.