Skip to content

feat: require one of key, instead of mandatory OD-166#15

Merged
manufacturist merged 1 commit into
mainfrom
feat/od-166
Jun 26, 2026
Merged

feat: require one of key, instead of mandatory OD-166#15
manufacturist merged 1 commit into
mainfrom
feat/od-166

Conversation

@manufacturist

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 26, 2026 07:34

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the server-side pipeline entrypoint to support running configure-codacy-cloud with either Claude (Anthropic) or Gemini, requiring at least one LLM API key rather than mandating ANTHROPIC_API_KEY.

Changes:

  • Removes ANTHROPIC_API_KEY from the always-required environment variable list and replaces it with a “require at least one of ANTHROPIC_API_KEY or GEMINI_API_KEY” check.
  • Adds a provider switch to run the skill via claude when ANTHROPIC_API_KEY is set, otherwise via gemini when GEMINI_API_KEY is set.
  • Captures and appends run metadata for both LLM paths into the summary JSON.

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

@manufacturist manufacturist merged commit 8d78c1f into main Jun 26, 2026
2 of 3 checks passed

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the docker/server-pipeline.sh script to support both Anthropic (Claude) and Gemini models. It removes ANTHROPIC_API_KEY from the strictly required variables list and instead adds a check to ensure that at least one of ANTHROPIC_API_KEY or GEMINI_API_KEY is provided. Depending on which key is present, the script executes the corresponding CLI tool (claude or gemini) and extracts the run metadata accordingly. There are no review comments, so I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

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.

3 participants