Skip to content

ci: merge labelled pull requests with merge-when-green - #651

Merged
Mearman merged 2 commits into
mainfrom
feat/merge-when-green
Oct 29, 2026
Merged

Mearman merged 2 commits into
mainfrom
feat/merge-when-green

Conversation

@Mearman

@Mearman Mearman commented Oct 29, 2026

Copy link
Copy Markdown
Member

Adds ExaDev/merge-when-green to merge pull requests labelled automerge, using a write deploy key (MERGE_DEPLOY_KEY, registered on this repo) with fast-forward so no personal access token is involved. ci.yml gains a Required checks job that needs every other job, with a test that fails when a job is missing from its needs.

ready-when-green is not added: marking a draft ready needs an API token, which a deploy key is not.

Anything that merges on a single named check needs one job that passes only
when every other job succeeded or was skipped. A test fails when a job is
added to the workflow without being listed in that job's needs.
A pull request labelled automerge is fast-forwarded onto main with a write
deploy key once the aggregate check passes, which keeps its commits intact
and starts the release workflow, unlike a push made with GITHUB_TOKEN.
@Mearman
Mearman force-pushed the feat/merge-when-green branch from 771dc84 to 1b22217 Compare October 29, 2026 15:51
@Mearman
Mearman marked this pull request as ready for review October 29, 2026 17:23
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ⚠️ Failed 2026-10-29T17:23:20.868554Z
We couldn’t complete this review. Comment @codex security review to try again.
1b22217 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

This security review couldn’t start because the paying account has exhausted its Codex allowance and has insufficient available credits. The payer can check their balance and add credits in the Codex usage dashboard, then try again. If you do not manage the paying account, contact this repository's admins.

@Mearman
Mearman merged commit 5aa0feb into main Oct 29, 2026
32 checks passed
@Mearman
Mearman deleted the feat/merge-when-green branch October 29, 2026 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant