Documentation ¶
Index ¶
- func Init() error
- func NewNotifier() notify_service.Notifier
- func RemoveScheduledAutoMerge(ctx context.Context, doer *user_model.User, pull *issues_model.PullRequest) error
- func ScheduleAutoMerge(ctx context.Context, doer *user_model.User, pull *issues_model.PullRequest, ...) (scheduled bool, err error)
- func StartPRCheckAndAutoMerge(ctx context.Context, pull *issues_model.PullRequest)
- func StartPRCheckAndAutoMergeBySHA(ctx context.Context, sha string, repo *repo_model.Repository) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewNotifier ¶ added in v1.22.0
func NewNotifier() notify_service.Notifier
NewNotifier create a new automergeNotifier notifier
func RemoveScheduledAutoMerge ¶
func RemoveScheduledAutoMerge(ctx context.Context, doer *user_model.User, pull *issues_model.PullRequest) error
RemoveScheduledAutoMerge cancels a previously scheduled pull request
func ScheduleAutoMerge ¶
func ScheduleAutoMerge(ctx context.Context, doer *user_model.User, pull *issues_model.PullRequest, style repo_model.MergeStyle, message string) (scheduled bool, err error)
ScheduleAutoMerge if schedule is false and no error, pull can be merged directly
func StartPRCheckAndAutoMerge ¶ added in v1.22.0
func StartPRCheckAndAutoMerge(ctx context.Context, pull *issues_model.PullRequest)
StartPRCheckAndAutoMerge start an automerge check and auto merge task for a pull request
func StartPRCheckAndAutoMergeBySHA ¶ added in v1.22.0
func StartPRCheckAndAutoMergeBySHA(ctx context.Context, sha string, repo *repo_model.Repository) error
StartPRCheckAndAutoMergeBySHA start an automerge check and auto merge task for all pull requests of repository and SHA
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.