You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adds a workflow that runs cz bump --dry-run on incoming pull requests
and posts (or updates) a sticky comment summarising the would-be version
bump and changelog entries. This makes unexpected version bumps visible
to reviewers before merging, addressing #1510.
The pattern is documented in docs/tutorials/github_actions.md so other
projects can copy/paste the same workflow.
Closes#1510
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: docs/tutorials/github_actions.md
+102Lines changed: 102 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,6 +123,108 @@ jobs:
123
123
124
124
You can find the complete workflow in our repository at [bumpversion.yml](https://github.com/commitizen-tools/commitizen/blob/master/.github/workflows/bumpversion.yml).
125
125
126
+
### Previewing the version bump on pull requests
127
+
128
+
To help reviewers spot unexpected version bumps before merging, you can run
129
+
`cz bump --dry-run`on every pull request and post (or update) a sticky
130
+
comment summarizing the would-be version bump and changelog entries.
find and replace the previous preview on every push, instead of leaving a
224
+
growing trail of comments.
225
+
226
+
You can find the complete workflow in our repository at [pr-bump-preview.yml](https://github.com/commitizen-tools/commitizen/blob/master/.github/workflows/pr-bump-preview.yml).
227
+
126
228
### Publishing a Python package
127
229
128
230
After a new version tag is created by the bump workflow, you can automatically publish your package to PyPI.
0 commit comments