Skip to content

Clarify docs-review scope and suggestion handling - #145

Merged
theletterf merged 3 commits into
mainfrom
fix/docs-review-scope-and-suggestions
May 8, 2026
Merged

theletterf merged 3 commits into
mainfrom
fix/docs-review-scope-and-suggestions

Conversation

@theletterf

Copy link
Copy Markdown
Member

Summary

  • clarify that gh-aw-docs-review supports repo-wide markdown review when consumers pass review-scope: repo-wide-markdown, and update the README copy to match
  • keep Vale advisory in the docs-review prompt instead of treating it as a blocker for reviewing eligible markdown files
  • remove the docs-review-specific workaround for the closed gh-aw escaped-curly-brace suggestion issue, while retaining the general instruction to verify suggestion text before posting

Test plan

  • Run make compile.
  • Sanity-check the generated gh-aw-docs-review.lock.yml diff.
  • Confirm the updated prompt behavior in a downstream docs-content review run.

Made with Cursor

theletterf and others added 2 commits May 8, 2026 09:55
When the docs-review workflow is triggered by an issue_comment event
(which is how the PR-menu /docs-review slash command fires), gh-aw's
submit_pull_request_review handler cannot resolve the PR — its
resolveTarget path treats only pull_request* events as PR context, so
body-only reviews silently drop with "No review context available".
The handler for create_pull_request_review_comment, by contrast, reads
context.payload.issue.pull_request and works fine on the same trigger.

Before #137 the agent always emitted at least one inline comment via
the docs skills, which set the review context as a side effect. The
autonomous Vale-only flow now produces zero inline comments on clean
PRs, exposing the latent gh-aw asymmetry. Tracked upstream at
github/gh-aw#30964.

Switch the no-findings path to add_comment, which correctly handles
issue_comment payloads, so the summary always posts. submit_pull_request_review
remains the path when there are inline review comments to attach.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Document repo-wide markdown review for repos like docs-content, keep Vale advisory instead of review-gating, and drop the obsolete gh-aw suggestion-block workaround for escaped curly braces.

Co-authored-by: GPT-5.4 <[email protected]>
Co-authored-by: Cursor <[email protected]>
@theletterf
theletterf requested a review from a team as a code owner May 8, 2026 08:43
@theletterf
theletterf requested a review from cotti May 8, 2026 08:43
@theletterf theletterf self-assigned this May 8, 2026
@theletterf theletterf added the fix label May 8, 2026
Bring the branch up to date with main, preserve the docs-review prompt updates, and keep the no-eligible-files noop path alongside the body-only summary comment behavior.

Co-authored-by: GPT-5.4 <[email protected]>
Co-authored-by: Cursor <[email protected]>
@theletterf
theletterf merged commit e53c90b into main May 8, 2026
3 checks passed
@theletterf
theletterf deleted the fix/docs-review-scope-and-suggestions branch May 8, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant