Skip to content

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

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

ci(release): resolve releaser bot user id at runtime#170
altaywtf merged 1 commit 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


Summary by cubic

Resolve the release bot user ID at runtime and use it in commit noreply emails instead of a hardcoded number. This keeps author links working for putio-releaser[bot] if the GitHub App is recreated.

  • Bug Fixes
    • Fetch the numeric bot ID via gh api /users/{APP_SLUG}[bot] and expose it as user-id.
    • Use that ID in GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL, replacing 283001373.

Written for commit aaab981. Summary will update on new commits.

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 portion of the CI workflow to resolve the GitHub App bot account’s numeric user ID at runtime (via the GitHub API) and use that ID in the users.noreply.github.com commit email, avoiding reliance on a hardcoded ID and keeping author links stable if the App is recreated.

Changes:

  • Add a workflow step that calls gh api /users/${APP_SLUG}[bot] and exposes the resolved numeric user-id via GITHUB_OUTPUT.
  • Update GIT_AUTHOR_EMAIL / GIT_COMMITTER_EMAIL for the semantic-release step to use the resolved user-id instead of 283001373.

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

@altaywtf
altaywtf merged commit 2d42e7c into main Aug 3, 2026
11 checks passed
@altaywtf
altaywtf deleted the ci/runtime-release-bot-identity branch August 3, 2026 19:24
@putio-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 11.1.2 🎉

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