-
Notifications
You must be signed in to change notification settings - Fork 0
module #2
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 #2
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -26,6 +26,10 @@ inputs: | |||||
| description: 'Base URL of the git platform' | ||||||
| required: false | ||||||
| default: 'https://github.com' | ||||||
| module: | ||||||
| description: 'Module name for monorepo setups (optional)' | ||||||
| required: false | ||||||
| default: '' | ||||||
|
|
||||||
| runs: | ||||||
| using: 'composite' | ||||||
|
|
@@ -60,6 +64,7 @@ runs: | |||||
| COVERAGE_FILE: ${{ inputs.coverage_file }} | ||||||
| PLATFORM: ${{ inputs.platform }} | ||||||
| BASE_URL: ${{ inputs.base_url }} | ||||||
| MODULE: ${{ inputs.module }} | ||||||
| run: | | ||||||
| bash upload_coverage.sh \ | ||||||
|
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: Only pass the |
||||||
| -t "$ACCESS_TOKEN" \ | ||||||
|
|
@@ -68,4 +73,5 @@ runs: | |||||
| -f "$COVERAGE_FILE" \ | ||||||
| -p "$PLATFORM" \ | ||||||
| -b "$BRANCH" \ | ||||||
| -u "$BASE_URL" | ||||||
| -u "$BASE_URL" \ | ||||||
| -m "$MODULE" | ||||||
|
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: Only pass the module flag to the script when Severity Level: Minor
Suggested change
Why it matters? ⭐Passing an empty module value may cause the upload script to receive an empty argument (or a Prompt for AI Agent 🤖<code>This is a comment left during a code review.
**Path:** action.yml
**Line:** 77:77
**Comment:**
*Possible Issue: Only pass the module flag to the script when `MODULE` is non-empty to avoid sending an empty value to the upload script; conditionally emit the `-m` argument in the multi-line command.
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: Clarify the
moduleinput description to indicate expected format (name or path) and that leaving it empty will skip sending the module flag to the script. [enhancement]Severity Level: Minor⚠️
Why it matters? ⭐
This is a harmless documentation improvement that clarifies expected input format and behavior when left empty. It reduces confusion for action consumers and matches the optional nature of the input added by the PR.
Prompt for AI Agent 🤖