Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 9, 2026

Summary

This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions.

Changes

  • Migrated .github/workflows/release.yml to Craft reusable workflow

Documentation

See https://getsentry.github.io/craft/github-actions/ for more information.

This PR migrates from the deprecated action-prepare-release to the new
Craft GitHub Actions (reusable workflow or composite action).

Changes:
- Migrate .github/workflows/release.yml to Craft reusable workflow
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Doctor

  • Ensure lima ssh credentials have correct permissions by joshuarli in #206
  • Stop docker desktop if it's running by joshuarli in #189
  • Two stage fix for dns problems, and use external DNS servers by joshuarli in #188

Other

  • (release) Replace release bot with GH app by Jeffreyhung in #177
  • Pnpm by joshuarli in #210
  • Add check/fix for docker currentContext is colima by mchen-sentry in #200
  • Install uv by joshuarli in #198
  • Install docker-buildx by joshuarli in #187
  • Upgrade to colima 0.8.1 and limactl 1.0.3 by joshuarli in #183
  • Troubleshooting docs by joshuarli in #175
  • Global colima install by joshuarli in #170
  • CredsStore fix in doctor by joshuarli in #173
  • Require minimum devenv version for a repo by joshuarli in #163
  • Repo-local limactl by joshuarli in #150
  • Strip_n and ability to download blobs from homebrew (take 2) by joshuarli in #157
  • Node and yarn installer to succeed volta by joshuarli in #132
  • Download retries by joshuarli in #137
  • Devenv update by joshuarli in #135
  • Ensure rosetta before colima start by joshuarli in #134
  • Colima robust start and convenience commands by joshuarli in #129
  • Fetch runs post_fetch if available by joshuarli in #126
  • Split bootstrap and fetch commands; add support for fetching any repo by dbennett-sentry in #113
  • Ops bootstrap by joshuarli in #105
  • Tenv for ops by joshuarli in #106
  • Repo local bins by joshuarli in #102
  • Call repo-local sync if available (ops POC part 3/3) by joshuarli in #75
  • Gcloud (ops POC part 2/3) by joshuarli in #78
  • Lib.venv and multiple configurable venvs (ops POC part 1/3) by joshuarli in #71
  • Repo-local colima by joshuarli in #81
  • Prepend to PATH by joshuarli in #70
  • Manage colima ourselves by joshuarli in #59
  • Autodetect coderoot if already in a git repository by joshuarli in #58
  • Add sentry-sdk by joshuarli in #39
  • Move venv python to per-repo configuration by joshuarli in #32

Bug Fixes 🐛

Ci

  • Unbound variable error during bootstrap by joshuarli in #184
  • Actually override devenv config and resync by joshuarli in #172
  • Use homebrew lima by joshuarli in #161
  • Bootstrap should not fail-thru by joshuarli in #34

Other

  • (node) Ignore npm prefix if configured, ensuring we use our own by joshuarli in #144
  • Ensure global devenv symlink exists if removed by joshuarli in #201
  • Update x.x.x by joshuarli in #199
  • Remove all docker context on colima start/restart by mchen-sentry in #195
  • Sentry integration test should no longer expect yarn by joshuarli in #196
  • Remove archive.download dest before downloading if it's a symlink by joshuarli in #191
  • Ci by joshuarli in #185
  • Docker version detection by joshuarli in #174
  • Also strip hardlink target by joshuarli in #171
  • Venv.ensure checks for python existence by joshuarli in #162
  • Chdir to reporoot before syncing by joshuarli in #149
  • Unquote shell escaped parts of shims but keep $PATH quoted by joshuarli in #158
  • Test by joshuarli in #160
  • Restore py310 metadata by joshuarli in #153
  • Use correct .zshrc location when $ZDOTDIR set by keeakita in #133
  • Regression in pythons root by joshuarli in #111
  • Set SHELL in conftest by joshuarli in #66
  • Symlink volta bins into devenv bin by joshuarli in #54
  • Just use install-py-dev for now by joshuarli in #46
  • Enforce coderoot by joshuarli in #29
  • Autoupdate by joshuarli in #28

Documentation 📚

  • Fix typo by joshuarli in #212
  • Remove old pip docs, elaborate on uv by joshuarli in #211
  • Update readme by joshuarli in #192
  • Update install instructions by Lms24 in #182
  • Fix typo by joshuarli in #169
  • Update colima by joshuarli in #168
  • Add single .venv example by joshuarli in #165
  • Add a lot of useful examples by joshuarli in #140
  • Refresh README by joshuarli in #108
  • Update readme with some technical info by joshuarli in #68

Build / dependencies / internal 🔧

  • (colima) Add tmp directory as mount for colima vm by hubertdeng123 in #208
  • (readme) Add note about devenv colima start by aliu39 in #213
  • (release) Switch from action-prepare-release to Craft by BYK in #214
  • Upgrade to macos-15 by joshuarli in #209
  • No brew bundle on non-macos by joshuarli in #205
  • Make devenv forward compatible with Sentry SDK 3.0.0 by antonpirker in #194
  • Only update global devenv if it exists by joshuarli in #176
  • Unconditionally update global devenv by joshuarli in #166
  • Remove volta by joshuarli in #159
  • Colima shim by joshuarli in #154
  • Silence first time ssh access check error during bootstrap by joshuarli in #148
  • Devenv-post-bootstrap.sh by joshuarli in #136
  • Sentry bootstrap no longer needed by joshuarli in #112
  • Fully contain VOLTA_HOME by joshuarli in #110
  • Pin global devenv to 1.4.0 by joshuarli in #104
  • No more rmrf sentry config by joshuarli in #103
  • Factor out root constants except bin_root by joshuarli in #100
  • Remove legacy venv by joshuarli in #88
  • Replace assert_has_calls with comparing against ordered mock_calls by joshuarli in #67
  • Add test for archive unpack by asottile-sentry in #56
  • Modifying shellrc for volta is not necessary as it's self-contained by joshuarli in #51
  • Remove self update by joshuarli in #52
  • Beta test UX feedback by joshuarli in #50
  • Regularly test on ubuntu 2204, move macos-13 to main only by joshuarli in #49
  • Avoid installing the entirety of sentry's brewfile by joshuarli in #45
  • Switch to using existing .venv and getsentry remains separate by joshuarli in #31

Other

  • release: 1.25.0 by getsentry-bot in 696872d1
  • release: 1.24.0 by getsentry-bot in 3624a4b9
  • release: 1.23.0 by getsentry-bot in 5d1cecc3
  • release: 1.22.2 by getsentry-bot in aa183d98
  • release: 1.22.1 by getsentry-bot in 04727680
  • release: 1.22.0 by getsentry-bot in 926f7271
  • Adjust for indygreg/python-build-standalone -> astral-sh redirect by glensc in #193
  • release: 1.21.0 by getsentry-bot in fd850d58
  • release: 1.20.0 by getsentry-bot in e0678fa5
  • doctor: pop cliPluginsExtraDirs by joshuarli in #190
  • release: 1.19.0 by getsentry-bot in 5cbb4e38
  • release: 1.18.0 by getsentry-bot in a2cb4a28
  • release: 1.17.0 by getsentry-bot in e0cb3aa9
  • release: 1.16.0 by getsentry-bot in e22dbf6a
  • release: 1.15.0 by getsentry-bot in a739ab9e
  • handle any unknown credsStore binary by asottile-sentry in #181
  • upgrade mypy by asottile-sentry in #180
  • release: 1.14.5 by getsentry-bot in 34ac9d84
  • Makes the gcloud install check for docker-credential-gcloud existing. by ellisonmarks in #179
  • release: 1.14.4 by getsentry-bot in 7ab1b681
  • Makes the docker-credential-gcloud script available. by ellisonmarks in #178
  • release: 1.14.3 by getsentry-bot in cdc11acc
  • release: 1.14.2 by getsentry-bot in 54ab8301
  • release: 1.14.1 by getsentry-bot in 392d0f26

Plus 59 more


🤖 This preview updates automatically when you update the PR.

The previous migration incorrectly removed the GitHub App token
authentication step. This commit restores it by switching to the
composite action pattern which preserves the auth flow.
Comment on lines 31 to 32
version: ${{ inputs.version }}
force: ${{ inputs.force }}

This comment was marked as outdated.

uses: getsentry/action-prepare-release@v1
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
Copy link

Choose a reason for hiding this comment

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

Bug: When the optional version input is not provided, an empty string is passed to the release action, which may not be handled as the expected "auto" value.
Severity: MEDIUM

Suggested Fix

Verify if the getsentry/craft action correctly handles an empty string for its version input. If it requires the literal string "auto", consider setting default: 'auto' for the workflow input to ensure the correct value is passed when none is provided.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: .github/workflows/release.yml#L34

Potential issue: The `release.yml` workflow's `version` input was changed to be
optional. When a user triggers this workflow without providing a `version`, GitHub
Actions passes an empty string (`""`) to the `getsentry/craft` action. The input's
description, "(or 'auto')", suggests that the literal string `"auto"` might be the
expected value for automatic versioning. If the `craft` action does not treat an empty
string as equivalent to `"auto"`, the release process may fail when no version is
specified.

Did we get this right? 👍 / 👎 to inform future reviews.

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