Skip to content

feat(ci): ANTHROPIC_BASE_URL override for changelog generation#269

Merged
vreshch merged 1 commit into
masterfrom
feature/azure-anthropic-url
Jul 17, 2026
Merged

feat(ci): ANTHROPIC_BASE_URL override for changelog generation#269
vreshch merged 1 commit into
masterfrom
feature/azure-anthropic-url

Conversation

@vreshch

@vreshch vreshch commented Jul 17, 2026

Copy link
Copy Markdown
Member

Why

Moving changelog generation off the org Anthropic key (spend-capped) to the Azure AI Foundry resource, which serves claude-sonnet-4-6 over the Anthropic Messages API.

What

One workflow line: pass vars.ANTHROPIC_BASE_URL into the changelog step. @anthropic-ai/sdk reads ANTHROPIC_BASE_URL natively; empty/unset var falls back to api.anthropic.com (verified). The script's claude-sonnet-4-6 model id matches the Azure deployment name exactly - no code change.

Ops (done alongside)

  • repo var ANTHROPIC_BASE_URL = https://vreshch-2142-resource.services.ai.azure.com/anthropic
  • repo secret ANTHROPIC_API_KEY = Azure key (shadows the org secret for this repo)

Verified

Ran the exact SDK call generate-changelog.js makes with the new env locally - pong from claude-sonnet-4-6 via Azure, usage accounted. Full flow validates on the next release-prepare dispatch.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

🎉 PR Validation ✅ PASSED

Commit: d79c6cc83b28f905744ea73dee46bc7416383c9f
Branch: feature/azure-anthropic-url

Checks:

  • ✅ Release guard (no version/changelog changes)
  • ✅ Dependencies installed
  • ✅ Type check passed
  • ✅ Linting passed
  • ✅ Format check passed
  • ✅ Tests + coverage passed
  • ✅ Build successful

Ready to merge!


🔗 View workflow run
⏰ Generated at: 2026-07-17T21:25:55.823Z

@vreshch
vreshch merged commit 4654b49 into master Jul 17, 2026
3 checks passed
@vreshch
vreshch deleted the feature/azure-anthropic-url branch July 17, 2026 21:27
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.

1 participant