-
-
Notifications
You must be signed in to change notification settings - Fork 465
ci(release): Switch from action-prepare-release to Craft #5014
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
dd14da1
ecdd181
ebb437d
2c748c6
c38e477
089968e
18d871a
b718642
f9ae0d4
9bd2e27
8df8f2c
613fab0
0955cf8
10d2b90
a7846ce
d4ad5d4
dedf975
240710f
9889efc
c20b091
f230601
f85e220
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Changelog Preview | ||
| on: | ||
| pull_request: | ||
| types: | ||
| - opened | ||
| - synchronize | ||
| - reopened | ||
| - edited | ||
| - labeled | ||
| - unlabeled | ||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| changelog-preview: | ||
| uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2 | ||
| secrets: inherit |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,15 +3,19 @@ on: | |
| workflow_dispatch: | ||
| inputs: | ||
| version: | ||
| description: Version to release | ||
| required: true | ||
| description: Version to release (or "auto") | ||
| required: false | ||
| force: | ||
| description: Force a release even when there are release-blockers (optional) | ||
| required: false | ||
| merge_target: | ||
| description: Target branch to merge into. Uses the default branch as a fallback (optional) | ||
| required: false | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
|
|
@@ -30,7 +34,7 @@ jobs: | |
| fetch-depth: 0 | ||
| submodules: 'recursive' | ||
| - name: Prepare release | ||
| uses: getsentry/action-prepare-release@v1 | ||
| uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ steps.token.outputs.token }} | ||
| with: | ||
|
Comment on lines
+37
to
40
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug: The release workflow passes an empty string to the craft action when no Suggested FixModify the Prompt for AI AgentDid we get this right? 👍 / 👎 to inform future reviews. |
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: The optional
versioninput defaults to an empty string, but the downstreamcraftaction might expect the literal string'auto'for automatic versioning, causing potential failure.Severity: HIGH
Suggested Fix
To remove ambiguity, explicitly set the default value of the
versioninput to'auto'. This ensures that if a user does not provide a version, the workflow will correctly trigger the automatic versioning feature of thecraftaction as intended. Update the input definition toversion: { description: 'Version to release (or ''auto'')', required: false, default: 'auto' }.Prompt for AI Agent
Did we get this right? 👍 / 👎 to inform future reviews.