feat: remove Anthropic API key requirement, use Elementary API for CI reviews#1
Open
feat: remove Anthropic API key requirement, use Elementary API for CI reviews#1
Conversation
… reviews The Elementary API now handles AI generation server-side, so customers only need a single ELEMENTARY_API_KEY — no Anthropic account required. - review.sh: replace claude CLI call with curl to POST /api/v1/ci/review - action.yml: remove anthropic-api-key, claude-model, mcp-config-path inputs and the Install Claude CLI / Generate MCP config steps - templates/mr-review.yml: same removals for GitLab CI component - README.md: updated quick starts and secrets tables Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix stale "Claude" error message → "Elementary API" - Wrap JSON.parse in try-catch to handle non-JSON API responses gracefully Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Server now fetches the diff and resolves the environment via the connected
code project. The CI client only needs to pass repository name and branch.
- review.sh: send {repository, branch} instead of {diff}
- action.yml: remove models-path, diff-filter, base-ref inputs; no git diff step
- mr-review.yml: same for GitLab; remove git dependency
- README.md: simplified setup — just one secret, no checkout needed
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Match the server-side marker rename — platform-neutral name. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The API URL was hardcoded to production. Add an optional elementary-api-url input (defaults to production) so the action can be pointed at PR or dev environments for testing. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Elementary API doesn't use an /api/v1 prefix - the endpoint is served at /ci/review directly. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
GitHub API requires a User-Agent header, otherwise returns 403. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ELEMENTARY_API_KEY— no Anthropic account or API key requiredPOST /api/v1/ci/reviewendpointChanges
scripts/review.sh— replaceclaude -p ...with a singlecurlto the Elementary APIaction.yml— removeanthropic-api-key,claude-model,mcp-config-pathinputs; remove Install Claude CLI and Generate MCP config stepstemplates/mr-review.yml— same removals for the GitLab CI componentREADME.md— updated quick starts and secrets tables to reflect one secretTest plan
ELEMENTARY_API_KEYset (noANTHROPIC_API_KEY)ELEMENTARY_API_KEYset🤖 Generated with Claude Code