1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-15 18:22:30 +03:00
Commit Graph

663 Commits

Author SHA1 Message Date
Orhun Parmaksız
b7457785e6
chore(config): add additional parsers for default config 2023-08-19 14:50:01 +03:00
Orhun Parmaksız
a22426a37d
chore(cd): support creating prereleases on GitHub 2023-08-19 14:42:38 +03:00
Orhun Parmaksız
7e7e5a7e09
chore(config): update configuration for alpha/beta/rc releases 2023-08-19 14:33:47 +03:00
Orhun Parmaksız
fd7446ce2f
style(config): further beautify the changelog in this repo 2023-08-19 13:53:41 +03:00
Orhun Parmaksız
0bf5ebe79b
docs(example): update the header of configuration examples 2023-08-19 13:38:07 +03:00
Orhun Parmaksız
e1cf26e2a5
docs(example): add example for generating changelog similar to cocogitto 2023-08-19 13:35:44 +03:00
dependabot[bot]
445ad2cb37
chore(deps): bump clap from 4.3.22 to 4.3.23 (#248)
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.22 to 4.3.23.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.22...v4.3.23)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-18 22:33:19 +00:00
dependabot[bot]
bcaf2ee069
chore(deps): bump thiserror from 1.0.46 to 1.0.47 (#247)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.46...1.0.47)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 22:32:05 +00:00
dependabot[bot]
d4c738d384
chore(deps): bump clap from 4.3.21 to 4.3.22 (#246)
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.21 to 4.3.22.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.21...v4.3.22)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-17 22:31:53 +00:00
Radu Suciu
2b7a1efaaf
chore(pypi): publish git-cliff on PyPI (#158)
* chore(pypi): First shot at PyPi publishing

* docs(pypi): Draft docs for install from PyPI

* fix(pypi): fix spellig mistake and add missing dependency

* chore(pypi): rc1 for pypi publish workflow

* docs(pypi): add example for pip install command

Also tweaked verbiage a little

* fix(docs): remove extra backtick in command example

* fix(pypi): fix MATURIN_REPOSITORY definition

* chore(pypi): rc2 for pypi publish

fixes mistake in use of endsWith and startsWith expression syntax.

Thanks https://rhysd.github.io/actionlint/!

* chore(pypi): rc3 for pypi publish workflow

Changes:
- fixes an error with maturin build
- makes sure maturin commands are run in directory containing pyproject.toml
- manifest path is now specified in pyproject.toml
- sdist is now created as a part of the build command

* fix(pypi): specify cwd in action arg

* fix(pypi): fix various path issues

* chore(docker): ignore pypi directory

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2023-08-16 09:53:31 +02:00
Orhun Parmaksız
9fd1be6dc6
chore(mergify): rename mergify configuration file 2023-08-16 10:47:16 +03:00
dependabot[bot]
4d5683f655
chore(deps): bump thiserror from 1.0.44 to 1.0.46 (#243)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.46)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 09:26:22 +02:00
dependabot[bot]
7265c16e00
chore(deps): bump serde_json from 1.0.104 to 1.0.105 (#244)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.104 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.104...v1.0.105)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-16 09:26:00 +02:00
Orhun Parmaksız
0a79aae357
chore(mergify): add configuration file for automatic merge (#245)
* ci(Mergify): configuration update

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>

* chore(mergify): move config to .github

---------

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-08-16 09:21:43 +02:00
Orhun Parmaksız
c8cf855939
refactor(lib): use implicit serde imports 2023-08-14 00:53:50 +03:00
Orhun Parmaksız
e9aa9918b6
style(config): apply formatting to configuration files 2023-08-14 00:43:41 +03:00
Orhun Parmaksız
b2edc231a6
chore(config): skip dependency updates in the changelog 2023-08-14 00:40:05 +03:00
dependabot[bot]
7efc171a17
chore(deps): bump actions/upload-pages-artifact from 1 to 2
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 1 to 2.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v1...v2)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-14 00:34:47 +03:00
Orhun Parmaksız
4c09759158
refactor(clippy): apply clippy suggestions 2023-08-14 00:33:27 +03:00
Orhun Parmaksız
a814bbea34
refactor(clippy): apply clippy suggestions 2023-08-14 00:30:22 +03:00
Orhun Parmaksız
82cd240e33
chore(deps): upgrade dependencies
MSRV is now 1.68.2
2023-08-14 00:22:04 +03:00
bors[bot]
9692ea7e31
chore(pull): merge #200
200: fix(changelog): fix previous release references r=orhun a=tvcsantos

<!--- Thank you for contributing to git-cliff! ⛰️  -->

## Description

<!--- Describe your changes in detail -->

Currently the previous pointer is not available under the unreleased group when running `git cliff`. Also when running `git cliff --unreleased` the preivous release is not correct and is pointing to the release before last, instead of the last tagged release.

This PR deals with this by doing the following. For tackling the first problem we simply check if we produced more then one release at the end of the loop and add the missing pointers to the previous release.

For solving the other problem we just adapt the `checked_sub` argument to take the difference into account and fix it on the unreleased scenario, when it must be `1` instead of `2`.

## Motivation and Context

<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

Currently the previous pointer is not available under the unreleased group when running `git cliff`. Also when running `git cliff --unreleased` the preivous release is not correct and is pointing to the release before last, instead of the last tagged release. This PR deals with these problems. 

This is particularly useful for example on a Keep A Changelog format where we need the correct previous pointers so that we can add the proper link references.

## How Has This Been Tested?

<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

I've added an extra fixture with a keep a changelog format example to test the scenario.

## Screenshots / Logs (if applicable)

## Types of Changes

<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
- [ ] Documentation (no code change)
- [ ] Refactor (refactoring production code)
- [ ] Other <!--- (provide information) -->

## Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->

- [x] My code follows the code style of this project.
- [x] I have updated the documentation accordingly.
- [x] I have formatted the code with [rustfmt](https://github.com/rust-lang/rustfmt).
- [x] I checked the lints with [clippy](https://github.com/rust-lang/rust-clippy).
- [x] I have added tests to cover my changes.
- [x] All new and existing tests passed.


Co-authored-by: Tiago Santos <tvcsantos@gmail.com>
2023-06-27 14:06:57 +00:00
bors[bot]
3d9f7bfd54
chore(pull): merge #201 #202
201: chore(deps): bump serde_json from 1.0.97 to 1.0.99 r=orhun a=dependabot[bot]

Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.97 to 1.0.99.


202: chore(deps): bump toml from 0.7.4 to 0.7.5 r=orhun a=dependabot[bot]

Bumps [toml](https://github.com/toml-rs/toml) from 0.7.4 to 0.7.5.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-27 08:27:48 +00:00
dependabot[bot]
2f4a4c4d97
chore(deps): bump toml from 0.7.4 to 0.7.5
Bumps [toml](https://github.com/toml-rs/toml) from 0.7.4 to 0.7.5.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.7.4...toml-v0.7.5)

---
updated-dependencies:
- dependency-name: toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 23:06:46 +00:00
dependabot[bot]
4aaf1c21fd
chore(deps): bump serde_json from 1.0.97 to 1.0.99
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.97 to 1.0.99.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.97...v1.0.99)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-26 23:06:37 +00:00
Tiago Santos
0a6ed62f57 test: fix keep a changelog test case 2023-06-25 23:52:37 +01:00
Tiago Santos
f5d3365226 test: fix keep a changelog test case 2023-06-25 23:48:15 +01:00
Tiago Santos
14725e547b style: fix formatting 2023-06-25 23:39:39 +01:00
Tiago Santos
fbb605e4f6 fix: fix previous release references 2023-06-25 23:12:20 +01:00
bors[bot]
ff7f47cf1f
chore(pull): merge #199
199: chore(deps): bump clap from 4.3.5 to 4.3.8 r=orhun a=dependabot[bot]

Bumps [clap](https://github.com/clap-rs/clap) from 4.3.5 to 4.3.8.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-24 06:23:22 +00:00
bors[bot]
32aa8f73dc
chore(pull): merge #198
198: chore(deps): bump indexmap from 1.9.3 to 2.0.0 r=orhun a=dependabot[bot]

Bumps [indexmap](https://github.com/bluss/indexmap) from 1.9.3 to 2.0.0.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-24 06:18:52 +00:00
dependabot[bot]
cb4c8ee49f
chore(deps): bump clap from 4.3.5 to 4.3.8
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.5 to 4.3.8.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.5...v4.3.8)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-23 23:03:53 +00:00
dependabot[bot]
06196b0a1f
chore(deps): bump indexmap from 1.9.3 to 2.0.0
Bumps [indexmap](https://github.com/bluss/indexmap) from 1.9.3 to 2.0.0.
- [Changelog](https://github.com/bluss/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/bluss/indexmap/compare/1.9.3...2.0.0)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-23 23:03:30 +00:00
bors[bot]
a3ac910daa
chore(pull): merge #197
197: chore(deps): bump clap from 4.3.4 to 4.3.5 r=orhun a=dependabot[bot]

Bumps [clap](https://github.com/clap-rs/clap) from 4.3.4 to 4.3.5.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-20 23:39:17 +00:00
dependabot[bot]
692e2d5bb5
chore(deps): bump clap from 4.3.4 to 4.3.5
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.4...v4.3.5)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 23:04:28 +00:00
bors[bot]
5c48557e20
chore(pull): merge #196
196: chore(deps): bump serde_json from 1.0.96 to 1.0.97 r=orhun a=dependabot[bot]

Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.96 to 1.0.97.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-17 17:49:26 +00:00
dependabot[bot]
5bd73fe494
chore(deps): bump serde_json from 1.0.96 to 1.0.97
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.96 to 1.0.97.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.96...v1.0.97)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-16 23:03:30 +00:00
bors[bot]
2d6a9f27b7
chore(pull): merge #192 #193
192: chore(deps): bump log from 0.4.18 to 0.4.19 r=orhun a=dependabot[bot]

Bumps [log](https://github.com/rust-lang/log) from 0.4.18 to 0.4.19.


193: chore(deps): bump clap from 4.3.3 to 4.3.4 r=orhun a=dependabot[bot]

Bumps [clap](https://github.com/clap-rs/clap) from 4.3.3 to 4.3.4.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-15 12:34:31 +00:00
dependabot[bot]
299e059848
chore(deps): bump clap from 4.3.3 to 4.3.4
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.3 to 4.3.4.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.3...v4.3.4)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 23:05:01 +00:00
dependabot[bot]
b106db46aa
chore(deps): bump log from 0.4.18 to 0.4.19
Bumps [log](https://github.com/rust-lang/log) from 0.4.18 to 0.4.19.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.18...0.4.19)

---
updated-dependencies:
- dependency-name: log
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 23:07:16 +00:00
Valentin Bersier
3a717e25aa
test(changelog): add cases for docs: prefix (#167) 2023-06-10 15:22:12 +02:00
PSeitz
5dc5fb786d
feat(changelog)!: add postprocessors (#155)
BREAKING: `CommitPreprocessor` is renamed as `TextProcessor`

* feat: add postprocessors to changelog

This will enable things like replacing usernames with github usernames #132

* review comments

* refactor(clippy): apply clippy suggestions

* refactor(postprocessors): polish the implementation

* docs(postprocessors): update documentation about GitHub usernames

* style(format): update formatting

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2023-06-10 15:20:39 +02:00
bors[bot]
263cb6c968
chore(pull): merge #189
189: chore(deps): bump rust-embed from 6.6.1 to 6.7.0 r=orhun a=dependabot[bot]

Bumps [rust-embed](https://github.com/pyros2097/rust-embed) from 6.6.1 to 6.7.0.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 11:02:58 +00:00
bors[bot]
07458216b4
chore(pull): merge #190 #191
190: chore(deps): bump serde from 1.0.163 to 1.0.164 r=orhun a=dependabot[bot]

Bumps [serde](https://github.com/serde-rs/serde) from 1.0.163 to 1.0.164.


191: chore(deps): bump clap from 4.3.2 to 4.3.3 r=orhun a=dependabot[bot]

Bumps [clap](https://github.com/clap-rs/clap) from 4.3.2 to 4.3.3.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-10 10:58:13 +00:00
dependabot[bot]
3d4084fda5
chore(deps): bump clap from 4.3.2 to 4.3.3
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.3.2...v4.3.3)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-09 23:06:53 +00:00
dependabot[bot]
464526e97d
chore(deps): bump serde from 1.0.163 to 1.0.164
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.163 to 1.0.164.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.163...v1.0.164)

---
updated-dependencies:
- dependency-name: serde
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-08 23:04:39 +00:00
dependabot[bot]
838bdee072
chore(deps): bump rust-embed from 6.6.1 to 6.7.0
Bumps [rust-embed](https://github.com/pyros2097/rust-embed) from 6.6.1 to 6.7.0.
- [Changelog](https://github.com/pyrossh/rust-embed/blob/master/changelog.md)
- [Commits](https://github.com/pyros2097/rust-embed/commits)

---
updated-dependencies:
- dependency-name: rust-embed
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-08 23:04:27 +00:00
bors[bot]
e3b3bb065f
chore(pull): merge #186 #187
186: chore(deps): bump regex from 1.8.3 to 1.8.4 r=orhun a=dependabot[bot]

Bumps [regex](https://github.com/rust-lang/regex) from 1.8.3 to 1.8.4.


187: chore(deps): bump clap from 4.3.1 to 4.3.2 r=orhun a=dependabot[bot]

Bumps [clap](https://github.com/clap-rs/clap) from 4.3.1 to 4.3.2.


Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-06 11:20:15 +00:00
dependabot[bot]
a4f8f00c4a
chore(deps): bump clap from 4.3.1 to 4.3.2
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.1 to 4.3.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.3.1...v4.3.2)

---
updated-dependencies:
- dependency-name: clap
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 23:07:05 +00:00
dependabot[bot]
77c40543a5
chore(deps): bump regex from 1.8.3 to 1.8.4
Bumps [regex](https://github.com/rust-lang/regex) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.8.3...1.8.4)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 23:06:48 +00:00