Skip to content

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

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#27
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:23

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 derive the GitHub App bot account’s numeric user id at runtime (via the GitHub /users/{login} API) and uses that value to build the users.noreply.github.com author/committer emails for release commits.

Changes:

  • Add a workflow step that queries /users/${APP_SLUG}[bot] and emits a validated numeric user-id output.
  • Update GIT_AUTHOR_EMAIL / GIT_COMMITTER_EMAIL to use the resolved user-id instead of a hardcoded value.

💡 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 19e5c16 into main Aug 3, 2026
3 checks passed
@altaywtf
altaywtf deleted the ci/runtime-release-bot-identity branch August 3, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants