1
1
mirror of https://github.com/orhun/git-cliff.git synced 2025-01-07 16:57:58 +03:00
Commit Graph

685 Commits

Author SHA1 Message Date
dependabot[bot]
e6144bb0fc
chore(deps): bump regex from 1.9.3 to 1.9.4 (#262)
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.3 to 1.9.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.9.3...1.9.4)

---
updated-dependencies:
- dependency-name: regex
  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-28 22:51:31 +00:00
dependabot[bot]
c73e73b001
chore(deps): bump git2 from 0.17.2 to 0.18.0 (#261)
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.17.2 to 0.18.0.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.17.2...git2-0.18.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-28 22:51:24 +00:00
dependabot[bot]
28c8ed2f65
chore(deps): bump serde from 1.0.187 to 1.0.188 (#260)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.187 to 1.0.188.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.187...v1.0.188)

---
updated-dependencies:
- dependency-name: serde
  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-28 22:51:17 +00:00
dependabot[bot]
4e02474c5b
chore(deps): bump clap from 4.4.0 to 4.4.1 (#259)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.0 to 4.4.1.
- [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.4.0...v4.4.1)

---
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-28 22:51:09 +00:00
dependabot[bot]
96a6df9fbe
chore(deps): bump serde from 1.0.186 to 1.0.187 (#258)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.186 to 1.0.187.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.186...v1.0.187)

---
updated-dependencies:
- dependency-name: serde
  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-25 23:00:32 +00:00
dependabot[bot]
16db00aa06
chore(deps): bump clap_mangen from 0.2.12 to 0.2.13 (#255)
Bumps [clap_mangen](https://github.com/clap-rs/clap) from 0.2.12 to 0.2.13.
- [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_mangen-v0.2.12...clap_mangen-v0.2.13)

---
updated-dependencies:
- dependency-name: clap_mangen
  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-24 22:27:16 +00:00
dependabot[bot]
c7e4b5a839
chore(deps): bump serde from 1.0.185 to 1.0.186 (#257)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.185 to 1.0.186.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.185...v1.0.186)

---
updated-dependencies:
- dependency-name: serde
  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-24 22:26:55 +00:00
dependabot[bot]
66c89a8c06
chore(deps): bump clap from 4.3.24 to 4.4.0 (#256)
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.24 to 4.4.0.
- [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.24...clap_complete-v4.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-24 22:26:33 +00:00
dependabot[bot]
571afd3f41
chore(deps): bump clap_complete from 4.3.2 to 4.4.0 (#254)
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.3.2 to 4.4.0.
- [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.2...clap_complete-v4.4.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-24 22:25:46 +00:00
Alexander González
aad4222986
fix(examples): add missing newline (#253) 2023-08-24 19:45:29 +02:00
Orhun Parmaksız
c695ca308e
refactor(config): use a macro for generating commit list 2023-08-24 10:53:05 +03:00
dependabot[bot]
7702b83f7a
chore(deps): bump clap from 4.3.23 to 4.3.24 (#252)
Bumps [clap](https://github.com/clap-rs/clap) from 4.3.23 to 4.3.24.
- [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.23...v4.3.24)

---
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-23 22:39:19 +00:00
dependabot[bot]
a2f8dad41f
chore(deps): bump rust-embed from 6.8.1 to 8.0.0 (#251)
Bumps [rust-embed](https://github.com/pyros2097/rust-embed) from 6.8.1 to 8.0.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-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-23 22:39:16 +00:00
Orhun Parmaksız
3c9ced0b05
docs(readme): add contributors graph 2023-08-23 20:51:26 +03:00
Orhun Parmaksız
0eee9cc888
chore(deps): remove serde workaround 2023-08-22 10:36:51 +03:00
dependabot[bot]
0b18aaa3f4
chore(deps): bump serde from 1.0.172 to 1.0.185 (#250)
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.172 to 1.0.185.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.172...v1.0.185)

---
updated-dependencies:
- dependency-name: serde
  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-21 23:03:37 +00:00
Orhun Parmaksız
87e47e68b6
fix(informer): do not inform about pre-releases (#249) 2023-08-21 10:11:57 +03:00
Orhun Parmaksız
7a82aa1a76
fix(cd): do not publish release notes for pre-releases (#249) 2023-08-21 09:33:29 +03:00
Orhun Parmaksız
b883e34a2b
chore(release): prepare for v1.3.0-rc.1 2023-08-20 22:36:46 +03:00
Orhun Parmaksız
baf34a81f0
fix(cd): disable win32-arm64 PyPI builds
https://github.com/orhun/git-cliff/pull/158#issuecomment-1684934177
2023-08-20 22:34:03 +03:00
Orhun Parmaksız
87f74bc78f
fix(deps): avoid problematic serde release
https://github.com/serde-rs/serde/issues/2538
2023-08-20 20:45:55 +03:00
Orhun Parmaksız
83cfc3684e
chore(release): prepare for v1.3.0-rc.0 2023-08-19 14:54:47 +03:00
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