Route PR code-quality reviews through the Copilot gateway - #52377
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix misdirected api.individual.githubcopilot.com hostname in PR Code Quality Reviewer
Route PR code-quality reviews through the Copilot gateway
Aug 12, 2026
Contributor
PR Triage SummaryTotal score: 70/100 Automated triage — see labels applied for classification. Full report in the triage issue.
|
Contributor
There was a problem hiding this comment.
Pull request overview
Routes the PR quality reviewer through the allowlisted Copilot gateway instead of Pi’s native provider.
Changes:
- Pins the main agent to
copilot/gpt-5.4. - Regenerates gateway-backed workflow configuration.
- Adds regression coverage for model selection.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/pr-code-quality-reviewer.md |
Declares the explicit Copilot model. |
.github/workflows/pr-code-quality-reviewer.lock.yml |
Configures generated gateway routing. |
pkg/cli/pr_code_quality_reviewer_workflow_contract_test.go |
Adds a model contract assertion, but does not scope it to frontmatter. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/3 changed files
- Comments generated: 1
- Review effort level: Balanced
| require.NoError(t, err, "Should read pr-code-quality-reviewer workflow") | ||
|
|
||
| text := string(content) | ||
| assert.Contains(t, text, "model: copilot/gpt-5.4", "Main agent should use an explicit Copilot model") |
This was referenced Aug 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Pi-based PR Code Quality Reviewer fell back to its native Copilot provider, attempting the blocked
api.individual.githubcopilot.comendpoint. Other Copilot workflows use the allowlisted gateway path.Explicit model routing
copilot/gpt-5.4.aw-gatewayprovider throughapi-proxy.Regression coverage