Skip to content

Beginnings of multi repo PR support#18599

Merged
dsyme merged 20 commits intomainfrom
mrp
Mar 1, 2026
Merged

Beginnings of multi repo PR support#18599
dsyme merged 20 commits intomainfrom
mrp

Conversation

@dsyme
Copy link
Contributor

@dsyme dsyme commented Feb 27, 2026

  • Investigate CI failure in safe_outputs_handlers.test.cjs
  • Fix failing test: update assertion from "not found" to "not in the allowed-repos list" since the allowed-repos validation now runs before workspace checkout validation
  • Remove stale details field assertions that no longer apply to the allowed-repos error path
  • Verify test passes locally
  • Fix checkoutRepo() slug validation to reject slugs with more than one slash (e.g., owner/repo/extra) by enforcing parts.length === 2
  • Add test case for extra-slash slug rejection in dynamic_checkout.test.cjs
  • Use repoResult.repo (validated/qualified slug) instead of entry.repo.trim() for findRepoCheckout and patchOptions.repoSlug in safe_outputs_handlers.cjs
  • Rename test from "non-existent checkout" to "not in the allowed-repos list" to accurately describe what is tested

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.


Changeset

  • Type: patch
  • Description: Strengthened multi-repo checkout validation by normalizing repo slugs in the safe-output handlers, ensuring the allowed-repos error path is covered, and rejecting slugs with extra slashes.

Generated by Changeset Generator for issue #18599

Warning

⚠️ Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • github.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "github.com"

See Network Configuration for more information.



✨ PR Review Safe Output Test - Run 22551448932

💥 [THE END] — Illustrated by Smoke Claude

@github github deleted a comment from github-actions bot Feb 27, 2026
@github-actions

This comment has been minimized.

1 similar comment
@github-actions

This comment has been minimized.

@kdehl16-web
Copy link

Please work it

@kdehl16-web
Copy link

Fix the failed workflows (maybe in next commit)

Copy link

@kdehl16-web kdehl16-web left a comment

Choose a reason for hiding this comment

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

Why...

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@kdehl16-web
Copy link

Pls fix conflicts

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident...

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

Hey @dsyme 👋 — great start on multi-repo PR support! The implementation looks well-structured: adding the repo field to the create_pull_request tool schema, tightening checkoutRepo() slug validation, and recompiling all 30+ lock files is a coherent, focused set of changes. Tests are present too — appreciated.

A couple of things worth tidying before this is ready for review:

  • Add a PR description — the body is currently an agent task log (completed checklist items), not an explanation of the feature. Reviewers need to understand what multi-repo PR support is, why it's needed, and what design decisions were made. A brief description covering the motivation, the key changes in safe_outputs_handlers.cjs / safe_outputs_config_helpers.go, and any known limitations would go a long way.
  • Resolve the "Beginnings of" scope — the title signals this is partial work. Either clarify what's still outstanding (via a description or a follow-up issue) or rename the PR to reflect exactly what is complete and merge-ready. The mergeable_state: blocked suggests CI is also still failing.

If you'd like a hand polishing this up, you can assign the following prompt to your coding agent:

For PR #18599 ("Beginnings of multi repo PR support") in github/gh-aw:

1. Write a proper PR description (replacing the agent task log in the PR body) that covers:
   - What multi-repo PR support is and why it is needed.
   - The key implementation changes: the new `repo` field added to the `create_pull_request` tool schema, the slug validation fix in `checkoutRepo()`, the use of `repoResult.repo` instead of `entry.repo.trim()` in `safe_outputs_handlers.cjs`, and the lock file recompile.
   - Any known limitations or follow-up work implied by the "Beginnings of" title.

2. Investigate and fix the current CI failure (mergeable_state is blocked). Run `make agent-finish` and ensure all checks pass.

3. Update the PR title to remove "Beginnings of" if the implementation is complete, or open a follow-up issue capturing remaining work so this PR can be merged as a self-contained increment.

Generated by Contribution Check

@github github deleted a comment from kdehl16-web Mar 1, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

🎬 THE ENDSmoke Claude MISSION: ACCOMPLISHED! The hero saves the day! ✨

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation...

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

Agent Container Tool Check

Tool Status Version
bash 5.2.21
sh available
git 2.53.0
jq 1.7
yq 4.52.4
curl 8.5.0
gh 2.87.3
node 20.20.0
python3 3.12.3
go 1.24.13
java 21.0.10
dotnet 10.0.102

Result: 12/12 tools available ✅

Overall Status: PASS

🔧 Tool validation by Agent Container Smoke Test

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

Commit pushed: 194e851

Generated by Changeset Generator

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

🤖 Smoke test results for @dsyme's PR:

Test Status
GitHub MCP
Safe Inputs GH CLI
Serena MCP ❌ (not available)
Playwright
Web Fetch
File Writing
Bash
Discussion Interaction
Build gh-aw
Discussion Creation
Workflow Dispatch
PR Review

Overall: ⚠️ PARTIAL PASS (Serena MCP unavailable)

📰 BREAKING: Report filed by Smoke Copilot

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This PR adds a repo parameter to create_pull_request and other safe-output tools across lock files. The changes are consistent and well-described. Tests correctly reflect the updated behavior where create_pull_request always includes the repo field (from the base schema). LGTM.

📰 BREAKING: Report filed by Smoke Copilot

toolName: "create_pull_request",
expectRepo: false,
expectRepo: true,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

The test cases correctly cover the updated behavior: create_pull_request always has a repo parameter (since it's in the base schema), and the description text is now more precise. The table-driven test structure is clean and easy to follow.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤

@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2026

Smoke Test Results — Run §22551448932

Core tests #1–10: ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅ ✅
PR review tests #11–17: ✅ ✅ ✅ ✅ ✅ ✅ ⚠️

Overall: PARTIAL (16 passed, 1 skipped — no safe PR to close for #17)

💥 [THE END] — Illustrated by Smoke Claude

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

💥 Automated smoke test review - all systems nominal!

💥 [THE END] — Illustrated by Smoke Claude

@dsyme dsyme merged commit 0d40e9c into main Mar 1, 2026
49 checks passed
@dsyme dsyme deleted the mrp branch March 1, 2026 20:24
@kdehl16-web
Copy link

Stop deleting my comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants