Skip to content

fix: TypeScript type errors in push_to_pull_request_branch cross-repo support#28388

Merged
pelikhan merged 2 commits intomainfrom
copilot/make-push-to-pr-branch-cross-repo
Apr 25, 2026
Merged

fix: TypeScript type errors in push_to_pull_request_branch cross-repo support#28388
pelikhan merged 2 commits intomainfrom
copilot/make-push-to-pr-branch-cross-repo

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 25, 2026

Cross-repo support for push_to_pull_request_branch was already implemented (checkout path resolution, cwd propagation to git ops and patch generation) but two TypeScript errors in the conclusion handler broke the build-js step.

Fixes

  • allowedRepos type mismatch: resolveTargetRepoConfig returns Set<string>, but findRepoCheckout expects string[] | string. Spread to array: { allowedRepos: [...allowedRepos] }.

  • pushSignedCommits missing required cwd: The function signature requires cwd: string (non-optional), but spreading baseGitOpts (which is {} in same-repo flows) left cwd absent. Replaced spread with explicit cwd: repoCwd || process.cwd().

// Before
findRepoCheckout(itemRepo, workspace, { allowedRepos });           // Set<string> ≠ string[]
pushSignedCommits({ ...baseGitOpts, ... });                        // cwd may be missing

// After
findRepoCheckout(itemRepo, workspace, { allowedRepos: [...allowedRepos] });
pushSignedCommits({ cwd: repoCwd || process.cwd(), ... });

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:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh repo view --json owner,name --jq .owner.login &#43; &#34;/&#34; &#43; .name ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet t_branch.test.cjgit --local t ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh repo view owner/repo /tmp/go-build2831452327/b475/vet.cfg 1073595026 1452327/b026/vet-ifaceassert .cfg get --local bash ache/go/1.25.8/x-tests --no�� ChhS-MVF4 git x_amd64/link rs.test.cjs --re/usr/bin/git --local n-dir/git x_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh repo view owner/repo (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name --verify r-test-repo-feature-test-change.patch.diff.tmp b54261eb..feature/test-change (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env re GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv -v 64/pkg/tool/linuremote.origin.url /usr/bin/git y_with_repos_arrgit --quiet 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a git .cfg git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git 00/001/test-inligit emplate/v3@v3.0.rev-parse 64/pkg/tool/linu--show-toplevel git rev-�� --git-dir 64/pkg/tool/linuTest User (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv user.email test@example.com /usr/bin/git 2086/001/stabiligit GO111MODULE ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE ache/go/1.25.8/xinstall git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv in/dist/gh-gpgsi-test.paniconexit0 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv /tmp/TestGuardPolicyBlockedUsersApprovalLabelsCompiledOutput3050--detach config /usr/bin/git remote.origin.urgit GO111MODULE 64/bin/go git -C /tmp/TestCompileUpdateDiscussionFieldEnforcement4138825903/001 remote /tmp/go-build4254934261/b469/workflow.test -json GO111MODULE x_amd64/compile /tmp/go-build4254934261/b469/workflow.test (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv /tmp/TestGuardPolicyTrustedUsersExpressionCompiledOutput112324321/001 rev-parse /usr/bin/git re GO111MODULE 64/bin/go /usr/bin/git remo�� -v go /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv se 1452327/b249/vetnonexistent-workflow ache/go/1.25.8/x--limit --local patch.diff.tmp /git ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -V=f�� i.go ntifiers.go 64/pkg/tool/linux_amd64/compile origin ure-test-change.rev-parse ode_modules/.bin--show-toplevel 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel -extld=gcc /usr/bin/git efaultBranchFromtr efaultBranchFrom\n ache/go/1.25.8/x: git rev-�� --show-toplevel ortcfg /usr/bin/git Onlymin-integritgit g/gitutil/gitutirev-parse /opt/hostedtoolc--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel git-upload-pack /usr/bin/git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv /tmp/go-build2831452327/b431/_pkg_.a -trimpath /usr/bin/git -p main -lang=go1.25 git -C /home/REDACTED/work/gh-aw/gh-aw/.github/workflows l ache/node/24.14.1/x64/bin/node go1.25.8 -c=4 -nolocalimports /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv /tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch1747769891/001 /tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmain_branch1747769891/002/work (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv for-each-ref --format=%(objectname) t .github/workflow/tmp/go-build2192653077/b404/cli.test GO111MODULE 64/bin/go git -C ErrorFormatting3726427591/001 remote /usr/bin/git l GO111MODULE 64/bin/go git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x--name-only /usr/bin/git /ref/tags/v9 -trimpath 64/pkg/tool/linu-m git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a -buildtags 1452327/b385/vet--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv 906286277 ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/git 5347-41787/test-git GO111MODULE ache/go/1.25.8/x-m git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git Lib9/C_LA_jtkAAKgit k/gh-aw/gh-aw/pkrev-parse e/git-upload-pac--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv --show-toplevel go /usr/bin/git -json GO111MODULE ache/go/1.25.8/x-m git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git -json GO111MODULE /home/REDACTED/.ca--show-toplevel git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv add l cal/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv --get l /origin/feature/test-change (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv --noprofile ure-test-change.patch.diff.tmp e/test-change (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --git-dir 64/pkg/tool/linu-trimpath /usr/bin/gh tmatter-with-arrgit .cfg 64/pkg/tool/linu--show-toplevel gh run list --json /usr/bin/gh --workflow nonexistent-workrev-parse --limit gh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel x_amd64/vet /usr/bin/git nts.s emclr_wasm.s 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a oding@v0.5.4/ascrev-parse 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel go clusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle -json GO111MODULE tions/setup/node--show-toplevel git rev-�� --show-toplevel go /usr/bin/git -json GO111MODULE ache/go/1.25.8/x--show-toplevel git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/TestGuardPolicyMinIntegrityOnlymin-integrity_with_repos=public_3556625122/001 config /usr/bin/git remote.origin.urgit est-change..featrev-parse it git rev-�� mpleWorkflow3378992723/001 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv user.name Test User /usr/bin/git add-source-path-git --stdout 64/pkg/tool/linu--show-toplevel /usr/bin/git conf�� --get-regexp ^remote\..*\.gh-resolved$ /usr/bin/gh T7KmvxLda .cfg 64/pkg/tool/linu--show-toplevel gh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv . -tests /usr/bin/git (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv sistency_WithImports2465197706/001/main.md git /usr/bin/git --verify r-test-repo-featrev-parse b54261eb..featur--show-toplevel git rev-�� runs/20260425-025104-15544/test-2871000002 git /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile s/test.md /deps.go x_amd64/compile /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.gtest-logs/run-12346 CEDVAjFSK2LRG6vPflge/CEDVAjFSK2LRG6vPflge /usr/lib/git-core/git-receive-pack -goversion go1.25.8 -c=4 git-receive-pack /tmp�� /tmp/go-build2985964301/b180/importcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv -bool -buildtags /usr/lib/git-core/git-upload-pack -errorsas -ifaceassert -nilfunc git-upload-pack /tmp�� -stringintconv -tests .git ted-objects.md GO111MODULE 64/bin/go ache/node/24.14.REDACTED (http block)
  • https://api.github.com/repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv user.name ings.cjs odules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/git k/gh-aw/node_mod/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile 1a15dd56..full-m-o 1/x64/bin/node forks.js comm�� -q st/suppress-warnmain _modules/.bin/gi-lang=go1.25 -m Initial commit odules/npm/node_--require st/dist/workers//home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv HEAD st/dist/workers/forks.js $name) { hasDiscussionsEnabled } } --bare full mode test ache/node/24.14.-m git diff�� --binary (http block)
    • Triggering command: /usr/bin/gh gh api /repos/astral-sh/setup-uv/git/ref/tags/eac588ad8def6316056a12d4907a9d4d84ff7a3b --jq [.object.sha, .object.type] | @tsv HEAD st/dist/workers/forks.js bin/git --bare gin/full-mode-br--experimental-import-meta-resolve ode-gyp-bin/git YZf8FK2/wbe4unnI/home/REDACTED/work/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs diff�� --binary st/suppress-warn--conditions k/node_modules/.development README.md ode_modules/viteapi it st/dist/workers/-f (http block)
  • https://api.github.com/repos/github/gh-aw
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch user.email tions/setup/js/node_modules/viteowner=github 64/pkg/tool/linux_amd64/link k/gh-aw/gh-aw/acgit /usr/lib/git-cor-C tions/setup/node/home/REDACTED/work/gh-aw/gh-aw/.github/workflows 64/pkg/tool/linuconfig bran�� -M t-patch-utils-vOrmgo/.diffsize.tmp repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } 4b66a00fcbafabeagit 39b1f3c2cf1d16d4-C ache/node/24.14./home/REDACTED/work/gh-aw/gh-aw/.github/workflows git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw --jq .default_branch ithub/workflows k/gh-aw/gh-aw/actions/setup/js/node_modules/vitest/suppress-warnings.cjs /opt/hostedtoolcache/node/24.14.1/x64/bin/node ch-that-does-notgit 9bc56326..bbbbbe-C run-script/lib/n/home/REDACTED/work/gh-aw/gh-aw k/gh-aw/gh-aw/acshow 1306�� ithub/workflows test-2NoJGe/error.go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/link node --conditions ed } } /opt/hostedtoolcconfig (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv --show-toplevel x_amd64/compile /usr/bin/infocmp tmatter-with-nesgit .cfg 64/pkg/tool/linu--show-toplevel infocmp -1 xterm-color 64/pkg/tool/linutest@example.com /usr/bin/git --verify .cfg 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv .github/workflows/test.md x_amd64/vet /usr/bin/git -json GO111MODULE 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linu--jq /usr/bin/git g_.a GO111MODULE 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv --show-toplevel x_amd64/vet /usr/bin/git -json GO111MODULE ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel go /usr/bin/git &#39;**/*.ts&#39; &#39;**/*.git GO111MODULE de_modules/.bin/--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260425-025104-15544/test-1429818345/.github/workflows config /usr/bin/git remote.origin.urgit (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv 5347-41787/test-.artifacts[].name Y5KUpR6ZrQZn8hJV-ZkR/Y5KUpR6ZrQZn8hJV-ZkR /usr/lib/git-core/git-receive-pack -goversion go1.25.8 -c=4 git-receive-pack /tmp�� /tmp/go-build2985964301/b227/importcfg -pack /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv GOMODCACHE go /usr/bin/git -json GO111MODULE 64/bin/go /usr/bin/git remo�� image:v1.0.0 go /usr/bin/git ath ../../../.prgit GO111MODULE 64/bin/go git (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git HEAD (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv /repos/actions/github-script/git/ref/tags/v9 --jq /usr/bin/git -goversion go1.25.8 -c=4 git push�� origin my-default /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.g.artifacts[].name rev-parse /usr/bin/infocmp -json GO111MODULE 64/bin/go infocmp -1 xterm-color l /usr/bin/git -json GO111MODULE modules/@npmcli/--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name -- ntdrain.test request ndlers.test.cjs ache/node/24.14./home/REDACTED/work/gh-aw/gh-aw/.github/workflows/agentic-observability-kit.md ntdrain.test 8314�� 2304098985 1452327/b038/vet.cfg 64/pkg/tool/linux_amd64/link it} --local ache/go/1.25.8/x--show-toplevel 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 om/stretchr/testify@v1.11.1/assert/assertion_forgithub.com/github/gh-aw/pkg/actionpins 64/pkg/tool/linux_amd64/vet json ]; then \ git --local ode_modules/.bin--show-toplevel 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name uvTv/8YYGT_gSIAc5Hh4AuvTv clusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle -n1 --format=format:rev-parse --end-of-options--show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -o &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitbranch_with_remote.origin.url &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitbranch_with_hyphen1341152762/001&#39; 4934261/b474/vet.cfg -p crypto/internal/rev-parse -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/xremote.origin.url (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name .cfg 64/pkg/tool/linu-importcfg get --global 64/bin/node 64/pkg/tool/linuTest User (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 -- 64/pkg/tool/linux_amd64/vet --get-regexp --global bin/git 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name uFzy/p9hy1yt1djFVGplouFzy /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/asm GOINSECURE GOMOD GOMODCACHE /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/asm -p &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch87384078/001&#39; &#39;/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch87384078/001&#39; 4934261/b433/vet.cfg -I /tmp/go-build298rev-parse layTitle /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name .cfg 64/pkg/tool/linux_amd64/compile get --global 1/x64/bin/node 64/pkg/tool/linutest@example.com (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 .cfg 64/pkg/tool/linu-nolocalimports --get-regexp --global ode_modules/.bin--show-toplevel 64/pkg/tool/linu/tmp/go-build2831452327/b456/_testmain.go (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name MZ6A/V7PuGt6SBo7Q8gElMZ6A e/git-upload-pack GOINSECURE GOMOD GOMODCACHE /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/asm faul�� 5964301/b182/importcfg -trimpath 4934261/b437/vet.cfg -I /tmp/go-build298rev-parse -I /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name .cfg 64/pkg/tool/linux_amd64/vet --get-regexp --global rgo/bin/git 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 --quiet sole.test o actions/setup-git --local _modules/.bin/gi--show-toplevel sole.test 8314�� 159494089/custom/workflows 1452327/b091/vet.cfg .cfg get --local tions/setup/js/n--git-dir ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name -ZkR/Y5KUpR6ZrQZn8hJV-ZkR e/git-receive-pack GOSUMDB GOWORK 64/bin/go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name go-udiff@v0.4.1/export.go 64/pkg/tool/linux_amd64/vet --get-regexp --global 1/x64/bin/git 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 --quiet stants.test get --local es/.bin/git stants.test 8314�� 159494089/custom/workflows 1452327/b095/vet.cfg k get --local /git ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name blob e/git GOSUMDB GOWORK 64/bin/go e/git 5964�� 3 pkg/mod/github.com/modelcontextprotocol/go-sdk@v1.5.0/internal/mcpgodebug/mcpgodebug.go 4934261/b468/vet.cfg -p crypto/internal/rev-parse -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name -- 64/pkg/tool/linux_amd64/compile --get-regexp --global 64/bin/git 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 --quiet .test json --local ode_modules/.bin--show-toplevel .test 8314�� 159494089/custom/workflows 1452327/b175/vet.cfg .cfg get --local tions/setup/js/node_modules/.bin--show-toplevel ache/go/1.25.8/x64/pkg/tool/linu-extld=gcc (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name zLU2/r48K25Cv2sXeJpt1zLU2 e/git -n1 --format=format:rev-parse --end-of-options--show-toplevel e/git -o mplied -trimpath /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -p set -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name .cfg 64/pkg/tool/linu-importcfg d707b85b54261eb --global odules/npm/node_--show-toplevel 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 64/src/testing/internal/testdeps/deps.go 64/pkg/tool/linux_amd64/link from .github/aw git --local bin/git Vgol9MA/jtMHmSR1PwQ4sKWnT8ry diff�� e-analyzer.md --output=/tmp/gh-aw/aw-test-ownemain ortcfg.link get chr/testify/asserev-parse 1/x64/bin/node H-1UE0nI7fOTqBbrX9/VAwA4PdGDrGYA-dwarf=false (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name GOPROXY e/git .&#34;; \ BEFORE=$(git GOWORK 64/bin/go e/git 5964�� /tmp/go-build2985964301/b107/_pkg_.a pkg/mod/github.com/modelcontextprotocol/go-sdk@v1.5.0/internal/xcontext/xcontext.go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile =receive log/slog/internarev-parse -lang=go1.25 (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --verify r-test-repo-feature-test-change.patch.diff.tmp b54261eb..feature/test-change (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build2831452327/b404/cli.test /tmp/go-build2831452327/b404/cli.test -test.testlogfile=/tmp/go-build2831452327/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true (http block)
    • Triggering command: /tmp/go-build4254934261/b404/cli.test /tmp/go-build4254934261/b404/cli.test -test.testlogfile=/tmp/go-build4254934261/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true -importcfg /tmp/go-build2985964301/b142/importcfg -pack /home/REDACTED/go/pkg/mod/github.com/modelcontextprotocol/go-sdk@v1.5.0/internal/json/json.go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /tmp/go-build2192653077/b404/cli.test /tmp/go-build2192653077/b404/cli.test -test.testlogfile=/tmp/go-build2192653077/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x12345 /usr/bin/git 01/main.md git ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git -unreachable=falls /tmp/go-build283-lh 1452327/b286/vet/tmp/gh-aw/aw-feature-branch.patch git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linuconfig /usr/bin/git ortcfg GO111MODULE ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/infocmp 5347-41787/test-ls GO111MODULE 5964301/b183=&gt; infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --git-dir go /usr/bin/git sRemoteWithRealGgit sRemoteWithRealGrev-parse /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel erignore /usr/bin/gh Onlymin-integritls GO111MODULE ache/go/1.25.8/x/tmp/gh-aw/aw-feature-branch.patch gh (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv g_.a 1452327/b003/vet.cfg Name,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle get er_test /git ache/go/1.25.8/x64/pkg/tool/linu-buildtags sRem�� sZsTnoN5M git ache/go/1.25.8/x64/pkg/tool/linu-nilfunc --local user.name _modules/.bin/gixterm-color ortcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env b/workflows GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv json&#39; --ignore-path ../../../.pr**/*.json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env ub/workflows GO111MODULE x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv --get r-test-repo-feature-test-change.patch.diff.tmp x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json .go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env json&#39; --ignore-path ../../../.pr**/*.json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv --get r-test-repo-feature-test-change.patch.diff.tmp x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv --get r-test-repo-feature-test-change.github.com/github/gh-aw/cmd/gh-aw x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv user.name Test User x_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv --get r-test-repo-feature-test-change.-ifaceassert x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE x_amd64/asm GOINSECURE GOMOD GOMODCACHE x_amd64/asm env -json n/codec.go x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env 444936592/001 444936592/002/work 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv se 1452327/b056/vet.cfg .cfg /add_labels.testgit /add_reaction.cjrev-parse /add_reaction.te--show-toplevel ache/go/1.25.8/x64/pkg/tool/linuTest User estl�� /add_reviewer.cjs /add_reviewer.test.cjs ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet --local user.name git ache/go/1.25.8/xREDACTED (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv json&#39; --ignore-path ../../../.pr**/*.json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env ub/workflows GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion --local --get es/.bin/git 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion -p internal/fmtsortrev-parse -lang=go1.25 /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile -o tructions-test-4219261472/.github/workflows -trimpath /usr/bin/git l golang.org/x/texremote -lang=go1.25 git (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion tierignore ../../../**/*.jsrev-parse 64/bin/go git rev-�� --show-toplevel go /usr/lib/git-core/git ns.json...&#34; GO111MODULE 64/bin/go /usr/lib/git-core/git (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo b54261eb..feature/test-change (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state 64/pkg/tool/linux_amd64/compile get .cjs cal/bin/bash 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name --verify r-test-repo-feature-test-change.patch.diff.tmp 64/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env re GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch 159494089/custom/workflows 1452327/b175/vet.cfg .cfg get --local tions/setup/js/node_modules/.bin--show-toplevel ache/go/1.25.8/x64/pkg/tool/linu-extld=gcc -n Required pkg/workflow/safe_outputs_validation_config.go ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet --local credential.helperun ode_modules/.bindownload ache/go/1.25.8/x2 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --show-toplevel x_amd64/compile /usr/bin/git -json GO111MODULE x_amd64/compile git push�� -u origin clusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle -json GO111MODULE ache/go/1.25.8/x--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch --show-toplevel go /usr/bin/git 161d3ecf93c121d3git GO111MODULE x_amd64/compile git rev-�� --show-toplevel x_amd64/compile /usr/bin/git -json GO111MODULE 64/bin/go git (http block)
  • invalid.example.invalid
    • Triggering command: /usr/lib/git-core/git-remote-https /usr/lib/git-core/git-remote-https origin https://invalid.example.invalid/nonexistent-repo.git e/git conf�� --local --get ode_modules/.bin/git =receive Test User tnet/tools/git (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Apr 25, 2026 that may be closed by this pull request
…oss-repo support

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/390c1092-a4e5-406b-b514-b4fab152285a

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update push_to_pull_request_branch for cross-repo support fix: TypeScript type errors in push_to_pull_request_branch cross-repo support Apr 25, 2026
Copilot AI requested a review from pelikhan April 25, 2026 03:01
@pelikhan pelikhan marked this pull request as ready for review April 25, 2026 03:02
Copilot AI review requested due to automatic review settings April 25, 2026 03:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes TypeScript checking failures in the push_to_pull_request_branch action when using cross-repo support, unblocking the build-js step.

Changes:

  • Convert allowedRepos from Set<string> to string[] when calling findRepoCheckout.
  • Always provide a concrete cwd when calling pushSignedCommits (using the resolved repo checkout path or process.cwd()).
Show a summary per file
File Description
actions/setup/js/push_to_pull_request_branch.cjs Fixes TS type mismatches for cross-repo checkout discovery and signed-commit pushing by normalizing allowedRepos and ensuring cwd is always provided.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@github-actions github-actions Bot mentioned this pull request Apr 25, 2026
@pelikhan pelikhan merged commit da6f3af into main Apr 25, 2026
95 checks passed
@pelikhan pelikhan deleted the copilot/make-push-to-pr-branch-cross-repo branch April 25, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make push_to_pull_request_branch cross-repo

3 participants