Skip to content

Fix docs review PR menu scope handling - #153

Merged
theletterf merged 1 commit into
mainfrom
fix-docs-review-pr-menu
May 13, 2026
Merged

theletterf merged 1 commit into
mainfrom
fix-docs-review-pr-menu

Conversation

@theletterf

Copy link
Copy Markdown
Member

Summary

  • Collect changed markdown files through the GraphQL PR files API so the docs review preflight does not silently noop when the REST array response trips the agentic workflow proxy.
  • Fail the preflight on file discovery errors with set -euo pipefail instead of producing an empty eligible file list.
  • Make the docs review prompt show the resolved review scope and require MCP-fetched Elastic style guidance for manual style judgments beyond Vale.

Test plan

  • gh aw compile
  • gh aw validate

Made with Cursor

Use GraphQL to collect changed PR markdown files so the review preflight does not silently noop under the agentic workflow proxy, and make the prompt ground manual style findings in MCP-fetched Elastic guidance.

Co-authored-by: Cursor <[email protected]>
@theletterf
theletterf requested a review from a team as a code owner May 13, 2026 18:13
@theletterf
theletterf requested a review from technige May 13, 2026 18:13
@theletterf theletterf self-assigned this May 13, 2026
@theletterf theletterf added the enhancement New feature or request label May 13, 2026
@theletterf
theletterf merged commit dacbcdf into main May 13, 2026
3 of 4 checks passed
@theletterf
theletterf deleted the fix-docs-review-pr-menu branch May 13, 2026 18:14
theletterf pushed a commit that referenced this pull request May 14, 2026
Replace the 29-line GraphQL cursor-pagination loop from #153 with a
three-line `gh pr diff <N> --name-only` call. gh handles pagination
internally, so the manual NEXT_CURSOR bookkeeping and duplicate query
strings are no longer needed.

Deleted files are no longer filtered at discovery time, but the existing
`[ -f "$f" ] || continue` guard in the copy loop (which runs after
git checkout to the PR head) excludes them naturally. The only behavioral
difference is that a PR touching only deleted markdown files will do one
extra git fetch before nooping via the ELIGIBLE_COUNT=0 guard.

Co-authored-by: Claude Opus 4.7 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant