Skip to content

fix(pr-review): preserve optional review body argument#1256

Draft
github-actions[bot] wants to merge 2 commits into
mainfrom
fix-1254-pr-review-body-shift-6c3b2dab677fb03e
Draft

fix(pr-review): preserve optional review body argument#1256
github-actions[bot] wants to merge 2 commits into
mainfrom
fix-1254-pr-review-body-shift-6c3b2dab677fb03e

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Summary

Fixes claude-workflows/pr-review/scripts/pr-review.sh so the optional review body is not discarded.

The script was shifting positional arguments incorrectly:

  • before: shift 2>/dev/null || true
  • after: shift 1 2>/dev/null || true

With this change, the first argument (EVENT) is consumed and remaining arguments are preserved in BODY="$*", matching the documented usage pr-review.sh <APPROVE|REQUEST_CHANGES|COMMENT> [review-body].

Closes #1254.

Validation

/tmp/gh-aw/agent/venv/bin/python -m pytest -q

Result: 53 passed.


What is this? | From workflow: Trigger Text Auditor

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

github-actions Bot and others added 2 commits June 11, 2026 14:37
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[text-auditor] Align pr-review.sh review-body text with actual argument handling

0 participants