-
Notifications
You must be signed in to change notification settings - Fork 0
module path #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module path #3
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -30,6 +30,10 @@ inputs: | |||||
| description: 'Module name for monorepo setups (optional)' | ||||||
| required: false | ||||||
| default: '' | ||||||
| module_path: | ||||||
| description: 'Module path for resolving files in monorepo (e.g., services/backend, defaults to module if not provided)' | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Update the |
||||||
| required: false | ||||||
| default: '' | ||||||
|
|
||||||
| runs: | ||||||
| using: 'composite' | ||||||
|
|
@@ -65,6 +69,7 @@ runs: | |||||
| PLATFORM: ${{ inputs.platform }} | ||||||
| BASE_URL: ${{ inputs.base_url }} | ||||||
| MODULE: ${{ inputs.module }} | ||||||
| MODULE_PATH: ${{ inputs.module_path }} | ||||||
| run: | | ||||||
| bash upload_coverage.sh \ | ||||||
| -t "$ACCESS_TOKEN" \ | ||||||
|
|
@@ -74,4 +79,5 @@ runs: | |||||
| -p "$PLATFORM" \ | ||||||
| -b "$BRANCH" \ | ||||||
| -u "$BASE_URL" \ | ||||||
| -m "$MODULE" | ||||||
| -m "$MODULE" \ | ||||||
| -P "$MODULE_PATH" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Suggestion: Use shell parameter expansion when passing Severity Level: Minor
Suggested change
Why it matters? ⭐The current invocation will pass an empty MODULE_PATH if the input is unset, which contradicts the action description that implies a fallback. Using shell parameter expansion ensures the runtime behavior matches the docs and avoids passing an empty path to upload_coverage.sh. This is a practical, minimal change that fixes a likely bug in common usage. Prompt for AI Agent 🤖<code>This is a comment left during a code review.
**Path:** action.yml
**Line:** 83:83
**Comment:**
*Possible Issue: Use shell parameter expansion when passing `MODULE_PATH` to the script so it falls back to `MODULE` when `module_path` input is empty.
Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise. |
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: Fix the Inputs table inconsistency by clarifying that
module_pathdefaults to the value ofmodulewhen not provided and reflect that in the Default column. [possible issue]Severity Level: Minor⚠️
Why it matters? ⭐
The Inputs table currently states that
module_pathdefaults to the module when not provided, yet the Default column shows an empty string ('').That is a documentation inconsistency that can mislead users; updating the table to reflect the intended fallback (e.g.,
module) is a clear, correct fix.Prompt for AI Agent 🤖