Skip to content

Avoid blocked /meta lookup in Issue Arborist issue prefetch#1117

Open
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-arborist-failure
Open

Avoid blocked /meta lookup in Issue Arborist issue prefetch#1117
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-arborist-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 28, 2026

Issue Arborist was failing before the agent ran because its issue prefetch path used gh issue list, which triggered a proxied GET /meta request and received 403 Forbidden. This updates the workflow to fetch the same issue dataset without relying on that blocked CLI metadata path.

  • Workflow prefetch path

    • Replaced the gh issue list prefetch step in issue-arborist.md with a direct gh api graphql query.
    • Kept the output contract unchanged: the workflow still writes the issue list to /tmp/gh-aw/issues-data/issues.json for the agent prompt.
  • Compiled workflow

    • Regenerated issue-arborist.lock.yml from the markdown source so the checked-in workflow reflects the new fetch path.
  • Behavior preserved

    • The downloaded payload still includes the fields the agent relies on: issue number, title, author, timestamps, URL, body, labels, milestone, and assignees.
    • The query still scopes to open issues in microsoft/aspire.dev excluding issues that already have a parent.
gh api graphql \
  -f query="$query" \
  -F searchQuery="repo:${GITHUB_REPOSITORY} is:issue state:open -parent-issue:*" \
  | jq '.data.search.nodes' \
  > /tmp/gh-aw/issues-data/issues.json

Copilot AI linked an issue May 28, 2026 that may be closed by this pull request
Co-authored-by: maddymontaquila <12660687+maddymontaquila@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug and fix issue with Arborist workflow failure Avoid blocked /meta lookup in Issue Arborist issue prefetch May 28, 2026
Copilot AI requested a review from maddymontaquila May 28, 2026 23:42
@IEvangelist IEvangelist marked this pull request as ready for review May 29, 2026 13:27
@IEvangelist IEvangelist self-requested a review as a code owner May 29, 2026 13:27
Copilot AI review requested due to automatic review settings May 29, 2026 13:27
@IEvangelist IEvangelist enabled auto-merge (squash) May 29, 2026 13:27
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Issue Arborist’s issue prefetch step to avoid gh issue list and use a direct GraphQL API query while preserving the generated workflow.

Changes:

  • Replaces the issue prefetch command with gh api graphql.
  • Keeps the output path /tmp/gh-aw/issues-data/issues.json.
  • Regenerates the compiled workflow lock file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/issue-arborist.md Updates the source workflow’s issue prefetch logic.
.github/workflows/issue-arborist.lock.yml Regenerated compiled workflow reflecting the source change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

gh api graphql \
-f query="$query" \
-F searchQuery="repo:${GITHUB_REPOSITORY} is:issue state:open -parent-issue:*" \
| jq '.data.search.nodes' \
)"
gh api graphql \
-f query="$query" \
-F searchQuery="repo:${GITHUB_REPOSITORY} is:issue state:open -parent-issue:*" \
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.

[aw] Issue Arborist failed

3 participants