Skip to content

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

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#39
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:19

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 avoid a hardcoded numeric bot user ID by resolving the GitHub App bot user ID dynamically at runtime, then using it to construct the users.noreply.github.com commit email for release commits.

Changes:

  • Add a “Resolve release bot identity” step that queries GET /users/{app-slug}[bot] and extracts the numeric .id.
  • Use the resolved user-id output when setting GIT_AUTHOR_EMAIL / GIT_COMMITTER_EMAIL for the semantic-release step.

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

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 afb71b7 into main Aug 3, 2026
4 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 3.0.1 🎉

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