publish: qa APPROVE detail goes to the PR — issue gets the terse verdict only
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 11s
ci / lint (push) Skipped
ci / lint (pull_request) Successful in 11s
Seen on issue #83: qa's approval pasted whitespace-nit detail into the issue thread. The issue is for the creator/orchestration; review internals belong on the PR. On APPROVE the full reply (+run report) now posts to the PR and the issue gets exactly '✅ Reviewed PR #N — looks good.' (falls back to the issue only if no PR could be resolved). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
d0345617d5
commit
e22a4cf98c
@@ -102,12 +102,18 @@ if [ "$MODE" != "pr" ]; then
|
||||
git clean -fd 2>/dev/null || true
|
||||
|
||||
# ---------- @qa: reviewer only — never edits, never merges ----------
|
||||
# Recommendations land ON THE PR (onsite the diff); the pass/fail verdict lands ON THE ISSUE so
|
||||
# @pm (who never reads the PR) can act on it. Ends its reply with APPROVE / BOUNCE: @dev / HALT.
|
||||
# ALL technical review detail lands ON THE PR (onsite the diff); the ISSUE gets only the terse
|
||||
# pass/fail verdict so @pm (who never reads the PR) can act on it and the issue thread — which is
|
||||
# for the creator/orchestration — stays free of review internals. APPROVE / BOUNCE: @dev / HALT.
|
||||
if [ "$NAME" = "qa" ]; then
|
||||
PRN=$(resolve_pr)
|
||||
if grep -qiE '^[[:space:]]*APPROVE[[:space:]]*$' /tmp/agent_out.md; then
|
||||
post_to "$ISSN" "$(printf '✅ Reviewed PR #%s — looks good.\n\n%s%s' "${PRN:-?}" "$reply" "$activity")"
|
||||
if [ -n "$PRN" ]; then
|
||||
post_to "$PRN" "$reply$activity" # the review detail belongs on the PR
|
||||
post_to "$ISSN" "✅ Reviewed PR #$PRN — looks good."
|
||||
else # no PR resolved — nowhere better than the issue
|
||||
post_to "$ISSN" "$(printf '✅ Reviewed — looks good.\n\n%s%s' "$reply" "$activity")"
|
||||
fi
|
||||
trig "$ISSN" "@pm — I have reviewed and approved PR #${PRN:-?} (issue #$ISSN). Over to you."
|
||||
elif grep -qiE '^[[:space:]]*BOUNCE:[[:space:]]*@(junior|senior|lead|intern)' /tmp/agent_out.md; then
|
||||
dev=$(grep -oiE 'BOUNCE:[[:space:]]*@(junior|senior|lead|intern)' /tmp/agent_out.md | head -1 | grep -oiE '(junior|senior|lead|intern)' | tr '[:upper:]' '[:lower:]')
|
||||
|
||||
Reference in New Issue
Block a user