Skip to content

feat(ci): reduce Actions minutes via path filters and concurrency guards - #150

Merged
Mpfk merged 1 commit into
mainfrom
claude/github-actions-cost-savings-zxyzgq
Jun 15, 2026
Merged

feat(ci): reduce Actions minutes via path filters and concurrency guards#150
Mpfk merged 1 commit into
mainfrom
claude/github-actions-cost-savings-zxyzgq

Conversation

@Mpfk

@Mpfk Mpfk commented Jun 14, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #81. Three targeted changes that reduce billable Actions minutes without weakening any gate or status-guard behavior.

  • pr-checks.yml — add paths-ignore: [docs/**, CHANGELOG.md] so the full test suite is skipped on documentation-only PRs; GitHub marks the skipped check as passing for required-status-check purposes
  • issue-native-automation.yml — add concurrency group keyed on github.event.issue.number with cancel-in-progress: true, mirroring the pattern already in issue-state-guard.yml, so rapid label changes or repeated /auto commands don't stack up parallel runs
  • repo-setup.yml — restrict the push trigger to paths: ['.github/labels.yml'] so the label-sync job only runs when label configuration actually changes
  • tests/workflow-config.sh — add assertions 16–18 covering all three changes; all 56 assertions pass

Test plan

  • bash tests/workflow-config.sh — all assertions pass (56/56)
  • Open a docs-only PR and confirm PR Checks is skipped (shows as green)
  • Trigger rapid label changes on an issue and confirm only the last run executes
  • Push a non-label commit to main and confirm repo-setup.yml does not trigger

Closes #149


Generated by Claude Code

- pr-checks.yml: skip the test suite for docs/** and CHANGELOG.md only
  PRs; GitHub marks the skipped check as passing for required-status checks
- issue-native-automation.yml: add concurrency group keyed on issue number
  so rapid label changes / repeated /auto comments cancel earlier in-progress
  runs (mirrors the pattern already in issue-state-guard.yml)
- repo-setup.yml: restrict the push trigger to .github/labels.yml changes
  so the label-sync job does not run on every commit to main
- tests/workflow-config.sh: add assertions 16-18 covering the three changes

https://claude.ai/code/session_017HzYmALW9iWXDXnoHhxxyP
@Mpfk
Mpfk marked this pull request as ready for review June 15, 2026 01:54
@Mpfk
Mpfk merged commit b6a7cdf into main Jun 15, 2026
4 checks passed
@github-actions
github-actions Bot deleted the claude/github-actions-cost-savings-zxyzgq branch June 15, 2026 01:54
@Mpfk Mpfk mentioned this pull request Jun 15, 2026
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.

Reduce GitHub Actions minutes: path filters and concurrency guards (follow-up to #81)

2 participants