Skip to content

Commit 956c8fb

Browse files
authored
Merge branch 'master' into feature/single-number-version
2 parents be4ccc3 + 98321b1 commit 956c8fb

40 files changed

+228
-309
lines changed

.github/workflows/links.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Links
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
pull_request:
7+
schedule:
8+
- cron: "00 18 * * *"
9+
10+
jobs:
11+
check-links:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
issues: write # required for peter-evans/create-issue-from-file
15+
steps:
16+
- uses: actions/checkout@v6
17+
18+
- name: Link Checker
19+
id: lychee
20+
uses: lycheeverse/lychee-action@v2
21+
with:
22+
args: --config lychee.toml .
23+
fail: false
24+
25+
- name: Broken Links Report
26+
if: steps.lychee.outputs.exit_code != 0 && github.event_name == 'schedule'
27+
uses: actions/github-script@v8
28+
with:
29+
script: |
30+
const fs = require('fs');
31+
32+
// Read the markdown file
33+
// Ensure the path is correct relative to the workspace root
34+
const reportBody = fs.readFileSync('./lychee/out.md', 'utf8');
35+
36+
await github.rest.issues.create({
37+
owner: context.repo.owner,
38+
repo: context.repo.repo,
39+
title: 'Broken Links Report',
40+
body: reportBody
41+
});

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repos:
4848
- tomli
4949

5050
- repo: https://github.com/commitizen-tools/commitizen
51-
rev: v4.10.1 # automatically updated by Commitizen
51+
rev: v4.11.0 # automatically updated by Commitizen
5252
hooks:
5353
- id: commitizen
5454
- id: commitizen-branch

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v4.11.0 (2025-12-29)
2+
3+
### Feat
4+
5+
- Drop support for Python 3.9 as EOL reached and add Python 3.14 support
6+
- add custom validation
7+
18
## v4.10.1 (2025-12-11)
29

310
### Fix

commitizen/__version__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "4.10.1"
1+
__version__ = "4.11.0"

docs/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/commitizen-tools/commitizen/pythonpackage.yml?label=python%20package&logo=github&logoColor=white&style=flat-square)](https://github.com/commitizen-tools/commitizen/actions)
2+
[![Check Links](https://github.com/commitizen-tools/commitizen/actions/workflows/links.yml/badge.svg)](https://github.com/commitizen-tools/commitizen/actions/workflows/links.yml)
23
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg?style=flat-square)](https://conventionalcommits.org)
34
[![PyPI Package latest release](https://img.shields.io/pypi/v/commitizen.svg?style=flat-square)](https://pypi.org/project/commitizen/)
45
[![PyPI Package download count (per month)](https://img.shields.io/pypi/dm/commitizen?style=flat-square)](https://pypi.org/project/commitizen/)
@@ -45,7 +46,7 @@ This standardization makes your commit history more readable and meaningful, whi
4546
- Intelligent [version bumping](https://commitizen-tools.github.io/commitizen/commands/bump/) using [Semantic Versioning][semver]
4647
- Automatic [keep a changelog][keepchangelog] generation
4748
- Built-in commit validation with pre-commit hooks
48-
- [Customizable](https://commitizen-tools.github.io/commitizen/customization/) commit rules and templates
49+
- [Customizable](https://commitizen-tools.github.io/commitizen/customization/config_file/) commit rules and templates
4950
- Multi-format version file support
5051
- Custom rules and plugins via pip
5152

@@ -174,7 +175,7 @@ You can customize:
174175

175176
- [Version files](https://commitizen-tools.github.io/commitizen/commands/bump/#version_files)
176177
- [Version scheme](https://commitizen-tools.github.io/commitizen/commands/bump/#version_scheme)
177-
- [Version provider](https://commitizen-tools.github.io/commitizen/config/#version-providers)
178+
- [Version provider](https://commitizen-tools.github.io/commitizen/config/version_provider/)
178179

179180
For all available options, see the [bump command documentation](https://commitizen-tools.github.io/commitizen/commands/bump/).
180181

@@ -249,7 +250,7 @@ Commitizen provides a comprehensive CLI with various commands. Here's the comple
249250
250251
- [Conventional Commits Specification][conventional_commits]
251252
- [Exit Codes Reference](https://commitizen-tools.github.io/commitizen/exit_codes/)
252-
- [Configuration Guide](https://commitizen-tools.github.io/commitizen/config/)
253+
- [Configuration Guide](https://commitizen-tools.github.io/commitizen/config/configuration_file/)
253254
- [Command Documentation](https://commitizen-tools.github.io/commitizen/commands/init/)
254255
255256
### Getting Help

docs/external_links.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
- [Python Table Manners - Commitizen: 規格化 commit message](https://blog.wei-lee.me/posts/tech/2020/03/python-table-manners-commitizen/) (Written in Traditional Mandarin)
1515
- [Automating semantic release with commitizen](https://woile.dev/posts/automating-semver-releases-with-commitizen/) (English)
1616
- [How to Write Better Git Commit Messages – A Step-By-Step Guide](https://www.freecodecamp.org/news/how-to-write-better-git-commit-messages/?utm_source=tldrnewsletter) (English)
17-
- [Continuous delivery made easy (in Python)](https://medium.com/dev-genius/continuous-delivery-made-easy-in-python-c085e9c82e69)
17+
- [Continuous delivery made easy (in Python)](https://blog.devgenius.io/continuous-delivery-made-easy-in-python-c085e9c82e69)
1818

1919
[automatizando]: https://youtu.be/t3aE2M8UPBo

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ If you would like to learn more about both schemes, there are plenty of good res
120120
- [API Versioning from Stripe](https://stripe.com/blog/api-versioning)
121121
- [Discussion about pip's use of CalVer](https://github.com/pypa/pip/issues/5645#issuecomment-407192448)
122122
- [Git Version Numbering](https://code.erpenbeck.io/git/2021/12/16/git-version-numbering/)
123-
- [SemVer vs. CalVer and Why I Use Both](https://mikestaszel.com/2021/04/03/semver-vs-calver-and-why-i-use-both/) (but not at the same time)
123+
- [SemVer vs. CalVer and Why I Use Both](https://mikestaszel.com/post/semver-vs-calver-and-why-i-use-both/) (but not at the same time)
124124
- [Semver Will Not Save You](https://hynek.me/articles/semver-will-not-save-you/)
125125
- [Why I Don't Like SemVer](https://snarky.ca/why-i-dont-like-semver/)
126126

docs/tutorials/github_actions.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,14 @@ jobs:
113113
poetry install
114114
- name: Build and publish
115115
env:
116-
PYPI_USERNAME: __token__
117-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
118-
run: |
119-
./scripts/publish
116+
POETRY_HTTP_BASIC_PYPI_USERNAME: __token__
117+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
118+
run: poetry publish --build
120119
```
121120

122-
Notice that we are using poetry, and we are calling a bash script in `./scripts/publish`. You should configure the action, and publish with your tools (twine, poetry, etc.). Check [Commitizen example](https://github.com/commitizen-tools/commitizen/blob/master/scripts/publish)
121+
Notice that we are using poetry to publish the package.
122+
123+
123124
You can also use [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) to publish your package.
124125

125126
Push the changes and that's it.

docs/tutorials/writing_commits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ Emojis may be added as well (e.g., see [cz-emoji][cz_emoji]), which requires the
4646

4747
[customization]: ../customization/config_file.md
4848
[conventional_commits]: https://www.conventionalcommits.org
49-
[cz_emoji]: https://commitizen-tools.github.io/commitizen/third-party-commitizen/#cz-emoji
49+
[cz_emoji]: https://commitizen-tools.github.io/commitizen/third-party-plugins/cz-emoji/
5050
[configuration]: ../config/commit.md#encoding
5151
[breaking-change-config]: ../config/commit.md#breaking_change_exclamation_in_title

lychee.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
exclude_path = ["./tests"]
2+
3+
exclude = [
4+
"https://blog.devgenius.io/continuous-delivery-made-easy-in-python-c085e9c82e69" # Membership only article, sometimes it's 403 forbidden
5+
]

0 commit comments

Comments
 (0)