Repository navigation
Conversation
Motivation: Markdown-only pull requests need not run code validation, but a hardcoded filename rule is not reusable and required check contexts must remain intact. Modification: Read a versioned path policy from the immutable base of the pull request. Share its full, prose, and generated-documentation decisions across workflows. Use the focused Paradox job for generated documentation and the original checks for code or uncertain input. Result: Other Markdown documents receive the correct level of validation. Code and mixed changes, workflow and policy edits, or incomplete metadata retain full validation. Main pushes and required check names are unchanged. Tests: The actual workflow classifier passed 32 cases, plus groups covering all 456 tracked Markdown paths, five workflow invariants, and actionlint excluding the original runner-label warning. Hosted fork verification is pending. References: Refs apache#3824.
He-Pin
force-pushed
the
fix/skip-contributing-only-pr-ci
branch
from
November 29, 2026 06:22
d22c653 to
723af41
Compare
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.
Motivation
#3824 changed only contributor documentation but started code CI. A single filename exclusion does not address other documentation or give the repository a reusable policy.
Modification
Classify the immutable PR diff as full validation, standalone prose, or generated documentation. Read a versioned, repository-configured path policy from the base commit rather than from the proposed PR. The validation workflows share the classification and keep the required formatting and license check names.
Result
Standalone documentation does not start sbt compilation or tests. Generated documentation keeps the focused Paradox build without running the code test matrix. Code, workflow and policy changes, mixed changes, and missing or incomplete comparison data keep full validation. The lightweight classifier and existing required check contexts remain. Main push checks are unchanged.
Tests
Ran the actual workflow classifier locally against 32 cases, including #3824's exact comparison, mixed diffs, both rename directions, missing policy, partial input, and an alternate reStructuredText policy, invalid regexes and noncanonical policy paths. Checked all 456 tracked Markdown paths in batches, the five workflow invariants, and actionlint (excluding the pre-existing runner-label warning). A hosted documentation-only PR should verify the behavior after the policy lands.
References
Refs #3824.
GitHub required status checks and skips.