Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RepoContainsTopic ¶ added in v0.44.0
Types ¶
type MergeType ¶
type MergeType int
MergeType is the way a pull request is "merged" into the base branch
All MergeTypes
func MergeTypeIntersection ¶
MergeTypeIntersection calculates the intersection of two merge type slices, The order of the first slice will be preserved
func ParseMergeType ¶
ParseMergeType parses a merge type
type NewPullRequest ¶
type NewPullRequest struct {
Title string
Body string
Head string
Base string
Reviewers []string // The username of all reviewers
TeamReviewers []string // Teams to assign as reviewers
Assignees []string
Draft bool
Labels []string
}
NewPullRequest is the data needed to create a new pull request
type PullRequest ¶
type PullRequest interface {
Status() PullRequestStatus
String() string
}
PullRequest represents a pull request
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 ¶
type Repository interface {
// CloneURL returns the clone address of the repository
CloneURL() string
// DefaultBranch returns the name of the default branch of the repository
DefaultBranch() string
// FullName returns the full id of the repository, usually ownerName/repoName
FullName() string
}
Repository provides all the information needed about a git repository
Click to show internal directories.
Click to hide internal directories.