Skip to content

Commit c4630b3

Browse files
committed
Fix GooseBot model deprecation and disable auto-triggers
- Disable automatic pull_request_target triggers to stop noise on every PR - Update model from deprecated claude-3-sonnet-20240229 to claude-sonnet-4-20250514 - Make model configurable via ANTHROPIC_MODEL environment variable - Preserve manual workflow_dispatch trigger for optional use - Update memory bank to reflect changes Fixes #623
1 parent 1fec631 commit c4630b3

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/scripts/goosebot_review.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,12 @@ def call_anthropic_api(prompt: str, token_tracker: TokenUsageTracker, max_tokens
313313

314314
client = anthropic.Anthropic(**client_kwargs)
315315

316-
# Use Claude Sonnet 3.7 model
316+
# Use Claude Sonnet 4 model (configurable via environment variable)
317+
model = os.environ.get("ANTHROPIC_MODEL", "claude-sonnet-4-20250514")
318+
logger.info(f"Using model: {model}")
319+
317320
response = client.messages.create(
318-
model="claude-3-sonnet-20240229",
321+
model=model,
319322
max_tokens=max_tokens,
320323
system="You are GooseBot, an AI assistant that helps with code reviews for the Goose load testing framework. Be concise and helpful.",
321324
messages=[

.github/workflows/goosebot_review.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: GooseBot PR Review
22

33
on:
4-
# Use pull_request_target instead of pull_request to access secrets
5-
# This runs in the context of the base repo instead of the fork
6-
pull_request_target:
7-
types: [opened, synchronize, reopened]
8-
# Manual trigger for testing
4+
# Automatic triggers disabled due to model deprecation causing noise on every PR
5+
# See: https://github.com/tag1consulting/goose/issues/623
6+
# pull_request_target:
7+
# types: [opened, synchronize, reopened]
8+
9+
# Manual trigger for optional use
910
workflow_dispatch:
1011
inputs:
1112
pr_number:
@@ -59,6 +60,7 @@ jobs:
5960
env:
6061
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
6162
ANTHROPIC_API_URL: ${{ secrets.ANTHROPIC_API_URL }}
63+
ANTHROPIC_MODEL: "claude-sonnet-4-20250514"
6264
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6365
# Configure file filtering
6466
PR_REVIEW_WHITELIST: "*.rs,*.md,*.py,*.toml,*.yml,*.yaml"

memory-bank/activeContext.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Based on the code analysis, potential next steps for the project may include:
3535
- Created local testing tool with .env support for faster prompt iteration
3636
- Added explicit "no issues found" response when PR documentation is adequate
3737
- Additional review scopes planned for future phases (see [aiCodeReviewPlan.md](./aiCodeReviewPlan.md) for full implementation plan)
38-
- Update Claude model before July 2025 deprecation date
38+
- ✓ Updated Claude model from deprecated claude-3-sonnet-20240229 to claude-sonnet-4-20250514 (Issue #623)
3939

4040
## Active Decisions and Considerations
4141

0 commit comments

Comments
 (0)