Add except-change-detector for RN/Task validation - #142
Merged
Conversation
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.
This pull request introduces a new composite GitHub Action,
exempt-change-detector, to classify PRs as "exempt" when all changed files match specific patterns (such as GitHub workflow/config or unit-test projects). It also updates thereferences-parseraction to support an "exempt" mode, relaxing the requirement for a task id when a PR is exempt. Both actions now support improved configuration, extensibility, and test coverage.New exempt-change-detector action:
.github/actions/exempt-change-detector/with a full implementation (exempt-change-detector.ps1), composite action definition (action.yml), documentation (README.md), and comprehensive test script (test.ps1). The action outputsexempt=trueif all changed files match configured glob patterns, otherwisefalse. [1] [2] [3] [4]*,?,**,**/), case-insensitive matching, and default patterns for GitHub config and unit-test folders/files.Enhancements to references-parser action:
exemptinput to allow PRs classified as exempt (e.g., by the new action) to skip the task id requirement, requiring only an RN. This is reflected in both validation logic and the generated summary/comment. [1] [2] [3] [4] [5] [6] [7]pr-body-fileinput, allowing the action to read the PR description from a file, which is useful for workflows that fetch or auto-edit the PR body. [1] [2] [3] [4] [5] [6]These changes make it easier to automate and streamline PR validation for exempt changes, reducing manual work for configuration or test-only PRs while maintaining robust validation for all other cases.