Skip to content

Align pkg/cli constructor semantics by making NewFileTracker lazy and non-erroring#30959

Merged
pelikhan merged 4 commits intomainfrom
copilot/fix-inconsistent-constructor-errors
May 8, 2026
Merged

Align pkg/cli constructor semantics by making NewFileTracker lazy and non-erroring#30959
pelikhan merged 4 commits intomainfrom
copilot/fix-inconsistent-constructor-errors

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 8, 2026

pkg/cli mixed constructor conventions: NewFileTracker eagerly validated git state and returned (*FileTracker, error), while peer non-command constructors returned *T and deferred validation. This change aligns FileTracker to the same lazy-constructor pattern.

  • Constructor API consistency

    • Changed NewFileTracker() from (*FileTracker, error) to *FileTracker.
    • Removed eager gitutil.FindGitRoot() lookup from construction.
  • Lazy precondition enforcement

    • Added internal lazy git root resolution in FileTracker and invoked it at staging time (StageAllFiles), where git context is actually required.
    • Preserved the same non-git failure semantics/message at use-time.
  • Caller and test updates

    • Updated all NewFileTracker call sites to drop constructor error handling (add_command, add_workflow_pr, and affected tests).
    • Added coverage for non-git behavior at method-call time (StageAllFiles in a non-repo directory).
// Before
tracker, err := NewFileTracker()
if err != nil { ... }

// After
tracker := NewFileTracker()
// error now surfaces when staging requires git context
if err := tracker.StageAllFiles(false); err != nil { ... }

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 + "/" + .name 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet env 1882096727/custom/workflows GO111MODULE ser.test GOINSECURE GOMOD GOMODCACHE ser.test (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw util GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linutest@example.com (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 go1.25.8 -c=4 -nolocalimports -importcfg /tmp/go-build3015834269/b441/importcfg -pack /tmp/go-build3015834269/b441/_testmain.go env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name h ../../../.prettierignore git sv --show-toplevel /usr/bin/git /usr/bin/git gh api ../pkg/workflow/-errorsas --jq /usr/bin/git --show-toplevel git /usr/bin/gh git (http block)
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name h ../../../.prettierignore git /usr/bin/git /ref/tags/v9 git sv git rev-�� w/js/**/*.json' --ignore-path git /usr/bin/git --show-toplevel git /usr/bin/git git (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 --show-toplevel /opt/hostedtoolcache/go/1.25.8/x3 /usr/bin/infocmp -unreachable=falgit /tmp/go-build301rev-parse x_amd64/compile infocmp -1 xterm-color x_amd64/compile /usr/bin/git runs/20260508-07gh -importcfg /usr/bin/git 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 sh /usr/bin/git k/gh-aw/gh-aw/.ggit gh /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv /repos/actions/checkout/git/ref/tags/v6 --jq /usr/bin/git run format:pkg-json /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcsh (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 /ref/tags/v9 ^remote\..*\.gh-resolved$ sv -json .cfg 64/pkg/tool/linu/repos/actions/github-script/git/ref/tags/v9 git rev-�� --show-toplevel 64/pkg/tool/linu-tests /usr/bin/git LsRemoteWithRealgit LsRemoteWithRealrev-parse 64/pkg/tool/linu--show-toplevel /usr/bin/git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv --show-toplevel gh /usr/bin/git /repos/actions/ggit --jq ndor/bin/sh git bran�� --show-current git /usr/bin/infocmp add-source-path-git git ode infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git 9eeac25b:pkg/cligit infocmp layTitle git rev-�� --show-toplevel git /usr/bin/gh '**/*.ts' '**/*.git git ache/uv/0.11.11/--show-toplevel gh (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 -unreachable=fal-test.timeout=10m0s /tmp/go-build301-test.run=^Test /opt/hostedtoolc-test.short=true GOSUMDB GOWORK 64/bin/go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -ato�� -bool -buildtags 1/x64/bin/node -errorsas -ifaceassert -nilfunc 1/x64/bin/node (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 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv ithub-script/git/ref/tags/v9 git bject.type] | @tsv --show-toplevel ortcfg /usr/bin/git git rev-�� --show-toplevel git /opt/hostedtoolcache/node/24.14.1/x64/bin/node --show-toplevel /opt/hostedtoolcrev-parse /usr/bin/gh node (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-build3015834269/b433/_pkg_.a -trimpath /usr/bin/infocmp -p main -lang=go1.25 infocmp -1 xterm-color -dwarf=false /usr/bin/git go1.25.8 -c=4 -nolocalimports git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv ErrorFormatting4208529520/001 rev-parse /usr/bin/infocmp -json GO111MODULE x_amd64/vet infocmp -1 xterm-color hJR_yappuwfB /usr/bin/git 01 GO111MODULE x_amd64/vet git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260508-071645-33155/test-1882096727/custom/workflows remote r,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,disp--show-toplevel -json GO111MODULE x_amd64/vet node /tmp�� /ref/tags/v9 Ww7VJguVlRAx sv -json GO111MODULE x_amd64/vet 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 xterm-color git /usr/bin/git /tmp/shared-actigh show 5834269/b405/cli/repos/actions/github-script/git/ref/tags/v9 git rev-�� --show-toplevel 5834269/b405/cli.test /usr/bin/infocmp --git-dir x_amd64/compile /usr/bin/git infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv xterm-color gh /usr/bin/git /repos/github/ghgh s/test.md /usr/bin/gh git rev-�� --show-toplevel gh /usr/bin/infocmp ithub-script/gitgit --jq bject.type] | @t--show-toplevel infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv xterm-color git /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� --show-toplevel git /usr/bin/infocmp --show-toplevel s/12345/artifactrev-parse (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 -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/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE cNu6uh6Xsdg3 env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9.0.0
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv -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/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv -c=4 -nolocalimports -importcfg /tmp/go-build3015834269/b449/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/stats/statvar.go /home/REDACTED/work/gh-aw/gh-aw/pkg/stats/spec_test.go env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9.0.0 --jq [.object.sha, .object.type] | @tsv 01 GO111MODULE x_amd64/vet GOINSECURE dules/flatted/gocommit GOMODCACHE x_amd64/vet env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 /repos/actions/github-script/git/ref/tags/v9 --jq /usr/bin/git eutil.test /tmp/go-build301api ortcfg.link git rev-�� --show-toplevel r_w3qRcZY0wv0fZF--jq /usr/bin/git -unreachable=falgit tname) g_.a git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv xterm-color ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git Onlymin-integritgh gh /home/node_modul/repos/actions/github-script/git/ref/tags/v9 git rev-�� --show-toplevel node /usr/bin/gh /ref/tags/v9 --write sv gh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv printf '%s' "$1" sh /usr/bin/git ApprovalLabelsCoinfocmp git /opt/hostedtoolcxterm-color git rev-�� --show-toplevel npx /usr/bin/git /ref/tags/v9 **/*.cjs sv 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 /ref/tags/v9 /tmp/go-build3015834269/b468/_testmain.go sv -json GO111MODULE x_amd64/link git -C /tmp/gh-aw-test-runs/20260508-071645-33155/test-3506617669 rev-parse /usr/bin/git @{u} .cfg 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/infocmp g_.a -buildtags e/git infocmp -1 xterm-color e/git /usr/bin/git /v2.0.0 /tmp/go-build301rev-parse sv git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/node/24.14.1/x64/bin/node /usr/bin/git hub.actor rev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git mpleWorkflow8868infocmp x_amd64/vet om/org1/repo.gitxterm-color git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv runs/20260508-071645-33155/test--test.timeout=10m0s -tests t -json GO111MODULE 64/bin/go infocmp -1 xterm-color wu7jHi_aTCme (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv 3961204549 remote /usr/bin/gh -json GO111MODULE x_amd64/vet gh api runs/20260508-071645-33155/test-3506617669 --jq /usr/bin/git led-with-env-temgit GO111MODULE x_amd64/vet git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv /repos/actions/github-script/git/ref/tags/v9.0.0 --jq /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE x_amd64/vet node /tmp�� /home/REDACTED/work/gh-aw/gh-aw/.github/workflows/approach-validator.md x_amd64/vet om/testorg/testrepo.git phen1906932890/0git phen1906932890/0rev-parse x_amd64/vet 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 GOMODCACHE x_amd64/vet /opt/hostedtoolcache/node/24.14.1/x64/bin/node -json GO111MODULE x_amd64/vet /opt/hostedtoolcache/node/24.14.1/x64/bin/node /tmp�� vars.MY_VAR x_amd64/vet /usr/bin/git -json GO111MODULE 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/gh-aw-test-runs/20260508-072154-46488/test-2271902423 remote /usr/bin/git --show-toplevel gh tions/setup/js/n--show-toplevel git rev-�� runs/20260508-072154-46488/test-1829581350 infocmp /usr/bin/docker on' --ignore-patgit git tions/setup/js/n--show-toplevel docker (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/infocmp /file_tracker_tegit git /usr/bin/infocmp--show-toplevel infocmp -1 xterm-color infocmp /usr/bin/git 1337138219/.githgit gh /usr/bin/git git (http block)
  • https://api.github.com/repos/aws-actions/configure-aws-credentials/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel /tmp/go-build3015834269/b456/styles.test /usr/bin/git -test.paniconexigit -test.v=true /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git /tmp/gh-aw-test-gh show /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/node/24.14.1/x64/bin/node /usr/bin/git ere config /opt/hostedtoolc/repos/actions/github-script/git/ref/tags/v9 git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.8/x--jq /usr/bin/git -unreachable=falgit /tmp/go-build301rev-parse /usr/bin/git git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/aws-actions/configure-aws-credentials/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv xterm-color /opt/hostedtoolcache/node/24.14.1/x64/bin/node /usr/bin/git steps.test.outpugit git .git git rev-�� --show-toplevel git /usr/bin/infocmp /tmp/TestGuardPogh s /usr/bin/git infocmp (http block)
  • https://api.github.com/repos/azure/login/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git /tmp/TestGuardPogit remote /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git /tmp/gh-aw-test-infocmp config om/org1/repo1.gixterm-color git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git /tmp/gh-aw-test-git rev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git ithub-script/gitinfocmp config bject.type] | @txterm-color git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/azure/login/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv --show-toplevel gh /usr/bin/git /repos/actions/ggit l t git rev-�� --show-toplevel infocmp /usr/bin/git xterm-color git r: $owner, name:xterm-color git (http block)
  • https://api.github.com/repos/docker/login-action/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/node/24.14.1/x64/bin/node /usr/bin/git 'x' && github.agit config clusion,workflow--show-toplevel git rev-�� /ref/tags/v9 git sv thImports3798149infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv --show-toplevel /opt/hostedtoolcache/node/24.14.1/x64/bin/node /usr/bin/git github.event.inpgit git /usr/bin/git git rev-�� /ref/tags/v9 git sv /usr/bin/gh git /usr/bin/gh git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/docker/login-action/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git /tmp/gh-aw-test-git (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 /repos/actions/github-script/git/ref/tags/v9 --jq /usr/bin/gh SameOutput341422gh /tmp/go-build301api e/git gh api /repos/actions/github-script/git/ref/tags/v9 --jq /usr/bin/git -unreachable=falinfocmp /tmp/go-build301-1 /opt/hostedtoolcxterm-color 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 --paginate repos/{owner}/{repo}/actions/runs/2/artifacts /usr/bin/git .artifacts[].namgh on ache/node/24.14./repos/actions/github-script/git/ref/tags/v9 git rev-�� --show-toplevel sh /usr/bin/git sistency_GoAndJainfocmp git ache/node/24.14.xterm-color 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 -v git /usr/bin/git Onlymin-integritgit on rkflow/js/**/*.j--show-toplevel git rev-�� /ref/tags/v9 sh sv npx prettier --winfocmp git e/git 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 /ref/tags/v9 remote.origin.url sv 038441030/001 038441030/002/worev-parse x_amd64/vet git bran�� --show-current resolved$ /usr/bin/git le-frontmatter.mgit 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/v1.0.0 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git iant-2996111044 infocmp /usr/bin/git git rev-�� --show-toplevel git /usr/bin/git .js' --ignore-painfocmp git sh 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 --show-toplevel git /usr/bin/git /ref/tags/v9 git sh git rev-�� /ref/tags/v9 git sv on' --ignore-patgit git /usr/bin/infocmp--show-toplevel 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 user.email test@example.com /usr/bin/git -json GO111MODULE x_amd64/vet git add /ref/tags/v9 x_amd64/vet sv ub/workflows 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/v1.2.3 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git to pkg/actionpingit infocmp /usr/bin/git git rev-�� --show-toplevel l /usr/bin/git lGitmaster_brancgit lGitmaster_brancrev-parse tions/setup/js/n--show-toplevel 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 /repos/actions/github-script/git/ref/tags/v9.0.0 --jq /usr/bin/git --show-toplevel git odules/npm/node_--show-toplevel git rev-�� runs/20260508-072355-59067/test-3977210642 git /usr/bin/gh on' --ignore-patgit git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-05-01 GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet eWit�� -json .cfg x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-04-08 GOMOD GOMODCACHE sY5xy3c/9ezsDU_VWw7VJguVlRAx itcu�� -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --limit 100 --created >=2026-02-07 GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet itbr�� -json .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuInitial commit (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 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 .cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xtest@example.com (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name on ache/node/24.14.1/x64/bin/node /../../.prettiergit erignore /usr/bin/git sh t-40�� sistency_GoAndJavaScript3675887027/001/test-complex-frontmatter-with-tools.md git ache/node/24.14.1/x64/bin/node --show-toplevel git de sh (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 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linu-buildmode=exe GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu/tmp/go-build3015834269/b112/vet.cfg env ithub/workflows GO111MODULE k GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xTest User (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name ../../../**/*.json ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet --ignore-path ../../../.prettirev-parse bject.type] | @t--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet -l /ref/tags/v9 actions/setup/js/node_modules/flatted/golang/pkg/flatted/flatted.go sv cmd/gh-aw/capitagit cmd/gh-aw/commanrev-parse cmd/gh-aw/format--show-toplevel e/git (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1234567890
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, th .prettierignore --log-level=error git n-dir/bash --show-toplevel /tmp/go-build301-o (http block)
    • Triggering command: /usr/bin/gh gh api repos/{owner}/{repo}/actions/runs/1234567890 --jq {databaseId: .id, number: .run_number, url: .html_url, status: .status, conclusion: .conclusion, workflowName: .name, workflowPath: .path, createdAt: .created_at, startedAt: .run_started_at, updatedAt: .updated_at, event: .event, headBranch: .head_branch, h ../../../.prettierignore git modules/@npmcli/run-script/lib/node-gyp-bin/node --show-toplevel git /usr/bin/git infocmp -1 ithub-script/git-errorsas git bject.type] | @t-nilfunc --show-toplevel 069-9a69-8bd9b8fapi /usr/bin/git git (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 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu/tmp/go-build3015834269/b111/vet.cfg (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD th: .path, creat--show-toplevel ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name nomaly.go ache/node/24.14.1/x64/bin/node --ignore-path ../../../.prettirev-parse /usr/bin/infocmp--show-toplevel /opt/hostedtoolcache/go/1.25.8/xTest User t-92�� sistency_GoAndJavaScript3675887027/001/test-empty-frontmatter.md--thin pkg/workflow/call_workflow_test.go /opt/hostedtoolcache/go/1.25.8/x64/bin/node pkg/workflow/calgit pkg/workflow/camrev-parse pkg/workflow/che--show-toplevel node (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 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linu-importcfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x--json env -json GO111MODULE k GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/xtest@example.com (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 .cfg 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/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 on ache/node/24.14.1/x64/bin/node /../../.prettiergit erignore /usr/bin/git sh t-23�� sistency_GoAndJavaScript3675887027/001/test-frontmatter-with-env--exclude-hidden=receive git ache/node/24.14.1/x64/bin/node s/data/action_piinfocmp git /usr/bin/infocmpxterm-color sh (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 GO111MODULE 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linu^remote\..*\.gh-resolved$ (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 .cfg 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name on rkflow/js/**/*.json /../../.prettiergit erignore /usr/bin/git sh -c npx prettier --write '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pr**/*.json git ache/node/24.14.1/x64/bin/node tions-lock.json git git run-script/lib/n--show-toplevel sh (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 GO111MODULE nutil.test GOINSECURE GOMOD GOMODCACHE nutil.test 0158�� -json GO111MODULE .cfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linutest@example.com (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 GO111MODULE 64/pkg/tool/linux_amd64/link GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name on rkflow/js/**/*.json /../../.prettiergit erignore name, workflowPa--show-toplevel sh -c npx prettier --write '**/*.cjs' --detach git ache/node/24.14.1/x64/bin/node --show-toplevel git /usr/bin/gh sh (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 GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 GO111MODULE .cfg GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name on sv /../../.prettiergit erignore /usr/bin/git sh -c npx prettier --write '**/*.cjs' '**/*.ts' '**/*.json' --ignore-path ../../../.pr**/*.json git ache/go/1.25.8/x64/pkg/tool/linux_amd64/link --show-toplevel git /usr/bin/infocmp--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/link (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (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 GOMOD GOMODCACHE x_amd64/vet env go GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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 GOMOD GOMODCACHE x_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build3015834269/b405/cli.test /tmp/go-build3015834269/b405/cli.test -test.testlogfile=/tmp/go-build3015834269/b405/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)
    • Triggering command: /tmp/go-build1184576100/b405/cli.test /tmp/go-build1184576100/b405/cli.test -test.testlogfile=/tmp/go-build1184576100/b405/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true xterm-color git (http block)
    • Triggering command: /tmp/go-build1241626096/b405/cli.test /tmp/go-build1241626096/b405/cli.test -test.testlogfile=/tmp/go-build1241626096/b405/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true /ref/tags/v9 rev-parse sv gh api &1 --jq sv --show-toplevel git /usr/bin/git git (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 git /usr/bin/git cron.hourly remote.origin.ur-k /usr/bin/git git rev-�� /ref/tags/v9 git sv --show-toplevel x_amd64/vet /opt/hostedtoolc--show-toplevel gh (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 git /usr/bin/git /tmp/TestGuardPodu rev-parse /usr/bin/git git rev-�� --show-toplevel git /usr/bin/gh --show-toplevel git /usr/bin/git gh (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 not-exist-xyzzy:never /usr/bin/gh /tmp/TestGuardPodu config /usr/bin/git gh api /repos/actions/github-script/git/ref/tags/v9 --jq /usr/bin/git /tmp/gh-aw-test-git config /usr/bin/git git (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 1182177527/.github/workflows 5834269/b102/vet.cfg ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linushow env 1645-33155/test-3430722362/.github/workflows GO111MODULE ingutil.test GOINSECURE GOMOD GOMODCACHE ingutil.test (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 '**/*.ts' '**/*.json' --ignore-path ../../../.pr**/*.json infocmp tnet/tools/git xterm-color infocmp /usr/bin/git git 9358�� .js' --ignore-path .prettierignore --log-level=error git odules/npm/node_modules/@npmcli/run-script/lib/node-gyp-bin/sh h/git/ref/tags/vgit infocmp sv gh (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' --ignore-p--exclude-hidden=receive --jq /usr/bin/git --show-toplevel git /usr/bin/git git rev-�� th .prettierignore --log-level=error git /usr/bin/git --show-toplevel git (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 -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env ub/workflows GO111MODULE 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 -test.md git tions/setup/js/node_modules/.bin/sh --show-toplevel git /usr/bin/gh git rev-�� ./../pkg/workflow/js/**/*.json' --ignore-path gh x_amd64/vet /repos/actions/sgh --jq /usr/bin/infocmp/repos/actions/github-script/git/ref/tags/v9.0.0 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 1337138219/.github/workflows infocmp (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 -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet 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/v2.0.0 --jq [.object.sha, .object.type] | @tsv -c=4 -nolocalimports -importcfg /tmp/go-build3015834269/b471/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/typeutil/convert.go /home/REDACTED/work/gh-aw/gh-aw/pkg/typeutil/convert_test.go env -json GO111MODULE x_amd64/link GOINSECURE GOMOD GOMODCACHE x_amd64/link (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 -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env b/workflows GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (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 -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet env b/workflows GO111MODULE 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 on' --ignore-pat--detach git es/.bin/node --show-toplevel gh /usr/bin/gh git rev-�� ub/workflows gh ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /v0.47.4 --jq sv ache/go/1.25.8/x64/pkg/tool/linu--jq (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 y-test.md git (http block)
  • https://api.github.com/repos/google-github-actions/auth/git/ref/tags/v2
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git /tmp/TestGuardPogit config clusion,workflow--show-toplevel git rev-�� --show-toplevel git /usr/bin/infocmp --show-toplevel x_amd64/vet /usr/bin/git infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv -3510145245/base.md -3510145245/new.md /usr/bin/git /tmp/gh-aw-test-git rev-parse git git rev-�� --show-toplevel git /usr/bin/git bject.type] | @tgit gh /usr/bin/gh git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/google-github-actions/auth/git/ref/tags/v2 --jq [.object.sha, .object.type] | @tsv runs/20260508-072355-59067/test-3462375537 node /usr/bin/git /home/REDACTED/worgit git git git rev-�� --show-toplevel git /usr/bin/git ithub-script/gitgit remote bject.type] | @t--show-toplevel git (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 Mz4KX2SHS 5834269/b087/vet.cfg $name) { hasDiscussionsEnabled } } GOINSECURE GOMOD GOMODCACHE ortcfg (http block)
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv '**/*.ts' '**/*.json' --ignore-path ../../../.pr**/*.json infocmp it /ref/tags/v9 gh sv git ode_�� .js' --ignore-path .prettierignore --log-level=error git ode /ref/tags/v9 gh sv git (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' --ignore-path ../../../.pr**/*.json git ndor/bin/git --show-toplevel git /usr/bin/git gh ules�� /repos/actions/gremote.origin.url --jq ndor/bin/git --show-toplevel git /usr/bin/infocmp git (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 GOINSECURE GOMOD GOMODCACHE OQt4NyRmo1hiKPu1-z/aMwv_nfK75JUCd43tsyO/n7EgF7Z8--jq env 3053170989/.github/workflows GO111MODULE .yml GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linushow (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion tions-lock.json git git run-script/lib/n--show-toplevel sh t-75�� k/gh-aw/gh-aw/.github/workflows/ai-moderator.md git /home/REDACTED/work/node_modules/.bin/node tierignore git /usr/bin/git node (http block)
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion echo 'not found'git git /usr/bin/git node /opt�� prettier --write ache/node/24.14.1/x64/bin/node **/*.ts **/*.json --ignore-path sh (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 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 workflow list --json name,state,path --repo owner/repo 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state sv GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (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 -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name h ../../../.prettierignore git /usr/bin/git /ref/tags/v9 gh sv git rev-�� ../pkg/workflow/-errorsas assword=$GITHUB_-ifaceassert 64/pkg/tool/linu-nilfunc /repos/actions/ggit --jq /usr/bin/infocmp--show-toplevel 64/pkg/tool/linu-tests (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name h ../../../.prettierignore --jq /usr/bin/gh --show-toplevel gh /usr/bin/git gh api w/js/**/*.json' --ignore-path --jq /usr/bin/git --show-toplevel git docker-compose git (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch 1645-33155/test-3430722362/.github/workflows GO111MODULE ingutil.test GOINSECURE GOMOD GOMODCACHE ingutil.test 0158�� 5834269/b414/_pkg_.a /tmp/go-build3015834269/b021/vet.cfg 5834269/b414=> GOSUMDB b/gh-aw/pkg/consrev-parse 64/bin/go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch /usr/bin/gh git /usr/bin/infocmp ned-imports-enabgit gh bin/node infocmp -1 /ref/tags/v9 git sv go lan for file trarev-parse x_amd64/compile infocmp (http block)
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch xterm-color gh /usr/bin/git /repos/actions/ggit --jq ctor-errors git conf�� ithub-script/git/ref/tags/v9 Test User bject.type] | @tsv rity3149336769/0git gh es git (http block)

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

Copilot AI and others added 3 commits May 8, 2026 07:17
This reverts commit f1b6283.

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/449aae43-3518-4069-9a69-8bd9b8ff3f6c

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix inconsistent constructor error-return pattern in cli package Align pkg/cli constructor semantics by making NewFileTracker lazy and non-erroring May 8, 2026
Copilot AI requested a review from gh-aw-bot May 8, 2026 07:26
@pelikhan pelikhan marked this pull request as ready for review May 8, 2026 09:44
Copilot AI review requested due to automatic review settings May 8, 2026 09:44
@pelikhan pelikhan merged commit c1390d1 into main May 8, 2026
3 checks passed
@pelikhan pelikhan deleted the copilot/fix-inconsistent-constructor-errors branch May 8, 2026 09:49
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

Aligns pkg/cli constructor semantics by making NewFileTracker lazy (no eager git validation) and shifting git-repo precondition checks to the point of use.

Changes:

  • Updated NewFileTracker() to return *FileTracker (no error) and added lazy git root resolution via an internal ensureGitRoot().
  • Moved the “must be in a git repo” failure from construction time to staging time (StageAllFiles).
  • Updated call sites/tests to the new constructor signature and added a unit test asserting non-git behavior at method-call time.
Show a summary per file
File Description
pkg/cli/file_tracker.go Makes NewFileTracker non-erroring and adds lazy git-root resolution used by StageAllFiles.
pkg/cli/add_command.go Updates NewFileTracker usage to match the new non-erroring constructor.
pkg/cli/add_workflow_pr.go Updates NewFileTracker usage in PR flow; staging now triggers lazy git-root validation.
pkg/cli/file_tracker_test.go Updates constructor usage and adds coverage for StageAllFiles failing outside a git repo.
pkg/cli/packages_test.go Updates constructor usage in package include-dependency tracking tests.

Copilot's findings

Tip

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

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

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.

[sergo] pkg/cli: inconsistent constructor error-return pattern — NewFileTracker vs NewMCPRegistryClient

4 participants