Skip to content

Add .pre-commit-config.yaml to paths-ignore in CI workflows#1754

Merged
nathanjmcdougall merged 2 commits intomainfrom
copilot/update-github-actions-trigger
Apr 1, 2026
Merged

Add .pre-commit-config.yaml to paths-ignore in CI workflows#1754
nathanjmcdougall merged 2 commits intomainfrom
copilot/update-github-actions-trigger

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 1, 2026

Changes to only .pre-commit-config.yaml (e.g. #1698) were triggering all CI workflows. Only static checks need to run for prek config changes.

  • Added .pre-commit-config.yaml to paths-ignore in codecov.yml, codeql.yml, codspeed.yml, test.yml, zizmor.yml
  • static-checks.yml intentionally unchanged — it has no path filters and will continue to run on all changes

…rkflows

Only the static-checks workflow should trigger when the pre-commit config
file is the only file changed. All other workflows (codecov, codeql,
codspeed, test, zizmor) now ignore this file.

Resolves #1808

Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/ed8fe830-e1a2-4db9-8491-dfc04f7d3ec4

Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Copilot AI changed the title [WIP] Update GitHub actions to trigger only static checks for config changes Add .pre-commit-config.yaml to paths-ignore in CI workflows Apr 1, 2026
Copilot AI requested a review from nathanjmcdougall April 1, 2026 22:16
@nathanjmcdougall nathanjmcdougall marked this pull request as ready for review April 1, 2026 22:42
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Apr 1, 2026

Merging this PR will not alter performance

✅ 2 untouched benchmarks


Comparing copilot/update-github-actions-trigger (9ce9bcd) with main (0c72c0a)

Open in CodSpeed

@nathanjmcdougall nathanjmcdougall merged commit bd706ff into main Apr 1, 2026
20 checks passed
@nathanjmcdougall nathanjmcdougall deleted the copilot/update-github-actions-trigger branch April 1, 2026 22:55
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.

Don't trigger most GitHub actions for changes only to the prek config

2 participants