Repository navigation
Skip build workflows on PRs only changing .pre-commit-config.yaml - #351
Merged
christophfroehlich merged 1 commit intoDec 1, 2026
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
github-actions
Bot
requested review from
bijoua29,
bmagyar,
destogl,
erickisos and
mhubii
December 1, 2026 07:39
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the workflow-filter changes intended to reduce unnecessary CI runs on pre-commit configuration updates.
No open issues 🎉
What changed in this PR
This PR reduces unnecessary CI work for monthly pre-commit updates by excluding .pre-commit-config.yaml from build and documentation workflow path filters across Rolling, Jazzy, and Humble.
Changes:
- Adds the exclusion immediately after each broad YAML inclusion in 28 workflows.
- Preserves triggers when other changed files match the existing filters.
- Also excludes configuration-only pushes where these filters apply; pre-commit workflows and schedules remain unchanged.
| File | Description |
|---|---|
.github/workflows/rolling-source-build.yml |
Excludes pre-commit-only pushes from source builds. |
.github/workflows/rolling-semi-binary-downstream-build.yml |
Excludes pre-commit-only changes from downstream builds. |
.github/workflows/rolling-semi-binary-build.yml |
Excludes pre-commit-only changes from semi-binary builds. |
.github/workflows/rolling-semi-binary-build-win.yml |
Excludes pre-commit-only changes from Windows builds. |
.github/workflows/rolling-semi-binary-build-deprecation-werror.yml |
Excludes pre-commit-only changes from deprecation-checking builds. |
.github/workflows/rolling-rhel-semi-binary-build.yml |
Excludes pre-commit-only changes from RHEL builds. |
.github/workflows/rolling-debian-build.yml |
Excludes pre-commit-only changes from Debian builds. |
.github/workflows/rolling-coverage-build.yml |
Excludes pre-commit-only changes from coverage builds. |
.github/workflows/rolling-compatibility-build.yml |
Excludes pre-commit-only changes from compatibility builds. |
.github/workflows/rolling-check-docs.yml |
Excludes pre-commit-only changes from documentation checks. |
.github/workflows/rolling-binary-build.yml |
Excludes pre-commit-only changes from binary builds. |
.github/workflows/rolling-abi-compatibility.yml |
Excludes pre-commit-only changes from ABI checks. |
.github/workflows/jazzy-source-build.yml |
Excludes pre-commit-only pushes from source builds. |
.github/workflows/jazzy-semi-binary-downstream-build.yml |
Excludes pre-commit-only changes from downstream builds. |
.github/workflows/jazzy-semi-binary-build.yml |
Excludes pre-commit-only changes from semi-binary builds. |
.github/workflows/jazzy-rhel-semi-binary-build.yml |
Excludes pre-commit-only changes from RHEL builds. |
.github/workflows/jazzy-debian-build.yml |
Excludes pre-commit-only changes from Debian builds. |
.github/workflows/jazzy-coverage-build.yml |
Excludes pre-commit-only changes from coverage builds. |
.github/workflows/jazzy-binary-build.yml |
Excludes pre-commit-only changes from binary builds. |
.github/workflows/jazzy-abi-compatibility.yml |
Excludes pre-commit-only changes from ABI checks. |
.github/workflows/humble-source-build.yml |
Excludes pre-commit-only pushes from source builds. |
.github/workflows/humble-semi-binary-downstream-build.yml |
Excludes pre-commit-only changes from downstream builds. |
.github/workflows/humble-semi-binary-build.yml |
Excludes pre-commit-only changes from semi-binary builds. |
.github/workflows/humble-rhel-semi-binary-build.yml |
Excludes pre-commit-only changes from RHEL builds. |
.github/workflows/humble-debian-build.yml |
Excludes pre-commit-only changes from Debian builds. |
.github/workflows/humble-coverage-build.yml |
Excludes pre-commit-only changes from coverage builds. |
.github/workflows/humble-binary-build.yml |
Excludes pre-commit-only changes from binary builds. |
.github/workflows/humble-abi-compatibility.yml |
Excludes pre-commit-only changes from ABI checks. |
Review effort: Balanced
christophfroehlich
merged commit Dec 1, 2026
84f5825
into
ros-controls:master
10 of 35 checks passed
This was referenced Dec 1, 2026
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.
.pre-commit-config.yamlmatches the'**.yaml'path filter of the build workflows, so the monthly pre-commit bump PRs trigger the full build matrix although only the pre-commit workflow is relevant.This adds
'!.pre-commit-config.yaml'right after'**.yaml'(order matters for negated patterns). PRs changing only.pre-commit-config.yamlnow run only the pre-commit workflow; PRs that also touch other matching files still run all builds.🤖 Generated with Claude Code