Skip to content

Commit 4817644

Browse files
Dan MoseleyCopilot
andcommitted
Fixer: use HTML URL for issue fetch (avoids API rate limit 403s)
GitHub API has 60 req/hr unauthenticated limit per IP. Shared GHA runners hit this easily. HTML page fetch always works for public repos. Fall back to API URL only if HTML fails. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent abe915d commit 4817644

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/agentic-fix-issue.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,11 @@ You are running in a personal fork of dotnet/runtime. The repo is checked out an
9494
## Phase 0-1: Read Issue + Validate (1 TURN)
9595

9696
**Do EVERYTHING below in a SINGLE turn — batch all tool calls in parallel:**
97-
- `web-fetch: https://api.github.com/repos/${{ inputs.upstream_repo }}/issues/${{ inputs.issue_number }}`
98-
- `web-fetch: https://api.github.com/repos/${{ inputs.upstream_repo }}/issues/${{ inputs.issue_number }}/comments`
97+
- `web-fetch: https://github.com/${{ inputs.upstream_repo }}/issues/${{ inputs.issue_number }}` (HTML — always works for public repos)
9998
- `bash: git log --oneline --all | grep ${{ inputs.issue_number }} || true`
10099

100+
If web-fetch returns 403/429, retry with the API URL: `https://api.github.com/repos/${{ inputs.upstream_repo }}/issues/${{ inputs.issue_number }}`
101+
101102
Do NOT use `gh issue view` CLI. Do NOT delegate to sub-agents.
102103

103104
**From the fetched data, validate inline (no extra turn):**

0 commit comments

Comments
 (0)