You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also removed now-unused supporting types/vars/consts (rawCatalog, rawProvider, rawModel, pricingCache, catalogURL, catalogCache, httpClientFactory, pkgLog, fetchTimeout, maxBodyBytes) and updated pkg/modelsdev/README.md to drop the FindPricing public API entry. NormalizeProvider and NormalizeComparableModelID (still used by pkg/cli/model_costs.go) were kept.
The bundle file is available in the agent artifact in the workflow run linked above.
To create a pull request with the changes:
# Download the artifact from the workflow run
gh run download 31318112320 -n agent -D /tmp/agent-31318112320
# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-31318112320/aw-chore-remove-dead-modelsdev-catalog.bundle refs/heads/chore/remove-dead-modelsdev-catalog:refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-97f619af9bf9310b-2c2eae07
git update-ref refs/heads/chore/remove-dead-modelsdev-catalog-97f619af9bf9310b refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-97f619af9bf9310b-2c2eae07
git checkout chore/remove-dead-modelsdev-catalog-97f619af9bf9310b
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-97f619af9bf9310b-2c2eae07
# Push the branch to origin
git push origin chore/remove-dead-modelsdev-catalog-97f619af9bf9310b
# Create the pull request
gh pr create --title '[dead-code] chore: remove dead functions — 5 functions removed' --base main --head chore/remove-dead-modelsdev-catalog-97f619af9bf9310b --repo github/gh-aw
Caution
Protected files were modified in this change.
This pull request is in
request_reviewmode and requires explicit human scrutiny before merge.Protected files:
README.mdFunctions Removed
FindPricingpkg/modelsdev/catalog.goensureCatalogpkg/modelsdev/catalog.godownloadAndParseCatalogpkg/modelsdev/catalog.goparseCatalogpkg/modelsdev/catalog.goparseCostMappkg/modelsdev/catalog.goTests Removed
TestFindPricing(pkg/modelsdev/catalog_test.go)TestParseCatalog(pkg/modelsdev/catalog_test.go)TestParseCostMap(pkg/modelsdev/catalog_test.go)TestSpec_PublicAPI_FindPricing(pkg/modelsdev/spec_test.go)TestSpec_DesignDecision_ProviderAliases(pkg/modelsdev/spec_test.go)Also removed now-unused supporting types/vars/consts (
rawCatalog,rawProvider,rawModel,pricingCache,catalogURL,catalogCache,httpClientFactory,pkgLog,fetchTimeout,maxBodyBytes) and updatedpkg/modelsdev/README.mdto drop theFindPricingpublic API entry.NormalizeProviderandNormalizeComparableModelID(still used bypkg/cli/model_costs.go) were kept.Verification
go build ./...go vet ./...go vet -tags=integration ./...make fmtRun: https://github.com/github/gh-aw/actions/runs/31318112320
Note
This was originally intended as a pull request, but the git push operation failed.
Original error: ERR_VALIDATION: pushSignedCommits: refusing unsigned push for branch 'chore/remove-dead-modelsdev-catalog-97f619af9bf9310b': Signed-commit payload violates file-protection policy (request_review): pkg/modelsdev/README.md
Workflow Run: View run details and download bundle artifact
The bundle file is available in the
agentartifact in the workflow run linked above.To create a pull request with the changes: