feat: disable automatic triggers on Claude workflows#111
Merged
JacobPEvans merged 2 commits intomainfrom Mar 8, 2026
Merged
Conversation
Convert all workflows that execute Claude from automatic triggers to workflow_dispatch only to control usage costs. All triggers commented out with DISABLED AUTOMATIC TRIGGERS markers for easy restoration. (claude)
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
There was a problem hiding this comment.
Pull request overview
Disables automatic triggers for internal “dogfood” / wrapper workflows that execute Claude, leaving only workflow_dispatch entrypoints and preserving the original trigger blocks as commented sections for restoration.
Changes:
- Commented out automatic event triggers (
pull_request,push,workflow_run,schedule) across the affected workflows withDISABLED AUTOMATIC TRIGGERSmarkers. - Commented out push-based re-dispatch logic in
dogfood-all.yml. - Commented out the PR-event gating
if:inpr-issue-linker.yml.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/dogfood-all.yml | Disables PR/comment/review/push triggers and the push re-dispatch job; leaves manual dispatch. |
| .github/workflows/dogfood-ci.yml | Disables workflow_run trigger (Tests completion) and comments out concurrency; leaves manual dispatch. |
| .github/workflows/dogfood-best-practices.yml | Disables scheduled trigger; leaves manual dispatch. |
| .github/workflows/dogfood-issue-hygiene.yml | Disables scheduled trigger; leaves manual dispatch. |
| .github/workflows/dogfood-issue-sweeper.yml | Disables scheduled trigger; leaves manual dispatch. |
| .github/workflows/pr-issue-linker.yml | Disables pull_request trigger and comments out PR-event gating if:; leaves manual dispatch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DISABLED AUTOMATIC TRIGGERSmarkers for easy restorationFiles changed (6)
dogfood-all.yml- commented out pull_request, issue_comment, pull_request_review, push triggers + post-merge-dispatch jobdogfood-ci.yml- commented out workflow_run trigger + concurrency groupdogfood-best-practices.yml- commented out schedule triggerdogfood-issue-hygiene.yml- commented out schedule triggerdogfood-issue-sweeper.yml- commented out schedule triggerpr-issue-linker.yml- commented out pull_request trigger + job if conditionHow to Restore
Search for
DISABLED AUTOMATIC TRIGGERSand uncomment the blocks.🤖 Generated with Claude Code
Greptile Summary
This PR surgically disables all automatic event-driven triggers across the 6 Claude-executing workflows, reducing each to
workflow_dispatch-only operation. No code is deleted — everything is commented out with consistentDISABLED AUTOMATIC TRIGGERS/END DISABLEDmarkers, making restoration a simple search-and-uncomment operation (a very git-brained move 🧠).Key changes:
dogfood-all.yml—pull_request,issue_comment,pull_request_review, andpushtriggers disabled;post-merge-dispatchjob commented out; staleif: github.event_name != 'push'guard on thealljob correctly removeddogfood-ci.yml—workflow_runtrigger replaced with a freshly-addedworkflow_dispatch;workflow_run-specific concurrency block commented out to avoid a danglinggithub.event.workflow_run.*context referencedogfood-best-practices.yml,dogfood-issue-hygiene.yml,dogfood-issue-sweeper.yml—schedulecron triggers commented out cleanly;workflow_dispatchpreservedpr-issue-linker.yml—pull_requesttrigger and its job-level bot/draft guardifcondition both commented out; see inline comment for a minor note about the guardMinor note: In
pr-issue-linker.yml, theifcondition that filtered out bots and draft PRs is now silently absent for manual dispatch runs. Theissue-linker.ymlreusable workflow will receivenullfor allgithub.event.pull_request.*fields when manually triggered — worth documenting in a comment for future clarity.Confidence Score: 5/5
workflow_dispatchso they can still be triggered manually. Thedogfood-all.ymlguard removal (if: github.event_name != 'push') is correctly coupled to the push-trigger disable. The only minor point is the implicit loss of the bot/draft guard inpr-issue-linker.ymlduring manual dispatch, but this is a style concern rather than a runtime error.pr-issue-linker.ymldeserves a second glance to confirm the bot/draft guard omission is intentional for manual runs.Important Files Changed
if: github.event_name != 'push'guard from thealljob.Flowchart
%%{init: {'theme': 'neutral'}}%% flowchart TD subgraph BEFORE["Before — Automatic Triggers Active"] A1[pull_request opened/sync] --> W1[dogfood-all.yml] A2[issue_comment created] --> W1 A3[pull_request_review submitted] --> W1 A4[push to main] --> J1[post-merge-dispatch job] --> W1 A5[workflow_run: Tests completed] --> W2[dogfood-ci.yml] A6[pull_request opened/closed] --> W3[pr-issue-linker.yml] A7[schedule: 0 3 * * 2,5] --> W4[dogfood-best-practices.yml] A8[schedule: 0 7 * * 0] --> W5[dogfood-issue-hygiene.yml] A9[schedule: 0 6 * * 0] --> W6[dogfood-issue-sweeper.yml] end subgraph AFTER["After — Manual Dispatch Only"] B1[workflow_dispatch] --> W1B[dogfood-all.yml] B2[workflow_dispatch] --> W2B[dogfood-ci.yml] B3[workflow_dispatch] --> W3B[pr-issue-linker.yml] B4[workflow_dispatch] --> W4B[dogfood-best-practices.yml] B5[workflow_dispatch] --> W5B[dogfood-issue-hygiene.yml] B6[workflow_dispatch] --> W6B[dogfood-issue-sweeper.yml] end style BEFORE fill:#ffe5e5,stroke:#cc0000 style AFTER fill:#e5ffe5,stroke:#009900Last reviewed commit: 3c967c5