generated from seedcase-project/template-python-package
-
Notifications
You must be signed in to change notification settings - Fork 0
feat: ✨ add Commitizen version bump with GitHub workflow #71
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0514f97
feat: :sparkles: add Commitizen version bump with GitHub workflow
lwjohnst86 ea527f9
feat: :memo: explain how to do versioning in template README
lwjohnst86 2735be6
Merge branch 'main' of https://github.com/seedcase-project/template-d…
lwjohnst86 aa25b62
refactor: :recycle: move content into jinja version of README
lwjohnst86 b035743
docs: :memo: add instructions for setting up `release-project.yml`
lwjohnst86 9e700cc
Merge branch 'main' of https://github.com/seedcase-project/template-d…
lwjohnst86 4baa13a
refactor: :recycle: use `scripts/properties.py` version field instead
lwjohnst86 dbf704a
Merge branch 'main' into feat/add-release-workflow
lwjohnst86 8321005
Merge branch 'main' of https://github.com/seedcase-project/template-d…
lwjohnst86 7595f7e
fix: :bug: fix falling tests
lwjohnst86 35d7e63
docs: :pencil2: edits from review
lwjohnst86 03d9eef
ci: :construction_worker: install zsh in workflow to fix test
lwjohnst86 419cfc9
Merge branch 'feat/add-release-workflow' of https://github.com/seedca…
lwjohnst86 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| [tool.commitizen] | ||
| bump_message = "build(version): :bookmark: update version from $current_version to $new_version [skip ci]" | ||
| update_changelog_on_bump = true | ||
| version_provider = "uv" | ||
| version_files = [ | ||
| "pyproject.toml:version", | ||
| "scripts/properties.py:version" | ||
| ] | ||
| # Don't regenerate the changelog on every update | ||
| changelog_incremental = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Release package | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| # Limit token permissions for security | ||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| release: | ||
| # This job outputs env variables `previous_version` and `current_version`. | ||
| # Only give permissions for this job. | ||
| permissions: | ||
| contents: write | ||
| uses: seedcase-project/.github/.github/workflows/reusable-release-project.yml@main | ||
| with: | ||
| app-id: ${{ vars.UPDATE_VERSION_APP_ID }} | ||
| secrets: | ||
| update-version-gh-token: ${{ secrets.UPDATE_VERSION_TOKEN }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,16 @@ | ||
|
|
||
| ## Post-setup steps | ||
|
|
||
| - Run `just list-todos` to get a list of TODO items you need to fill out. | ||
|
|
||
| ## Versioning and changelog | ||
|
|
||
| This project uses | ||
| [Commitizen](https://commitizen-tools.github.io/commitizen/) to update | ||
| versions and generate changelogs. Based on the [Conventional | ||
| Commits](https://www.conventionalcommits.org/en/v1.0.0/) message, it | ||
| will automatically update the version in both `pyproject.toml` and | ||
| `datapackage.json`. The [data package](https://datapackage.org/) | ||
| standard suggests using their version of [Semantic | ||
| Versioning](https://datapackage.org/recipes/data-package-version/). So | ||
| follow this guide when making commits to this repository. | ||
lwjohnst86 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.