1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-16 13:05:09 +03:00
Commit Graph

175 Commits

Author SHA1 Message Date
dependabot[bot]
34c5f4d244
chore(deps): bump tera from 1.18.1 to 1.19.0
Bumps [tera](https://github.com/Keats/tera) from 1.18.1 to 1.19.0.
- [Changelog](https://github.com/Keats/tera/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Keats/tera/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-31 23:05:19 +00:00
dependabot[bot]
2d4eca8cfc
chore(deps): bump git2 from 0.17.1 to 0.17.2
Bumps [git2](https://github.com/rust-lang/git2-rs) from 0.17.1 to 0.17.2.
- [Changelog](https://github.com/rust-lang/git2-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/git2-rs/compare/0.17.1...0.17.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 23:08:08 +00:00
dependabot[bot]
e7cb0a1a16
chore(deps): bump toml from 0.7.3 to 0.7.4
Bumps [toml](https://github.com/toml-rs/toml) from 0.7.3 to 0.7.4.
- [Commits](https://github.com/toml-rs/toml/compare/toml-v0.7.3...toml-v0.7.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 23:05:19 +00:00
dependabot[bot]
0667d40176
chore(deps): bump serde from 1.0.162 to 1.0.163
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.162 to 1.0.163.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.162...v1.0.163)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-11 23:06:41 +00:00
dependabot[bot]
d147d2c529
chore(deps): bump serde from 1.0.160 to 1.0.162
Bumps [serde](https://github.com/serde-rs/serde) from 1.0.160 to 1.0.162.
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.160...1.0.162)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-05 23:02:49 +00:00
bors[bot]
5ec4d1f76f
chore(pull): merge #162
162: chore(core): make git2 optional r=orhun a=MarcoIeni

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

## Description

<!--- Describe your changes in detail -->
Make git2 optional in git-cliff-core crate.

## 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. -->

In release-plz I use git-cliff-core.
However, I don't need git-cliff to read the git history, so I don't need it to include git2.
I depend on both cargo and git-cliff, and often they have conflicting git2 versions.
For example, right now I can't update to the latest git-cliff, because git2 of git-cliff isn't compatible with cargo.

However with this change, by using:
`git-cliff-core =  { path = "../git-cliff/git-cliff-core", default-features = false }`
in release-plz I'm able to update!

Some questions for you:
- are you ok with this additional complexity?
- do you want to find a better name for the feature?

Probably there are other dependencies that can be made optional, but for now git2 is the biggest pain-point for me.
If you are interested, I can find more dependencies.
## 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. -->

release-plz is compiling.
Maybe we can add a CI check to test that git-cliff-core compiles even without default features enabled.

## Screenshots / Logs (if applicable)

## Types of Changes

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

- [ ] 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)
- [x] 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.

## alternative

Extract the code that doesn't depend on git2 in a third crate.
In particular, in my use case I already have the commits I want to write in the changelog, so it would be great if there was a crate that is only focused on generating the changelog, not in determining the commits to write into it.
It would be great if it could expose a subset of the configuration. For example, in release-plz not all git-cliff configuration option will have effect.

Co-authored-by: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com>
2023-05-01 10:35:05 +00:00
Marco Ieni
38c7c89d33
fix comment 2023-05-01 10:34:43 +02:00
Orhun Parmaksız
7d7470b2d0
test(repo): add an informative error message to failing test 2023-04-30 19:47:08 +03:00
Marco Ieni
85a13b8b2b
add description 2023-04-30 17:56:11 +02:00
Marco Ieni
db9c7a47de
add doc 2023-04-30 17:47:56 +02:00
Marco Ieni
6482a10834
more optional deps 2023-04-30 17:39:41 +02:00
Marco Ieni
5fdf39ae32
chore(core): make git2 optional 2023-04-28 18:51:51 +02:00
Orhun Parmaksız
c8289ac907
chore(release): prepare for v1.2.0 2023-04-28 16:16:55 +03:00
Orhun Parmaksız
84f20f906f
chore(cargo): update MSRV to 1.64.0 2023-04-28 14:27:35 +03:00
Orhun Parmaksız
0e8ddb69e4
chore(deps): upgrade core dependencies 2023-04-28 13:42:50 +03:00
Mack Solomon
bb9a889f1b
fix(config)!: nested environment config overrides (#157)
* chore: update env variable override format

* tests: add a copule env override assertions

* docs: add a doc for env overrides

* docs: wording

* docs: wording

* fix: prefix

* docs: format first
2023-04-22 20:16:08 +02:00
Orhun Parmaksız
ed389b70e2
refactor(test): handle errors for changelog module tests 2023-04-02 23:50:38 +03:00
Orhun Parmaksız
2ab2c8fb5e
refactor(lib)!: move changelog module to git-cliff-core
This will reduce the number of pulled dependencies if you want to
use git-cliff as a library in your Rust project.
2023-04-02 21:46:45 +03:00
Orhun Parmaksız
7767ace8f8
feat(parser): support using regex group values (#145) 2023-04-02 21:17:32 +03:00
Radu Suciu
fe5e5b841a
feat(config): support placing configuration inside pyproject.toml (#147) 2023-03-31 21:49:47 +02:00
Orhun Parmaksız
104aac93b4
feat(commit): make the fields of Signature public 2023-03-30 15:01:44 +03:00
Orhun Parmaksız
37159059b0
chore(release): prepare for v1.1.2 2023-01-20 15:31:43 +03:00
Orhun Parmaksız
ce034c61a4
chore(deps): upgrade core dependencies 2023-01-20 15:16:19 +03:00
Orhun Parmaksız
accfb0fcdd
revert(git): use timestamp for deriving the tag order (#139)
This reverts commit 4df5656c12.
2023-01-20 15:01:48 +03:00
Orhun Parmaksız
4df5656c12
fix(git): derive the tag order from commits instead of timestamp (#139) 2023-01-20 14:24:39 +03:00
Orhun Parmaksız
336b25f3ae
style(fmt): update the derives in config module 2023-01-13 17:35:11 +03:00
Orhun Parmaksız
2937f778ea
chore(release): prepare for v1.1.1 2023-01-09 21:08:30 +03:00
Orhun Parmaksız
317444eedf
chore(release): prepare for v1.1.1-rc.4 2023-01-09 19:57:04 +03:00
Orhun Parmaksız
56101f058c
chore(release): prepare for v1.1.1-rc.3 2023-01-09 19:28:28 +03:00
Orhun Parmaksız
7fb3c7cb81
chore(release): prepare for v1.1.1-rc.2 2023-01-09 19:09:17 +03:00
Orhun Parmaksız
8d8a95f7ad
chore(release): prepare for v1.1.1-rc.1 2023-01-09 17:14:59 +03:00
Orhun Parmaksız
5e0c038bf1
chore(release): prepare for v1.1.0 2023-01-08 22:58:32 +03:00
Orhun Parmaksız
5b2c9b6fa4
chore(deps): upgrade dependencies 2023-01-08 22:44:26 +03:00
Orhun Parmaksız
c74fcc294b
chore(deps): bump git-conventional dependency (#130) 2023-01-04 22:24:18 +03:00
Orhun Parmaksız
797089001a
chore(release): prepare for v1.0.0 2022-12-25 21:10:13 +03:00
Orhun Parmaksız
e2cd07bcc9
feat(changelog)!: use current time for --tag argument (#107) 2022-12-19 23:29:55 +03:00
Orhun Parmaksız
77731ec7ae
feat(changelog, config)!: replace --date-order by --topo-order 2022-12-16 18:43:13 +01:00
Orhun Parmaksız
b4fa2483cb
chore(release): prepare for v0.10.0 2022-11-20 18:47:26 +03:00
Orhun Parmaksız
667f99ade5
chore(deps): upgrade core dependencies 2022-11-20 17:06:56 +03:00
Orhun Parmaksız
f2def401ba
refactor(deps): utilize workspace dependencies
https://doc.rust-lang.org/stable/cargo/reference/workspaces.html#the-workspacedependencies-table
2022-11-19 22:07:59 +03:00
Florian Fromm
0c7769b52f
feat(config): changelog for the last n commits (#116)
* feat(config): changelog for the last n commits

Adds a additional configuration variable `limit_commits` to the
configuration struct.
`limit_commits` can be set to a positive integer number to limit the
commits contained in the generated changelog.

Also adjusts the default config file to contain `limit_commits` as a
commented out line.

Extends documentation in README.md to also cover the introduced
configuration value.

issue: https://github.com/orhun/git-cliff/issues/102

* test(fixture): add test fixture for limiting commits

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-10-06 13:10:37 +02:00
Sebastian Müller
1c98995454
feat(changelog): do not skip breaking changes if configured (#114)
* feat(changelog): breaking changes are never skipped

Fixes #106

* test(fixture): add test fixture for skipping breaking changes

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-10-04 20:21:49 +00:00
Orhun Parmaksız
62fe690f32
chore(release): prepare for v0.9.2 2022-09-24 22:44:38 +02:00
Orhun Parmaksız
61cb793581
chore(deps): upgrade dependencies 2022-09-24 22:44:10 +02:00
Orhun Parmaksız
599c698ac7
chore(release): prepare for v0.9.1 2022-09-20 18:36:47 +02:00
Orhun Parmaksız
23c83a165a
chore(deps): upgrade dependencies 2022-09-20 18:33:18 +02:00
Orhun Parmaksız
80ea2e0fbd
chore(deps): remove ansi_term dependency for fixing RUSTSEC-2021-0139 2022-09-20 18:17:29 +02:00
Orhun Parmaksız
055a05708b
refactor(clippy): apply clippy suggestions 2022-09-05 01:58:56 +02:00
Orhun Parmaksız
9be6e06e6d
chore(release): prepare for v0.9.0 2022-08-16 20:35:23 +02:00
Orhun Parmaksız
b55e678a4e
chore(project): update MSRV to 1.60.0 2022-08-16 20:29:04 +02:00