Skip to content

fix(pr-review): surface missing named-flag values in pr-comment.sh - #1880

Merged
v1v merged 1 commit into
mainfrom
fix-1879-pr-comment-missing-value-errors-02f0efde42edad5a
Aug 27, 2026
Merged

fix(pr-review): surface missing named-flag values in pr-comment.sh#1880
v1v merged 1 commit into
mainfrom
fix-1879-pr-comment-missing-value-errors-02f0efde42edad5a

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

  • add explicit missing-value checks for --severity, --title, and --why during argument parsing in claude-workflows/pr-review/scripts/pr-comment.sh
  • emit these missing-value parser errors on stderr so failures are actionable in CI logs and redirected error files
  • add tests/test_pr_comment_arg_validation.py regression coverage for omitted values and flag-as-value cases

Closes #1879.

Validation

UV_CACHE_DIR=/tmp/gh-aw/agent/uv-cache uv run --extra test pytest tests/test_pr_comment_arg_validation.py -v

What is this? | From workflow: Trigger Bug Hunter

Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.

Add explicit parser checks for missing values on --severity, --title, and --why so the script fails with actionable errors instead of a silent shift failure.

Also add regression tests covering omitted values and flag-as-value cases.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@v1v
v1v marked this pull request as ready for review August 27, 2026 09:19
@github-actions github-actions Bot added the small_boom Small PR blast radius; usually low human-review need label Aug 27, 2026
@v1v
v1v merged commit 47087e6 into main Aug 27, 2026
19 of 23 checks passed
@v1v
v1v deleted the fix-1879-pr-comment-missing-value-errors-02f0efde42edad5a branch August 27, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small_boom Small PR blast radius; usually low human-review need

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug-hunter] pr-comment.sh exits silently when --severity/--title/--why value is missing

1 participant