Skip to content

Conversation

@phenomenoner
Copy link
Owner

@phenomenoner phenomenoner commented Feb 12, 2026

Adds a lightweight PR template (Reality check + risk + Codex checkbox) and a label-gated auto-merge workflow.

  • Auto-merge is only enabled when the PR has the automerge label (and is not a draft).
  • Merge method: squash.

This keeps the slow-cook, low-intervention flow while still requiring CI to pass.

@phenomenoner phenomenoner merged commit 6bd3d76 into main Feb 12, 2026
3 checks passed
@phenomenoner phenomenoner deleted the chore/workflow-automerge-codex branch February 12, 2026 08:42
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39951bcfcb

ℹ️ About Codex in GitHub

Codex has been enabled to automatically 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


on:
pull_request:
types: [opened, reopened, ready_for_review, labeled, synchronize]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Handle unlabeled events before enabling auto-merge

The workflow only listens to opened, reopened, ready_for_review, labeled, and synchronize, so removing the automerge label never re-evaluates or disables an already-enabled auto-merge state. In practice, a PR can still auto-merge after the label is removed, which breaks the intended label gate and makes it hard to stop an in-flight auto-merge without manual API/UI intervention.

Useful? React with 👍 / 👎.

enable:
if: >-
github.event.pull_request.draft == false &&
contains(join(github.event.pull_request.labels.*.name, ','), 'automerge')

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Match the automerge label exactly

The condition uses contains(join(...), 'automerge'), which performs a substring match on a concatenated string of label names; this also returns true for labels like no-automerge or automerge-blocked. That can enable auto-merge for PRs that do not actually carry the exact automerge label.

Useful? React with 👍 / 👎.

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