1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-01 22:24:42 +03:00
Commit Graph

428 Commits

Author SHA1 Message Date
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
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
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
Orhun Parmaksız
72b8ba7a43
chore(deps): upgrade dependencies 2022-08-16 20:27:51 +02:00
Orhun Parmaksız
1b13b97f73
refactor(commit): use a more concise conversion for string 2022-08-16 01:10:06 +02:00
Orhun Parmaksız
940065b575
feat(commit): add commit author and committer to the context (#100) 2022-08-16 01:04:56 +02:00
Orhun Parmaksız
d453d4cbeb
feat(changelog): support setting commit SHA while using --with-commit 2022-08-12 20:47:51 +02:00
Orhun Parmaksız
1b5dcc1051
refactor(clippy): run clippy for tests 2022-08-12 11:51:38 +02:00
Aaron Friel
e3eae33abc
feat(changelog): support splitting commits by lines (#101)
* feat: support splitting commits by lines

* refactor(config): update the description for split_commits

* style(fmt): apply formatting via rustfmt

* refactor(test): create helper method for split_commits test

* fix(changelog): change the default behaviour for split_commits when it is not provided

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

* docs(readme): update table of contents

* docs(readme): add warning about split_commits flag

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-08-12 04:59:06 +03:00
Orhun Parmaksız
7fdcf4df01
chore(release): prepare for v0.8.1 2022-07-12 18:13:24 +02:00
Orhun Parmaksız
f792a925e1
chore(release): prepare for v0.8.0 2022-07-12 15:21:32 +02:00
Orhun Parmaksız
c7265e1214
chore(deps): upgrade dependencies 2022-07-12 15:16:33 +02:00
Eliza Weisman
0bf499ec94
feat(commit)!: pass footer token and separator to template (#97)
* fix(commit): pass footer token and separator to template

Currently, when a conventional commit has footers, only the footers'
values (the part after the separator token, such as `:`) are passed to
the template. This means that when multiple footers, such as
`Signed-off-by:` and `Co-authored-by:` are present, it isn't currently
possible for the template to determine the name of the footer. This
makes actually using data from footers in templates impractical in most
cases.

This commit fixes this by changing the `Serialize` impl for `Commit` to
pass the commit's footers as a structured object rather than a string.
The structured `Footer` type includes the footer's token (which is what
`git_conventional` calls the name preceding the separator token), the
separator, and the value.

I didn't make the new `Footer` type and `Commit::footers` method public,
because it isn't strictly necessary to add them to the `git-cliff-core`
public API to fix this issue. However, we can make them public in a
follow-up PR if this is considered useful.

Fixes #96

BREAKING CHANGE:

This changes type of the `commit.footers` array exposed to templates.
Currently, when a template uses `commit.footers`, it can treat the
values as strings. After this change, the footer object will need to
have its fields unpacked in order to use them.

However, the impact of this breakage is probably not that severe, since
it's not really practical to use footers in templates with the current
system.

* docs(README): discuss footers in README

Signed-off-by: Eliza Weisman <eliza@buoyant.io>

* docs(examples): Add footers to `detailed.toml`

Signed-off-by: Eliza Weisman <eliza@buoyant.io>

* refac(commit): address review feedback

Signed-off-by: Eliza Weisman <eliza@buoyant.io>

* docs(README): address README review feedback

Signed-off-by: Eliza Weisman <eliza@buoyant.io>

* refactor(example): update detailed example about newline issues

* test(fixture): add test fixture for commit footers

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-07-12 15:38:16 +03:00
Orhun Parmaksız
34270c8605
refactor(clippy): apply clippy suggestions 2022-07-03 16:45:51 +02:00
Orhun Parmaksız
be9e15873b
chore(deps): update tera to 1.16.0 (#70) 2022-06-23 08:54:29 +02:00
Ömer Faruk Şahin
e22076843b
feat(config): support changing commit scope with commit_parsers (#94)
* fix: issue #50

* chore: Check some lints and styles

* docs: add scope example

* chore: fix some typos in cargo docs

* style: rerun cargo fmt and cargo lint

* style(config): update wording in the comment

* test(config): add tests about specifying the scope

* test(fixture): add test fixture for custom scope

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-06-23 02:44:13 +03:00
Orhun Parmaksız
7d0786ca55
feat(changelog): support external commands for commit preprocessors (#86) 2022-06-08 01:44:10 +03:00
Orhun Parmaksız
8d8981c6b1
refactor(clippy): apply clippy suggestions 2022-05-29 11:15:45 +03:00
Orhun Parmaksız
bfcd0d97ba
chore(project): set MSRV to 1.58.1 (#87) 2022-05-08 02:18:03 +03:00
Orhun Parmaksız
bb6645ad06
chore(release): prepare for v0.7.0 2022-04-24 14:57:26 +03:00
Orhun Parmaksız
b400690a1f
chore(deps): upgrade dependencies 2022-04-24 14:33:36 +03:00
Orhun Parmaksız
f2ccdc3669
chore(deps): upgrade git-conventional dependency (#82) 2022-04-15 17:23:12 +03:00
Orhun Parmaksız
64317f2116
feat(git): support preprocessing commit messages using regex (#62) 2022-04-06 15:46:23 +03:00
Orhun Parmaksız
f48d2077c3
feat(config): support placing configuration inside Cargo.toml (#46) 2022-03-27 15:42:33 +03:00
Orhun Parmaksız
95ad55d542
feat(args): add --context flag for outputting context (#71) 2022-03-27 00:38:08 +03:00
Orhun Parmaksız
b0201c458e
chore(release): prepare for v0.6.1 2022-03-13 15:53:12 +03:00
Marco Ieni
d68eb120c0
docs(core): document timestamp format of Release struct (#67) 2022-03-13 15:48:49 +03:00
Orhun Parmaksız
66f65800b3
chore(deps): upgrade dependencies 2022-03-13 15:45:37 +03:00
Orhun Parmaksız
8dc367fdf9
chore(deps): upgrade regex dependency to fix CVE-2022-24713 2022-03-13 13:33:58 +03:00
Orhun Parmaksız
761669eb57
chore(release): prepare for v0.6.0 2022-02-12 22:06:37 +03:00
Orhun Parmaksız
58165c730e
fix(tests): update custom error tests 2022-02-12 21:52:32 +03:00
Orhun Parmaksız
4863e946c0
chore(deps): upgrade dependencies 2022-02-12 21:50:01 +03:00
Kenji Miyake
a3980f4632
feat(changelog, config)!: replace --topo-order by --date-order (#58)
* feat(changelog, config)!: replace --topo-order by --date-order

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* ci: simplify test-fixtures workflow

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* ci: add fixtures tests of topo_order and date_order

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* remove unnecessary checkout

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* remove cargo run

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* set GIT_COMMITTER_DATE for each commit

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* add a test for --date-order arg

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* fix git config style

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* remove an unnecessary period

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* apply #60

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* minify the config files for tests

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* fix git config style

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* fix styles of expected.md

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* make some steps one-line

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* remove footers

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* remove newlines

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* Revert "remove newlines"

This reverts commit 802881523f.

* Revert "remove footers"

This reverts commit 3d334cc9ef.

* add trim and footer

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
2022-02-12 19:30:21 +03:00
Orhun Parmaksız
e1da61150f
feat(changelog)!: use conventional commit body to check against commit parsers 2022-02-05 16:42:28 +03:00
Orhun Parmaksız
25959529d6
fix(config): lower the priority of global configuration file (#51) 2022-02-04 01:35:55 +03:00
Marcin Puc
bedabc93dd
refactor(lib): unify serde and serde_derive using derive feature (#57) 2022-02-01 01:19:33 +03:00
Orhun Parmaksız
8bb48b09ef
fix(test): update tests about optional config values 2022-01-17 01:30:33 +03:00
Orhun Parmaksız
e02ae0b366
feat(config): make the changelog section optional (#45) 2022-01-17 01:18:23 +03:00
Orhun Parmaksız
8202e37dbd
feat(config): make the git section optional (#45) 2022-01-17 01:14:34 +03:00
Orhun Parmaksız
cd018e90a1
refactor(clippy): apply clippy suggestions 2021-12-31 21:27:52 +03:00
Pascal Bach
b88e7d30be
feat(changelog): add link_parsers for parsing/extracting links (#42)
* feat(core): add link parsing

Searches for patterns in commite messages and allows to convert them into
links via regular expression replacement.

This allows to include links to issue trackers and other tools in the resulting
changelog.

Closes #41

* fix(ci): update lychee arguments

* docs(readme): fix typos

* docs(readme): fix typos

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2021-12-31 21:10:37 +03:00
Orhun Parmaksız
d23cf22d49
chore(release): prepare for v0.5.0 2021-12-16 00:28:09 +03:00
Orhun Parmaksız
8445313b13
feat(changelog): support having both conventional and unconventional commits in the changelog 2021-12-11 15:07:10 +03:00
Orhun Parmaksız
1a9c3e310f
feat(template): use more explanatory error messages about templates 2021-12-08 23:12:13 +03:00
Kenji Miyake
de11ccecac
feat(config): add ignore_tags option (#40)
* feat: add ignore_tags option

Resolves (#36)

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* test: add a test using GitHub Actions

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* docs: fix style

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* chore: add ignore_tags to example config files

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>

* style: refactor test-fixtures workflow

Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
2021-12-07 21:49:37 +03:00
Orhun Parmaksız
02a6187a58
feat(args): add --current flag for processing the current tag (#37) 2021-12-02 10:01:10 +03:00
Orhun Parmaksız
9d213f5713
fix(tests): update log test about exclude path 2021-12-01 22:52:22 +03:00
Orhun Parmaksız
25a1d49c09
feat(args): add --exclude-path argument for excluding related commits 2021-12-01 22:50:12 +03:00
Orhun Parmaksız
edb343a10e
feat(args): support multiple values for --commit-path argument 2021-11-30 16:31:19 +03:00
Orhun Parmaksız
ad11cbf6c5
feat(args): accept glob patterns for --commit-path argument 2021-11-30 16:05:29 +03:00
Orhun Parmaksız
6cec37d1ec
refactor(config): rename the config value for commit order 2021-11-25 22:52:10 +03:00
Orhun Parmaksız
4eb334da06
feat(config): support specifying the sorting methods in config (#31) 2021-11-25 22:45:44 +03:00
Orhun Parmaksız
cc09d637ff
feat(changelog): add --topo-order flag for sorting tags (#29) 2021-10-30 01:02:00 +03:00
Orhun Parmaksız
dc7e91b191
chore(release): prepare for v0.4.2 2021-10-22 17:59:12 +03:00
Orhun Parmaksız
c427eed757
chore(release): prepare for v0.4.1 2021-10-22 17:30:05 +03:00
Orhun Parmaksız
0000000ef0
chore(project): migrate to Rust 2021 edition 2021-10-22 17:17:50 +03:00
Orhun Parmaksız
6080ebbd46
chore(deps): upgrade dependencies 2021-10-22 16:57:11 +03:00
pataar
10771f43c0
fix(changelog): add support for special characters in scopes (#26)
* fix: add support for special characters in scopes

Fixes #25

* test: fix newlines of non-scoped commits

* style(tests): update formatting

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2021-10-19 21:45:36 +03:00
Orhun Parmaksız
f447cc2e73
refactor(git): use a better error message for invalid repo path 2021-10-15 21:27:22 +03:00
Orhun Parmaksız
a8b53789e4
chore(release): prepare for v0.4.0 2021-10-02 00:50:33 +03:00
Orhun Parmaksız
f2c1ba411f
chore(deps): upgrade dependencies 2021-10-02 00:34:31 +03:00
orhun
7f8e252560
chore(release): prepare for v0.3.0 2021-09-10 21:54:10 +03:00
orhun
39dd563f57
chore(deps): upgrade dependencies 2021-09-10 21:53:15 +03:00
orhun
0bb7c910b4
feat(changelog): support generating a changelog scoped to a directory (#11) 2021-09-09 00:34:25 +03:00
Steven L
8a18e4d48d
fix(config): fix default regexes and references in docs (#7)
* Fix default regexes and references in docs

* correction: I didn't realize the colon was necessary

* change more tomls, fmt

* rebase fixes
2021-09-08 21:40:29 +03:00
orhun
b5df656e61
feat(changelog): support parsing the missing scopes with default_scope (#8) 2021-09-07 00:23:08 +03:00
orhun
4590c51cd8
chore(release): prepare for v0.2.6 2021-09-04 20:00:58 +03:00
orhun
d0e1a84bd8
chore(deps): bump dependencies 2021-09-04 14:56:50 +03:00
orhun
72cee9caa6
chore(deps): bump git-conventional to 0.10.1 (fixes #6) 2021-09-04 14:32:10 +03:00
orhun
ae8821aaa5
chore(release): prepare for v0.2.5 2021-08-21 00:58:26 +03:00
orhun
e0f6ca151a
feat(template): add breaking_description to the template context (#4) 2021-08-21 00:37:45 +03:00
orhun
5219b9ef30
chore(release): prepare for v0.2.4 2021-08-20 23:45:42 +03:00
orhun
e6fe05b2da
chore(release): prepare for v0.2.3 2021-08-19 02:29:21 +03:00
orhun
2d2f1befbc
chore(release): prepare for v0.2.2 2021-08-19 02:00:54 +03:00
orhun
df241e485f
chore(release): prepare for v0.2.1 2021-08-19 00:41:59 +03:00
orhun
a067433061
chore(release): prepare for v0.2.0 2021-08-18 23:59:27 +03:00
orhun
45889c0a05
fix(config): use custom error type for UTF-8 errors 2021-08-18 03:59:08 +03:00
orhun
e5148e3ae1
feat(config): embed the default configuration file into the binary 2021-08-18 03:19:06 +03:00
orhun
c478f2c616
refactor(lib): create a constant for default configuration file 2021-08-17 22:14:22 +03:00
orhun
acda1954dc
chore(config): move cliff.toml to config/ 2021-08-17 21:49:21 +03:00
orhun
c5f58213b4
chore(release): prepare for v0.1.2 2021-08-14 16:47:13 +03:00
orhun
83479445c2
chore(release): prepare for v0.1.1 2021-08-14 16:24:43 +03:00
orhun
af76d41b41
chore(deps): upgrade dependencies 2021-08-14 16:17:18 +03:00
orhun
2b8b4d3535
chore(release): prepare for v0.1.0 2021-08-12 13:59:51 +03:00
orhun
5ba781721e
chore(deps): upgrade dependencies 2021-08-12 13:54:14 +03:00
orhun
8232111aa1
fix(changelog): return error if there is not a latest tag to process 2021-07-19 16:42:40 +03:00
orhun
a1b4b5b18a
fix(git): sort the commits in topological order 2021-07-18 15:42:13 +03:00
orhun
3e5c23d342
fix(changelog): use footers field as an array for the context 2021-07-18 14:43:29 +03:00
orhun
9cf9ac1586
test(git): update repository tests about getting the latest tag 2021-07-09 23:10:07 +03:00
orhun
11a7a7eb3e
test(config): add tests 2021-07-09 22:41:51 +03:00
orhun
9984abfe04
fix(config): update the environment variable parsing settings 2021-07-09 22:39:19 +03:00
orhun
8975c8fb41
chore(deps): upgrade dependencies 2021-07-03 14:22:55 +03:00
orhun
a440c6eb26
chore(release): prepare for v0.1.0-rc.21 2021-07-01 22:55:01 +03:00
orhun
4c7b043e97
chore(release): prepare for v0.1.0-rc.20 2021-07-01 01:58:27 +03:00
orhun
f463659742
chore(release): prepare for v0.1.0-rc.19 2021-07-01 01:22:10 +03:00
orhun
22f0a7ef73
chore(cargo): update project details 2021-07-01 01:17:15 +03:00
orhun
5648143169
chore(release): prepare for v0.1.0-rc.18 2021-06-30 03:11:23 +03:00
orhun
4453522fab
chore(release): prepare for v0.1.0-rc.17 2021-06-30 02:55:41 +03:00
orhun
f48108109e
chore(release): indicate which versions are managed by the script 2021-06-30 02:22:06 +03:00
orhun
f1613e110f
chore(release): prepare for v0.1.0-rc.16 2021-06-30 01:35:28 +03:00
orhun
000a67cd8a
fix(git): return tags by their creation order 2021-06-22 01:49:09 +03:00
orhun
1be66eebeb
refactor(error): use custom error message for GroupError 2021-06-20 22:24:38 +03:00
orhun
e6fb8de5d8
fix(test): use default tag_pattern for tests 2021-06-18 03:04:35 +03:00
orhun
3a27a3e1a2
refactor(config): make tag_pattern optional 2021-06-18 02:51:47 +03:00
orhun
4ae02f5373
chore(project): update description 2021-06-11 21:23:42 +03:00
orhun
a5ef8bd6d2
chore(dep): remove default features from git2 2021-06-11 20:27:18 +03:00
orhun
2d0d89cb7a
feat(config): add trim option to changelog 2021-06-09 14:32:46 +03:00
orhun
8ee0611fbf
test(changelog): add tests 2021-06-08 23:30:17 +03:00
orhun
39b0fb6757
refactor(config): make skip_tags optional 2021-06-08 22:44:08 +03:00
orhun
3a42f53c8f
fix(args): require -u or -l flag for prepending changelog 2021-06-08 19:01:38 +03:00
orhun
2ba280839e
feat(changelog): support generating changelog based on tagging status 2021-06-06 03:19:27 +03:00
orhun
ddd2fdb173
fix(test): update fields 2021-06-06 00:27:03 +03:00
orhun
c92b613c87
feat(template): support using metadata from the previous release 2021-06-06 00:23:11 +03:00
orhun
6ae7ea722e
feat(git): allow generating changelog using a range of commits 2021-06-05 23:38:05 +03:00
orhun
e39ae3c966
refactor(config): make changelog header/footer optional 2021-06-04 03:31:31 +03:00
orhun
bbc1d02eba
refactor(config): make commit parsers optional 2021-06-04 03:28:25 +03:00
orhun
a445b447b1
feat(changelog): support grouping based on commit body 2021-06-04 03:10:54 +03:00
orhun
59f069d890
refactor(template): rename capitalize_first filter to upper_first 2021-06-04 02:30:15 +03:00
orhun
76414ce1ad
feat(changelog): allow disabling conventional commits 2021-06-04 02:14:40 +03:00
orhun
1ae8bf1195
feat(commit): add other conventional fields to serialize 2021-06-04 02:04:12 +03:00
orhun
0f35b07522
refactor(config): add section to configuration file 2021-06-02 00:06:01 +03:00
orhun
296717d2af
chore(project): update details 2021-06-01 23:12:14 +03:00
orhun
2ef4e73292
fix(test): update tests about recent changes 2021-06-01 23:04:27 +03:00
orhun
f663c9e6d2
refactor(changelog): remove ReleaseRoot struct 2021-06-01 23:01:08 +03:00
orhun
fbdce067f5
docs(lib): add comments to struct fields 2021-06-01 22:55:06 +03:00
orhun
345c410a62
refactor(bin): add changelog module 2021-06-01 22:47:30 +03:00
orhun
2c370ecef2
chore(git): change default branch to main 2021-05-30 14:25:13 +03:00
orhun
4a1ed9bb11
chore(project): rename
Signed-off-by: orhun <orhunparmaksiz@gmail.com>
2021-05-30 01:45:03 +03:00