ci(release): resolve releaser bot user id at runtime - #10
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
📝 WalkthroughWalkthroughThe CI workflow dynamically resolves GitHub App bot user IDs for release and Homebrew tap commits. It uses these IDs in Git author and committer email values instead of a hardcoded ID. ChangesBot identity resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the release CI workflow to resolve GitHub App bot user IDs at runtime and use them to construct noreply emails that GitHub correctly links to the bot account, removing the previously hard-coded numeric user id.
Changes:
- Added runtime
gh api /users/{app-slug}[bot]lookups to fetch bot user IDs. - Updated
GIT_AUTHOR_EMAIL/GIT_COMMITTER_EMAIL(release) andRELEASE_BOT_EMAIL(tap) to use the resolved user id instead of312581908. - Added a similar identity-resolution step for the tap bot, gated on
new_release_published.
Suppressed comments (1)
.github/workflows/ci.yml:154
- This
run:command also contains nested double quotes, which will break shell parsing and preventtap-bot-identityfrom setting its output. Rewrite as a small multi-line script to capture the id and append it to$GITHUB_OUTPUTwithout conflicting quoting.
run: echo "user-id=$(gh api "/users/${APP_SLUG}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Use a multiline script so nested quotes do not break gh api, and fail if the resolved user id is not numeric. Co-authored-by: Cursor <cursoragent@cursor.com>
|
🎉 This PR is included in version 1.2.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
uinaf-releaserbot user id at runtime for linked noreply emails312581908from release commit identityTest plan
uinaf-releaser[bot]Review aids
Runtime lookup:
gh api /users/${app-slug}[bot] --jq .id→{id}+{slug}[bot]@users.noreply.github.comMade with Cursor
Summary by cubic
Resolve release and tap bot GitHub user IDs at runtime to construct correct noreply emails, linking commits to
uinaf-releaser[bot]and tap bot profiles. Use a robust, quoted lookup with numeric ID validation and drop the hard-coded312581908from the CI workflow.Written for commit a8d9b52. Summary will update on new commits.
Summary by CodeRabbit