Repository navigation
fix: use worktrunk-bot identity for commit authorship in CI - #1271
Conversation
`claude-code-action` defaults to `bot_id: "41898282"` and `bot_name: "claude[bot]"`, producing commits with the noreply email `41898282+claude[bot]@users.noreply.github.com`. GitHub maps that numeric prefix to `github-actions[bot]`, so commits appeared authored by that account instead of `worktrunk-bot`. Set `bot_id: "254187624"` and `bot_name: "worktrunk-bot"` on all Claude workflows so commits are correctly attributed. Also remove the now-redundant "Configure git for Claude" steps — the action handles git author configuration via these inputs. Closes #1269 Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
I thought that we always used @worktrunk-bot as the user, rather than the GitHub actions bot. Is there a workflow where we don't do that? |
|
The workflows did have "Configure git for Claude" steps setting the git user, but Since we weren't passing So the old "Configure git for Claude" steps were effectively dead code — they got overwritten by claude-code-action every time. This PR removes them and passes the correct identity ( |
|
I don't think that answers my question, though. Who is the user for these workflows — I thought it was @worktrunk-bot , but possibly there are workflows which don't use that / don't set that token? |
|
You're right — every workflow does use The issue is narrower than it might seem: it's only about git commit authorship. So the old "Configure git for Claude" steps were dead code — they ran before tl;dr: the user was always |
|
great, merged. is there a practical path to consolidating the CI setup code that's currently repeated? could we do it with a net LOC decrease? |
|
Yes — a composite action would give a meaningful net decrease. Roughly 30% of the 1,073 lines across the 7
A single Happy to put up a PR for this if you'd like. |
yes please |
## Summary - Extracts the repeated cargo-insta, cargo-nextest, rust-cache, and shell installation steps from all 7 `claude-*` workflows into a single composite action at `.github/actions/claude-setup/action.yaml` - Each workflow now calls the composite action in one step instead of duplicating 4 setup steps - Updates the `claude-renovate` prompt to reference the composite action as the canonical location for tool version pins Net change: **-88 lines** (146 removed, 58 added). Tool version pins are now in one place — future version bumps update 1 file instead of 7. <details><summary>Per-workflow changes</summary> | Workflow | Before | After | Change | |----------|--------|-------|--------| | claude-ci-fix | 4 setup steps | 1 composite action call | -13 lines | | claude-issue-triage | 4 setup steps | 1 composite action call | -13 lines | | claude-mention | 4 setup steps | 1 composite action call | -13 lines | | claude-nightly-cleaner | 4 setup steps | 1 composite action call | -13 lines | | claude-nightly-review-reviewers | 4 setup steps | 1 composite action call | -13 lines | | claude-review | 4 conditional steps | 1 conditional composite action call | -15 lines | | claude-renovate | 1 cache step | 1 composite action call (tools+shells disabled) | ±0 lines | </details> Closes the follow-up from #1271. ## Test plan - [x] Workflow YAML is valid (no syntax errors from `gh` push) - [ ] Next Claude CI run on any workflow confirms the composite action works 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: worktrunk-bot <[email protected]> Co-authored-by: Claude Opus 4.6 <[email protected]>
|
PR up: #1273. Extracts the 4 repeated setup steps (cargo-insta, cargo-nextest, rust-cache, shells) into a composite action at |
Summary
claude-code-actiondefaultsbot_idto41898282(github-actions[bot]'s user ID) andbot_nametoclaude[bot], producing the noreply email41898282+claude[bot]@users.noreply.github.comgithub-actions[bot]instead ofworktrunk-botbot_id: "254187624"andbot_name: "worktrunk-bot"on all 7 Claude workflows, and remove the now-redundant "Configure git for Claude" stepsTest plan
worktrunk-botas authorCloses #1269
🤖 Generated with Claude Code