Skip to content

Commit def5caf

Browse files
Merge branch 'main' of github.com:codeflash-ai/codeflash into exp/adaptive-optimization
2 parents 51f24ee + d2d57fe commit def5caf

28 files changed

Lines changed: 1030 additions & 502 deletions

.github/workflows/claude-code-review.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
24-
pull-requests: read
24+
pull-requests: write
2525
issues: read
2626
id-token: write
2727

@@ -35,7 +35,8 @@ jobs:
3535
id: claude-review
3636
uses: anthropics/claude-code-action@v1
3737
with:
38-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
38+
use_foundry: "true"
39+
use_sticky_comment: true
3940
prompt: |
4041
REPO: ${{ github.repository }}
4142
PR NUMBER: ${{ github.event.pull_request.number }}
@@ -49,9 +50,10 @@ jobs:
4950
5051
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
5152
52-
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
53-
5453
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
5554
# or https://code.claude.com/docs/en/cli-reference for available options
56-
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
55+
claude_args: '--allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'
56+
env:
57+
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
58+
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}
5759

.github/workflows/claude.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,10 @@ jobs:
3434
id: claude
3535
uses: anthropics/claude-code-action@v1
3636
with:
37-
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
38-
39-
# This is an optional setting that allows Claude to read CI results on PRs
37+
use_foundry: "true"
4038
additional_permissions: |
4139
actions: read
42-
43-
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
44-
# prompt: 'Update the pull request description to include a summary of changes.'
45-
46-
# Optional: Add claude_args to customize behavior and configuration
47-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
48-
# or https://code.claude.com/docs/en/cli-reference for available options
49-
# claude_args: '--allowed-tools Bash(gh pr:*)'
40+
env:
41+
ANTHROPIC_FOUNDRY_API_KEY: ${{ secrets.AZURE_ANTHROPIC_API_KEY }}
42+
ANTHROPIC_FOUNDRY_BASE_URL: ${{ secrets.AZURE_ANTHROPIC_ENDPOINT }}
5043

.github/workflows/pr_agent.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)