diff --git a/.github/workflows/update-changelog.yaml b/.github/workflows/update-changelog.yaml new file mode 100644 index 0000000..4451eac --- /dev/null +++ b/.github/workflows/update-changelog.yaml @@ -0,0 +1,40 @@ +name: Update Changelog + +on: + push: + branches: + - "update-changelog" + - "main" + +jobs: + update-changelog: + if: > + !startsWith(github.event.head_commit.message, 'bump:') + && !startsWith(github.event.head_commit.message, 'docs(changelog):') + runs-on: ubuntu-latest + steps: + - name: Check out + uses: actions/checkout@v3 + with: + fetch-depth: 0 + sparse-checkout: | + pyproject.toml + CHANGELOG.md + sparse-checkout-cone-mode: false + + - name: Install commitizen + run: pipx install commitizen + + - name: Update changelog + run: cz changelog + shell: bash + + - name: Show diff + run: git diff CHANGELOG.md + shell: bash + + - uses: EndBug/add-and-commit@v9 + with: + add: 'CHANGELOG.md' + default_author: github_actions + message: 'docs(changelog): Update changelog' diff --git a/CHANGELOG.md b/CHANGELOG.md index 164192a..3ce0210 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,14 @@ ### Feat +- Completely refactor processing logic (#50) +- Integrate click for cli and config-parsing - Allow configuration of config envvar - Add config file support ### Fix +- Remnant build-backend adjusted to poetry - Update user-agent URL ### Refactor diff --git a/pyproject.toml b/pyproject.toml index 416b82f..0ce4397 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,6 +65,7 @@ gpg_sign = true annotated_tag = true tag_format = "v$version" update_changelog_on_bump = true +changelog_incremental = true changelog_start_rev = "0.4" [tool.ruff]