Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrPullRequestAlreadyExists = errors.New("an active pull request for the source and target branch already exists")
)
Functions ¶
Types ¶
type PullRequestPayload ¶
type PullRequestPayload struct { SourceRefName string `json:"sourceRefName,omitempty"` TargetRefName string `json:"targetRefName,omitempty"` Title string `json:"title,omitempty"` Description string `json:"description,omitempty"` Reviewers []PullRequestReviewer `json:"reviewers,omitempty"` }
Example Payload:
{ "sourceRefName": "refs/heads/npaulk/my_work", "targetRefName": "refs/heads/new_feature", "title": "A new feature", "description": "Adding a new feature", "reviewers": [ { "id": "d6245f20-2af8-44f4-9451-8107cb2767db" } ] }
type PullRequestReviewer ¶
type PullRequestReviewer struct {
Id string `json:"id,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.