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
Protected files were modified in this change.
This pull request is in request_review mode and requires explicit human scrutiny before merge.
Protected files: README.md
Functions Removed
Function
File
FindPricing
pkg/modelsdev/catalog.go
ensureCatalog
pkg/modelsdev/catalog.go
downloadAndParseCatalog
pkg/modelsdev/catalog.go
parseCatalog
pkg/modelsdev/catalog.go
parseCostMap
pkg/modelsdev/catalog.go
Tests Removed
pkg/modelsdev/catalog_test.go (entire file: TestParseCatalog, TestParseCostMap, TestFindPricing, plus duplicated Normalize* tests kept in spec_test.go)
TestSpec_PublicAPI_FindPricing and TestSpec_DesignDecision_ProviderAliases in pkg/modelsdev/spec_test.go
NormalizeProvider and NormalizeComparableModelID were kept — still used by pkg/cli/model_costs.go. Also updated pkg/modelsdev/README.md to drop references to the removed pricing-catalog API.
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 30370912502 -n agent -D /tmp/agent-30370912502
# Fetch the bundle into a temporary ref, then update the local branch
git fetch /tmp/agent-30370912502/aw-chore-remove-dead-modelsdev-catalog-code.bundle refs/heads/chore/remove-dead-modelsdev-catalog-code:refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6-a9e42123
git update-ref refs/heads/chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6 refs/bundles/create-pr-chore-remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6-a9e42123
git checkout chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6
# 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-code-bab8c7a338bfbeb6-a9e42123
# Push the branch to origin
git push origin chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6
# 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-code-bab8c7a338bfbeb6 --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
Tests Removed
pkg/modelsdev/catalog_test.go(entire file: TestParseCatalog, TestParseCostMap, TestFindPricing, plus duplicated Normalize* tests kept in spec_test.go)TestSpec_PublicAPI_FindPricingandTestSpec_DesignDecision_ProviderAliasesinpkg/modelsdev/spec_test.goNormalizeProviderandNormalizeComparableModelIDwere kept — still used bypkg/cli/model_costs.go. Also updatedpkg/modelsdev/README.mdto drop references to the removed pricing-catalog API.Verification
go build ./...go vet ./...go vet -tags=integration ./...make fmthttps://github.com/github/gh-aw/actions/runs/30370912502
Note
This was originally intended as a pull request, but the git push operation failed.
Original error: pushSignedCommits: refusing unsigned push for branch 'chore/remove-dead-modelsdev-catalog-code-bab8c7a338bfbeb6': 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: