From c391d9d1418cc1bfabd3a719a1fdbc30aaaf5343 Mon Sep 17 00:00:00 2001 From: Yu-Ting Hsiung Date: Thu, 20 Aug 2026 23:26:59 +0800 Subject: [PATCH 1/2] ci: restore changelog updates Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/bumpversion.yml | 2 +- AGENTS.md | 15 ++++++ CHANGELOG.md | 89 +++++++++++++++++++++++++++++++ pyproject.toml | 1 + 4 files changed, 106 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index aab3b0ab4a..365c593315 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -39,7 +39,7 @@ jobs: - id: bump-version run: | old_sha="$(git rev-parse HEAD)" - cz --no-raise 21 bump --yes + cz --no-raise 21 bump --yes --changelog if [ "$(git rev-parse HEAD)" = "$old_sha" ]; then echo "No bump-eligible commits found, skipping release." diff --git a/AGENTS.md b/AGENTS.md index b4179e8ac1..134d1db3f7 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -24,6 +24,21 @@ Follow these instructions in addition to any higher-level system or tool rules. - **Commit messages** must follow [Conventional Commits](https://www.conventionalcommits.org/) (enforced by commitizen itself). - **Pull requests** must follow the [Pull Request Guidelines](docs/contributing/pull_request.md) and the template in `.github/pull_request_template.md`. +### Commit and Pull Request Types + +Choose the Conventional Commit type based on the change's release impact, not +the files or subsystem it touches. The type controls automated version bumps: + +- `feat` triggers a minor release. +- `fix`, `perf`, and `refactor` trigger a patch release. +- `ci`, `docs`, `test`, `build`, and `chore` do not trigger a release. +- A breaking-change marker triggers a major release. + +Use the same rule for pull request titles because squash merges use the title as +the resulting commit message. In particular, use `ci:` for changes limited to +workflows or release automation. A scope does not change release impact: +`fix(ci): ...` still triggers a patch release. + ## Setup and Validation > Full contributor guidelines (prerequisites, workflow, PR process): [`docs/contributing/contributing.md`](docs/contributing/contributing.md). diff --git a/CHANGELOG.md b/CHANGELOG.md index 31bbd5a29f..1b72e5aff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,92 @@ +## Unreleased + +## v4.18.0 (2026-08-19) + +### Feat + +- **commit**: add a tag(--body-length-limit) and a function for command commit (#1849) + +## v4.17.1 (2026-08-17) + +### Fix + +- **init**: skip hook question when no installer is present +- **init**: use prek when installing hooks if pre-commit is missing + +## v4.17.0 (2026-07-29) + +### Feat + +- **cmd/version**: add support for `--next USE_GIT_COMMITS` + +### Fix + +- robuster agents +- **version**: remove next from exclusive group +- **bump**: use correct type for calling changelog + +## v4.16.5 (2026-07-16) + +### Fix + +- exclude star-history API from lychee link checker (#2029) + +## v4.16.4 (2026-06-22) + +### Fix + +- **providers/cargo**: don't crash on workspace member with fixed version + +## v4.16.3 (2026-05-30) + +### Fix + +- **check**: expand env vars in --rev-range (#2005) + +## v4.16.2 (2026-05-15) + +### Fix + +- **tags**: widen prerelease and devrelease tag regexes for SemVer2 (#1972) + +## v4.16.1 (2026-05-15) + +### Fix + +- **cz_customize**: derive bump_map_major_version_zero from bump_map (#1977) + +## v4.16.0 (2026-05-12) + +### Feat + +- **hooks**: support interactive hooks scripts + +## v4.15.1 (2026-05-06) + +### Fix + +- **security**: prevent command injection via shell=True (CWE-78) (#1941) + +## v4.15.0 (2026-05-03) + +### Feat + +- **version**: add MANUAL_VERSION, --next and --patch to version command (#1724) + +## v4.14.0 (2026-05-03) + +### Feat + +- add `--allow-no-commit` to `changelog` command (#1868) + +## v4.13.10 (2026-04-11) + +### Fix + +- **ci**: use commitizen bot to push tags and commits +- **init**: set semver2 as default if not python +- change deprecated value and bump versions + ## v4.13.9 (2026-02-25) ### Fix diff --git a/pyproject.toml b/pyproject.toml index 479c0ed7b9..c6b3109962 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -146,6 +146,7 @@ version_files = [ version_provider = "uv" version_scheme = "pep440" annotated_tag = true +changelog_incremental = true [tool.uv.build-backend] module-name = "commitizen" From 08955929970eafd896438fe075d6af6ff2915d7e Mon Sep 17 00:00:00 2001 From: Yu-Ting Hsiung Date: Thu, 20 Aug 2026 23:41:09 +0800 Subject: [PATCH 2/2] ci: configure changelog updates on bump Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/bumpversion.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bumpversion.yml index 365c593315..aab3b0ab4a 100644 --- a/.github/workflows/bumpversion.yml +++ b/.github/workflows/bumpversion.yml @@ -39,7 +39,7 @@ jobs: - id: bump-version run: | old_sha="$(git rev-parse HEAD)" - cz --no-raise 21 bump --yes --changelog + cz --no-raise 21 bump --yes if [ "$(git rev-parse HEAD)" = "$old_sha" ]; then echo "No bump-eligible commits found, skipping release." diff --git a/pyproject.toml b/pyproject.toml index c6b3109962..d384c7b394 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -146,6 +146,7 @@ version_files = [ version_provider = "uv" version_scheme = "pep440" annotated_tag = true +update_changelog_on_bump = true changelog_incremental = true [tool.uv.build-backend]