Skip to content

Add pull_requests toolset to issue-scope workflow - #383

Merged
theletterf merged 2 commits into
mainfrom
fix/issue-scope-pull-requests-toolset
Oct 1, 2026
Merged

theletterf merged 2 commits into
mainfrom
fix/issue-scope-pull-requests-toolset

Conversation

@theletterf

@theletterf theletterf commented Oct 1, 2026 •

Copy link
Copy Markdown
Member

Why

The issue-scope agent reported a missing tool on elastic/docs-content#8611. It could not read metadata or the diff for the linked PR #16708. The workflow only enabled the issues and repos GitHub toolsets. The agent fell back to reading the PR head file and comparing it with main.

What

  • Add pull_requests to the GitHub toolsets in gh-aw-issue-scope.md.
  • Set safe-outputs.report-failure-as-issue: false, so the workflow stops opening [aw] ... failure issues in consumer repos. The compiled lock sets GH_AW_FAILURE_REPORT_AS_ISSUE to "false".
  • Recompile gh-aw-issue-scope.lock.yml with gh-aw v0.89.17. The lock file now lists get_pull_request, get_pull_request_diff, get_pull_request_files and related read tools. The pull-requests: read permission was already set.

Not verified

  • I have not run the workflow. I plan to test it in elastic/docs-actions-sandbox with an issue that links a PR.
  • I could not read the logs of the failed run, so this PR may not fix the job failure itself. It fixes the reported missing tool.
  • The v1 tag still needs to move after merge for callers to pick this up.

🤖 Generated with Claude Code

Related to #398

The scope agent could not read linked PR metadata or diffs because only
the issues and repos toolsets were enabled (elastic/docs-content#8611).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@theletterf
theletterf requested a review from a team as a code owner October 1, 2026 05:39
@theletterf
theletterf requested a review from Mpdreamz October 1, 2026 05:39
@theletterf theletterf self-assigned this Oct 1, 2026
@theletterf theletterf added the fix label Oct 1, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — no blocking issues found.


What is this? | From workflow: PR Review

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

@theletterf
theletterf merged commit a4df2d9 into main Oct 1, 2026
10 checks passed
@theletterf
theletterf deleted the fix/issue-scope-pull-requests-toolset branch October 1, 2026 05:58
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