Refactor safe-output repo target accessors#53838
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
PR Triage
Registry-based refactor with a coverage guard test. Part of the safe-output parsing refactor cluster — batch review recommended.
|
|
Triage: category= Part of the B1-safeoutput-refactor batch (with #53841, #53840). Draft, no CI yet, no reviews. Undraft once ready and review together with the batch.
|
There was a problem hiding this comment.
Pull request overview
Refactors safe-output repository targeting into a registry, reducing duplicated tool dispatch logic.
Changes:
- Adds tool-specific repository-target accessors.
- Preserves centralized repo parameter generation.
- Adds registry coverage validation.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/safe_outputs_tools_repo_params.go |
Replaces the switch with an accessor registry. |
pkg/workflow/safe_outputs_tools_generation_test.go |
Verifies the registry’s supported tool set. |
Review details
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Balanced
|
✅ PR Code Quality Reviewer completed the code quality review.
|
|
✅ Test Quality Sentinel completed test quality analysis.
|
|
🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅
|
|
✅ Design Decision Gate 🏗️ completed the design decision gate check.
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
…-target-extraction # Conflicts: # pkg/intent/governance_formal_test.go Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Refreshed the branch with current |
|
@copilot Please take another pass on this PR: refresh the branch if GitHub offers it, review any current CI status, and use the pr-finisher skill to move this toward merge readiness.
|
|
|
@copilot Please take another maintainer-facing pass on this PR.
|
Finish pass complete at |
PR TriageCategory: CI passing, but prior approvals were dismissed after new commits — needs re-review. Automated triage — see the triage report issue for full context.
|
|
@copilot Please take a fresh maintainer-facing pass on this PR.
|
Fresh finish pass complete at |
|
@copilot Please take another maintainer-facing pass on this PR.
|
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Finish pass complete. |
|
@copilot Please take a maintainer-facing finish pass on this PR. Please address these failing checks on the current head: Please refresh the branch if GitHub offers it, verify merge readiness on the latest head, and use the
|
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed in |
|
Safe-output schema generation repeated
AllowedReposandTargetRepoSlugextraction across a large tool-name switch, making new tool support easy to implement inconsistently.Registry-based targeting
Coverage guard
Generated by PR Sous Chef run https://github.com/github/gh-aw/actions/runs/32249206937> Generated by 👨🍳 PR Sous Chef · gpt54 · 23.7 AIC · ⌖ 8.26 AIC · ⊞ 9.3K · ◷
pr-sous-chef run https://github.com/github/gh-aw/actions/runs/32358285599> Generated by 👨🍳 PR Sous Chef · gpt54 · 5.47 AIC · ⌖ 8.32 AIC · ⊞ 9.3K · ◷
Run: https://github.com/github/gh-aw/actions/runs/32385519055> Generated by 👨🍳 PR Sous Chef · gpt54 · 15.1 AIC · ⌖ 8.25 AIC · ⊞ 9.3K · ◷