Documentation ¶
Index ¶
- func CreateReview(opts models.CreateReviewOptions) (*models.Review, error)
- func IsCommitStatusContextSuccess(commitStatuses []*models.CommitStatus, requiredContexts []string) bool
- func IsPullCommitStatusPass(pr *models.PullRequest) (bool, error)
- func LFSPush(tmpBasePath, mergeHeadSHA, mergeBaseSHA string, pr *models.PullRequest) error
- func Merge(pr *models.PullRequest, doer *models.User, baseGitRepo *git.Repository, ...) (err error)
- func NewPullRequest(repo *models.Repository, pull *models.Issue, labelIDs []int64, uuids []string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateReview ¶
func CreateReview(opts models.CreateReviewOptions) (*models.Review, error)
CreateReview creates a new review based on opts
func IsCommitStatusContextSuccess ¶
func IsCommitStatusContextSuccess(commitStatuses []*models.CommitStatus, requiredContexts []string) bool
IsCommitStatusContextSuccess returns true if all required status check contexts succeed.
func IsPullCommitStatusPass ¶
func IsPullCommitStatusPass(pr *models.PullRequest) (bool, error)
IsPullCommitStatusPass returns if all required status checks PASS
func LFSPush ¶
func LFSPush(tmpBasePath, mergeHeadSHA, mergeBaseSHA string, pr *models.PullRequest) error
LFSPush pushes lfs objects referred to in new commits in the head repository from the base repository
func Merge ¶
func Merge(pr *models.PullRequest, doer *models.User, baseGitRepo *git.Repository, mergeStyle models.MergeStyle, message string) (err error)
Merge merges pull request to base repository. FIXME: add repoWorkingPull make sure two merges does not happen at same time.
func NewPullRequest ¶
func NewPullRequest(repo *models.Repository, pull *models.Issue, labelIDs []int64, uuids []string, pr *models.PullRequest, patch []byte, assigneeIDs []int64) error
NewPullRequest creates new pull request with labels for repository.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.