ci: stop dependabot from triggering heavy workflows - #293
Merged
Merged
Conversation
- concurrency with cancel-in-progress on PR workflows - skip heavy workflows on dependabot PRs; CI, CodeQL and dependency-review still run so a bump is never merged unvalidated - cap dependabot at 3 open PRs per ecosystem Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015eDrUXwb4BZWXUuwpNMkDn
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.
What changed
Ports the CI-minute guard from AgentsKit-io/agentskit#1579 to this repo.
concurrencyblock to the three workflows that have apull_requesttrigger and no existing one —ci.yml,codeql.yml,dependency-review.yml. In-flight runs for the same PR are superseded; pushesto
mainalways finish (cancel-in-progressis gated ongithub.event_name == 'pull_request').open-pull-requests-limit: 3to bothupdates:entries in.github/dependabot.yml(github-actions, npm).No job was skipped on dependabot PRs in this repo. The only PR job is
checkin
ci.yml(npm run check+npm pack --dry-run), which is the main CI, plusCodeQL and dependency-review. All three must keep running so a dependency bump is
never merged unvalidated. There are no e2e, lighthouse, visual-regression,
coverage, docs-build, link-check, bundle-size, citation or eval workflows here.
publish.ymlwas left untouched even though it has apull_requesttrigger: itis the npm publish + GitHub release workflow (
types: [closed], merged versionPRs only), and cancelling a publish mid-run is unsafe.
release.ymlalready hasits own
concurrencyblock, andscorecard.ymlhas nopull_requesttrigger.Why
Dependabot bumps were spending CI minutes on redundant runs, and superseded
pushes to a PR branch were left running to completion. Concurrency reclaims the
superseded runs; the PR cap bounds how many dependabot branches are open at once.
Verification
npm run check— not run locally; this change touches only.github/andno source, and CI will run it on this PR
python3 -c "import yaml; yaml.safe_load(...)")🤖 Generated with Claude Code
https://claude.ai/code/session_015eDrUXwb4BZWXUuwpNMkDn
Generated by Claude Code