Documentation
¶
Overview ¶
Package prwatcher monitors open pull requests and auto-merges eligible ones.
Eligibility requires: not draft, trusted author, no excluded labels, all CI checks passed, and mergeable. The watcher runs concurrently with the dispatcher via errgroup.
When trusted reviewers leave unresolved review comments on an eligible PR, the watcher creates a batched remediation issue for the dispatcher to handle.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher polls open PRs and auto-merges eligible ones.
func New ¶
func New(pm forge.PullRequestManager, issues forge.IssueTracker, cfg autonomy.MergeConfig, interval time.Duration) *Watcher
New creates a Watcher with the given PR manager, issue tracker, and merge policy. The issue tracker is used to create remediation issues for PRs with blocking review comments. It may be nil to disable remediation.