Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error string
Error exist to create constant errors
type NewPullRequest ¶
type NewPullRequest struct {
Title string
Body string
Head string
Base string
Reviewers []string // The username of all reviewers
}
NewPullRequest is the data needed to create a new pull request
type PullRequest ¶
type PullRequest struct {
OwnerName string
RepoName string
BranchName string
Number int
Status PullRequestStatus
}
PullRequest represents a pull request
func (PullRequest) FullRepoName ¶ added in v0.2.0
func (p PullRequest) FullRepoName() string
FullRepoName returns the full repository name including the owner
type PullRequestStatus ¶
type PullRequestStatus int
PullRequestStatus is the status of a pull request, including statuses of the last commit
const ( PullRequestStatusUnknown PullRequestStatus = iota PullRequestStatusSuccess PullRequestStatusPending PullRequestStatusError PullRequestStatusMerged PullRequestStatusClosed )
All PullRequestStatuses
func (PullRequestStatus) String ¶
func (s PullRequestStatus) String() string
type Repository ¶
Repository contains all information about a git repository
func (Repository) FullName ¶ added in v0.2.0
func (r Repository) FullName() string
FullName returns the full repository name including the owner
Click to show internal directories.
Click to hide internal directories.