Skip to content

ci(release): resolve releaser bot user id at runtime - #59

Merged
altaywtf merged 2 commits into
mainfrom
ci/runtime-release-bot-identity
Aug 3, 2026
Merged

ci(release): resolve releaser bot user id at runtime#59
altaywtf merged 2 commits into
mainfrom
ci/runtime-release-bot-identity

Conversation

@altaywtf

@altaywtf altaywtf commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Resolve the release bot numeric user id at runtime via /users/{app-slug}[bot]
  • Use that id in noreply commit emails instead of a hardcoded value

Test plan

  • CI green on this PR
  • Next release commit email links to putio-releaser[bot]

Review aids

Before: 283001373+${{ steps.release-bot.outputs.app-slug }}[bot]@…
After: ${{ steps.release-bot-identity.outputs.user-id }}+${{ steps.release-bot.outputs.app-slug }}[bot]@…

Made with Cursor

Avoid hardcoding the bot numeric id so noreply commit emails stay linked if the App is recreated.
Copilot AI review requested due to automatic review settings August 3, 2026 19:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the release workflow to dynamically resolve the GitHub App bot’s numeric user ID at runtime and use it to construct the users.noreply.github.com author/committer emails for semantic-release commits, avoiding a hardcoded ID.

Changes:

  • Add a workflow step that queries GET /users/{app-slug}[bot] via gh api to resolve the bot’s numeric id.
  • Use the resolved user-id output to build GIT_AUTHOR_EMAIL / GIT_COMMITTER_EMAIL instead of a fixed numeric prefix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/ci.yml
Use an explicit bash shell, URL-encode the [bot] path segment, and emit user_id so Actions expressions do not treat the output name as subtraction.
@altaywtf
altaywtf merged commit 802ee31 into main Aug 3, 2026
3 checks passed
@altaywtf
altaywtf deleted the ci/runtime-release-bot-identity branch August 3, 2026 19:33
@putio-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.4.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants