automerge

package
v0.0.0-...-8fc6f8c Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 21 Imported by: 0

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

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

func StartPRCheckAndAutoMerge(ctx context.Context, pull *issues_model.PullRequest)

StartPRCheckAndAutoMerge start an automerge check and auto merge task for a pull request

func StartPRCheckAndAutoMergeBySHA

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