pr_automerge.yml handles pull requests labeled automerge.
Always generated.
pull_request_target when labels are added or removeduses: athackst/ci/.github/workflows/automerge.yml@main
See automerge.yml for the reusable workflow
contract.
flowchart LR
template["Template workflow<br/>pr_automerge.yml"] --> automerge["Reusable workflow<br/>automerge.yml"]
automerge --> checks["Action<br/>wechuli/allcheckspassed"]
classDef template fill:#e0f2fe,stroke:#0284c7
classDef workflow fill:#ede9fe,stroke:#7c3aed
classDef action fill:#ecfccb,stroke:#65a30d
class template template
class automerge workflow
class checks action
contents: writepull-requests: writechecks: readlabeled, unlabeled, and ready_for_review pull request
activity. Each event can reconcile the live PR state; closed PRs are
ignored.automerge label when a draft PR becomes ready for
review.automerge_mode answer to the reusable Automerge workflow.automerge label from fork PRs while leaving manually configured
native auto-merge state unchanged.poll mode, confirms the automerge label is still present after checks
pass and immediately before merging.secrets.CI_BOT_TOKEN as the reusable workflow token secret.