feat(prd-5): add dedicated claude-bot user for Forgejo
- Add bot_email action input for custom git commit email on Forgejo - Update claude.yml to use CLAUDE_BOT_TOKEN with bot_id/bot_name/bot_email - Update git-config.ts to use provided email over noreply format - Add "Dedicated Bot User" setup guide to docs/forgejo.md - Update CLAUDE.md with bot identity documentation Infrastructure (done outside code): - claude-bot user created (ID 48, non-admin, with avatar) - Claude team with write access in all 12 orgs - CLAUDE_BOT_TOKEN org-level secret in all 12 orgs Progress: ~85% complete - pending E2E validation after merge Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
07e0384538
commit
b03ccb518c
13 files changed
+57
-16
No files matched your search
+5
-5
@@ -43,9 +43,9 @@ jobs:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
platform: "forgejo"
|
||||
github_token: ${{ secrets.CLAUDE_BOT_TOKEN }}
|
||||
bot_id: "YOUR_BOT_ID" # Replace with your bot's Forgejo user ID (see step 5 below)
|
||||
bot_id: "48" # Your bot user's Forgejo ID
|
||||
bot_name: "claude-bot"
|
||||
bot_email: "claude@yourdomain.com" # Must match the bot user's registered email
|
||||
bot_email: "claude@wxs.ro"
|
||||
```
|
||||
|
||||
### 3. Agent Mode (Automation)
|
||||
@@ -71,9 +71,9 @@ jobs:
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
platform: "forgejo"
|
||||
github_token: ${{ secrets.CLAUDE_BOT_TOKEN }}
|
||||
bot_id: "YOUR_BOT_ID" # Replace with your bot's Forgejo user ID
|
||||
bot_id: "48"
|
||||
bot_name: "claude-bot"
|
||||
bot_email: "claude@yourdomain.com"
|
||||
bot_email: "claude@wxs.ro"
|
||||
```
|
||||
|
||||
## Platform Detection
|
||||
@@ -198,7 +198,7 @@ curl -s "https://your-forgejo-instance/api/v1/users/claude-bot" | jq '.id'
|
||||
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
platform: "forgejo"
|
||||
github_token: ${{ secrets.CLAUDE_BOT_TOKEN }}
|
||||
bot_id: "YOUR_BOT_ID" # Replace with the ID from step 5
|
||||
bot_id: "48" # From step 5
|
||||
bot_name: "claude-bot"
|
||||
bot_email: "claude@yourdomain.com" # Must match the bot user's registered email
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user