automerge

package
v1.22.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 19 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init() error

Init runs the task queue to that handles auto merges

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL