automerge

package
v1.21.8 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 17 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 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.

Jump to

Keyboard shortcuts

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