Skip to content

Disable noisy auto-approve and auto-merge workflows (manual-only during review phase) - #104

Merged
DanFashauer merged 3 commits into
mainfrom
codex/disable-noisy-auto-approve-and-auto-merge-workflows
May 22, 2026
Merged

Disable noisy auto-approve and auto-merge workflows (manual-only during review phase)#104
DanFashauer merged 3 commits into
mainfrom
codex/disable-noisy-auto-approve-and-auto-merge-workflows

Conversation

@DanFashauer

Copy link
Copy Markdown
Owner

Motivation

  • Stop GitHub Actions email noise caused by optional auto-approve and auto-merge workflows that run and report "No jobs were run" while keeping the workflow files in place for manual use and future re-enabling.

Description

  • Changed the trigger in .github/workflows/auto-approve.yml to workflow_dispatch and added a top comment stating the workflow is disabled during the controlled-demo/manual-merge phase.
  • Changed the trigger in .github/workflows/auto-merge.yml to workflow_dispatch and added the same explanatory top comment.
  • Added an entry to docs/KNOWN_ISSUES.md noting that auto-approve/auto-merge are intentionally disabled and should be re-enabled only after branch protection, labels, and permissions are reviewed.

Testing

  • Ran git diff --check with no issues reported.
  • Ran npm run lint (ESLint completed successfully; npm emitted a non-fatal warning about an unknown env config http-proxy).

Codex Task

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

Copy link
Copy Markdown

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: 4e4c26fbd9

ℹ️ 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".

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- "!.github/workflows/auto-approve.yml"
pull_request_review:
types: [dismissed]
workflow_dispatch:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore PR-trigger context for auto-approve workflow

Switching this workflow to workflow_dispatch removes the pull_request payload, but the jobs still depend on github.event.pull_request.number (for policy-gate.ts, gh pr checks, gh pr review, and gh pr merge). When run manually, PR_NUMBER is empty and the workflow cannot perform approval/merge actions, so it is no longer usable in the advertised “manual runs only” mode.

Useful? React with 👍 / 👎.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep pull_request event data available in auto-merge

Using workflow_dispatch here drops github.event.pull_request from the event payload, but this workflow still reads github.event.pull_request.labels and passes github.event.pull_request.number to enable-pull-request-automerge. In manual runs those fields are missing, so the label gate and merge step cannot target a PR, breaking the intended manual fallback behavior.

Useful? React with 👍 / 👎.

@DanFashauer
DanFashauer merged commit ff3bd58 into main May 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant