feat(safe-outputs): add patch-format: bundle transport for code-push flows#23190
feat(safe-outputs): add patch-format: bundle transport for code-push flows#23190
patch-format: bundle transport for code-push flows#23190Conversation
- Create generate_git_bundle.cjs with git bundle generation logic (full and incremental modes, same strategy structure as generate_git_patch.cjs) - Modify safe_outputs_handlers.cjs to check patch_format config and dispatch to bundle or patch generation (bundle path sets bundle_path, patch path sets patch_path on the JSONL entry) - Modify create_pull_request.cjs to handle bundle_path: fetch from bundle into a local branch and push via pushSignedCommits (skips git am) - Modify push_to_pull_request_branch.cjs to handle bundle_path: fetch from bundle into temp ref and ff-merge before pushing via pushSignedCommits - Add PatchFormat field to CreatePullRequestsConfig and PushToPullRequestBranchConfig in Go structs - Add patch_format to serialized handler config in compiler_safe_outputs_config.go - Parse and validate patch-format field in Go parsers (valid: am, bundle) Agent-Logs-Url: https://github.com/github/gh-aw/sessions/220273af-754a-4610-9d4d-f8d2ad9a7c48 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
…e patchFileName)" Agent-Logs-Url: https://github.com/github/gh-aw/sessions/220273af-754a-4610-9d4d-f8d2ad9a7c48 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
patch-format: bundle transport for code-push flows
|
@copilot update changeset generator to use bundle mode |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/3a8d2ab7-0e93-42a5-aca2-ef9d165525b2 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
@copilot update changeset generator agentic workflow to use bundle patch format |
…eset workflow Agent-Logs-Url: https://github.com/github/gh-aw/sessions/8b757d6e-a587-4103-968c-e3920ac0d1d0 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Done in a03c86d. Added Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
❌ Tool validation failed! Agent Container Smoke Test detected missing tools: failed |
|
📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing... |
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
📰 DEVELOPING STORY: Smoke Copilot reports failed. Our correspondents are investigating the incident... |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/46350f9f-4936-4883-8be5-9acb786dd1c7 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Fixed in 3533140. |
create-pull-requestandpush-to-pull-request-branchusegit format-patch/git amwhich loses merge topology and drops merge-resolution-only content. This adds abundletransport option usinggit bundle, which preserves commit graph fidelity, merge commits, authorship, and per-commit messages.New config field
Changes
generate_git_bundle.cjs(new)generate_git_patch.cjscreate-pull-request): bundles<baseRef>..<branchName>push-to-pull-request-branch): bundlesorigin/<branch>..<branch>after fetching remotesafe_outputs_handlers.cjspatch_format(per-handler config, with global fallback)"bundle"→ callsgenerateGitBundle, writesbundle_pathto JSONL entry"am"(default) → existinggenerateGitPatchpath, writespatch_path— no behavior changecreate_pull_request.cjsbundle_pathpresent: skipsgit am; usesgit fetch <bundle> refs/heads/<orig>:refs/heads/<newBranch>to reconstruct the branch, then pushes viapushSignedCommitspush_to_pull_request_branch.cjsbundle_pathpresent: skipsgit am; fetches bundle into a temp ref,git merge --ff-onlyto advance the branch, then pushes viapushSignedCommitsGo structs / compiler
PatchFormat stringadded toCreatePullRequestsConfigandPushToPullRequestBranchConfig(validated enum:am|bundle)patch_formatinto the handler JSON config consumed at runtimepatch-formatenum property added to the JSON schema for bothcreate-pull-requestandpush-to-pull-request-branchChangeset generator workflow
changeset.mdupdated to usepatch-format: bundlefor itspush-to-pull-request-branchconfig⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.