Skip to content

fix(ci): remove issues trigger cascade + add dependabot fast-pass - #85

Merged
twistedmelonman merged 1 commit into
mainfrom
claude/reduce-spend-1a1b
May 19, 2026
Merged

fix(ci): remove issues trigger cascade + add dependabot fast-pass#85
twistedmelonman merged 1 commit into
mainfrom
claude/reduce-spend-1a1b

Conversation

@twistedmelonman

Copy link
Copy Markdown
Member

Summary

  • Remove issues trigger from claude.yml: The issues: [opened, assigned] event trigger was causing cascading Claude invocations whenever Ralph or Dependabot created issues. Each issue opened would fire the workflow, burn Anthropic API credits, and produce no useful output (Claude has nothing actionable to do on a newly-opened issue from a bot). Removed the trigger and its corresponding if: condition.

  • Add Dependabot fast-pass to claude-blocking-review.yml: When github.actor == dependabot[bot], skip the paid Claude review entirely. Version bumps are low-risk, and claude-code-action already refuses to run on PRs that modify workflow files (which covers Dependabot's action-pin bumps). The fast-pass is inserted after the doc-only check and before parameter estimation, so all downstream steps (review, comment minimize, verdict check) are properly short-circuited.

  • Update claude-assistant.yml caller documentation: Removed the issues line from the example if: block so consumer repos copying the template don't re-introduce the trigger.

Motivation

Part of the Anthropic spend reduction initiative. These two changes eliminate the highest-volume sources of wasted Claude invocations across all repos that consume these reusable workflows.

Test plan

  • Verify CI passes on this PR (the blocking review workflow will run against this PR itself)
  • Confirm the YAML is valid (yamllint runs in pre-commit)
  • After merge, verify Dependabot PRs in consumer repos show "SKIPPED (Dependabot version bump)" in the job summary instead of running a full Claude review
  • After merge, verify new issues no longer trigger the Claude assistant workflow

- Remove `issues` event trigger from claude.yml and its corresponding
  `if:` condition. Issues opened by Ralph/Dependabot were causing
  cascading Claude invocations that burned Anthropic spend with no
  useful output.

- Add a Dependabot fast-pass to claude-blocking-review.yml that skips
  AI review when `github.actor == dependabot[bot]`. Version bumps are
  low-risk, and claude-code-action already refuses to run on PRs that
  modify workflow files. This eliminates wasted review minutes on every
  Dependabot PR across all consumer repos.

- Update claude-assistant.yml caller documentation to match.
@twistedmelonman
twistedmelonman merged commit f723490 into main May 19, 2026
3 checks passed
@twistedmelonman
twistedmelonman deleted the claude/reduce-spend-1a1b branch May 19, 2026 02:20
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