Documentation ¶
Index ¶
- func Init() error
- func MergeScheduledPullRequest(ctx context.Context, sha string, repo *repo_model.Repository) error
- 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeScheduledPullRequest ¶
func MergeScheduledPullRequest(ctx context.Context, sha string, repo *repo_model.Repository) error
MergeScheduledPullRequest merges a previously scheduled pull request when all checks succeeded
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.