process

package
v0.0.52 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTrustedAuthors = map[string]bool{
	"renovate[bot]":   true,
	"dependabot[bot]": true,
}

Functions

func DefaultSecurityCheckPatterns added in v0.0.41

func DefaultSecurityCheckPatterns() []string

DefaultSecurityCheckPatterns returns a fresh copy of the built-in security-check pattern list. Returning a copy guarantees that callers cannot accidentally mutate the package-level default.

Types

type Processor

type Processor struct {
	Client         *github.Client
	DryRun         bool
	MergeAutoMerge bool
	Login          string
	TrustedAuthors map[string]bool

	// SecurityCheckPatterns is the list of case-insensitive substrings used
	// to flag failing CI checks as security-related (e.g. govulncheck, Trivy,
	// CodeQL). A nil slice falls back to DefaultSecurityCheckPatterns; a
	// non-nil empty slice disables security classification entirely.
	SecurityCheckPatterns []string

	// MergeMaxRetries is the maximum number of merge attempts when the base
	// branch is modified between fetch and merge. Zero uses the default (3).
	MergeMaxRetries int
	// MergeRetryWait is the base wait duration between merge retries.
	// Zero uses the default (10s). Actual wait = base * attempt number.
	MergeRetryWait time.Duration
}

func NewProcessor

func NewProcessor(client *github.Client, dryRun bool, mergeAutoMerge bool, login string, trustedAuthors map[string]bool) *Processor

func (*Processor) ProcessPR

func (p *Processor) ProcessPR(ctx context.Context, info pr.PRInfo, status *pr.PRStatus, idx int)

Jump to

Keyboard shortcuts

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