Chore: Default path_prefix to the repository root - #125
Merged
tykeal merged 1 commit intoJul 28, 2026
Merged
Conversation
Every sibling action in this organisation declares path_prefix with a '.' default; this one omitted it, so the interface did not state where the action looks by default and callers had to infer it. Behaviour is unchanged. The action already normalised an empty value to '.' internally, so this makes the declared interface match what the implementation always did, and lets GitHub surface the default in the Actions UI. Co-authored-by: Claude <claude@anthropic.com> Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>
Copilot started reviewing on behalf of
ModeSevenIndustrialSolutions
July 28, 2026 13:16
View session
There was a problem hiding this comment.
Pull request overview
Aligns this action’s declared path_prefix input interface with its existing runtime behavior by surfacing the repository-root default in action.yaml, improving consistency with sibling actions and making the default visible in the GitHub Actions UI/docs.
Changes:
- Set
inputs.path_prefix.defaultto'.'inaction.yamlto explicitly document the already-implemented default behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tykeal
approved these changes
Jul 28, 2026
tykeal
left a comment
Contributor
There was a problem hiding this comment.
🤖 Dependamerge
Approved this pull request ✅
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.
Chore: Default
path_prefixto the repository rootEvery sibling action in this organisation declares
path_prefixwith a.default — 28 of them. This one omitted it, so the declared interface didn't state where the action looks by default, and callers had to infer it or read the implementation.Behaviour is unchanged
The action already normalises an empty value to
.internally:So this makes the declared interface match what the implementation always did. The practical gain is that GitHub surfaces the default in the Actions UI and in generated documentation, rather than leaving it blank.
Context
Part of a small consistency sweep across the estate, alongside
gradle-build-action#103, which aligns that action's outlierpathinput ontopath_prefix.Deliberately not included in the sweep:
python-audit-action, which defaultspath_prefixto''. That empty default is load-bearing — it is passed topypa/gh-action-pip-auditasinputs:, where empty means "audit the installed environment" while'.'would mean "scan this directory". Changing it there would alter what gets audited.Validation
pre-commit run --all-files— all hooks pass.