1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-17 02:48:13 +03:00
Commit Graph

534 Commits

Author SHA1 Message Date
Orhun Parmaksız
17f3a0994d
chore(ci): switch to cargo-tarpaulin for measuring code coverage (#110) 2022-09-24 21:19:46 +02:00
Orhun Parmaksız
5cb991d4e3
fix(docker): remove custom user creation from the Dockerfile (#109) 2022-09-24 18:44:41 +02:00
Orhun Parmaksız
078bdc3f7a
chore(audit): remove cargo-audit config 2022-09-20 19:19:17 +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
4fc2217868
fix(docker): configure git safe.directory for Docker image (#108) 2022-09-20 17:53:30 +02:00
Orhun Parmaksız
055a05708b
refactor(clippy): apply clippy suggestions 2022-09-05 01:58:56 +02:00
Orhun Parmaksız
82473017ca
style(readme): update styling for with-commit example 2022-08-16 21:08:05 +02:00
Orhun Parmaksız
9be6e06e6d
chore(release): prepare for v0.9.0 2022-08-16 20:35:23 +02:00
Orhun Parmaksız
f70fefd88a
chore(build): enable strip option for release profile 2022-08-16 20:33:49 +02:00
Orhun Parmaksız
6bb4f5b43e
chore(docker): upgrade versions in Dockerfile 2022-08-16 20:31:21 +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
da484a3364
docs(readme): add test repository link to README.md 2022-08-16 01:08:56 +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
f3fada723d
chore(funding): add GitHub Sponsors option for funding
https://github.com/sponsors/orhun
2022-07-31 14:28:50 +02:00
Orhun Parmaksız
cd1306cffd
chore(docker): disable updating the description on Docker Hub
This reverts commit 9c0e7a2ab8.

See https://github.com/peter-evans/dockerhub-description/issues/69
2022-07-27 14:40:24 +02:00
Orhun Parmaksız
9c0e7a2ab8
chore(docker): update the description on Docker Hub on push 2022-07-27 14:31:21 +02:00
Orhun Parmaksız
f2968cdf6c
chore(docker): enable building arm64 docker images
This reverts commit 175f7d7055.
2022-07-21 20:57:03 +02:00
Orhun Parmaksız
220d6e64f4
chore(docker): use an alternative method to fetch registry
Recommended workaround from <https://github.com/LukeMathWalker/cargo-chef/issues/107>
2022-07-21 20:55:24 +02:00
Orhun Parmaksız
7fdcf4df01
chore(release): prepare for v0.8.1 2022-07-12 18:13:24 +02:00
Orhun Parmaksız
8621a59d47
chore(cd): update windows runners to windows-2022 2022-07-12 18:12:28 +02:00
Orhun Parmaksız
4b2ded0cf1
fix(cd): set fail-fast strategy to false 2022-07-12 18:01:50 +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
Orhun Parmaksız
a5aaca1a01
fix(ci): update lychee arguments to skip checking protonmail 2022-07-12 15:11:08 +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
Cassandra McCarthy
22891992a2
docs(readme): switch chronological and topological (#99) 2022-07-04 13:58:07 +03:00
Orhun Parmaksız
34270c8605
refactor(clippy): apply clippy suggestions 2022-07-03 16:45:51 +02:00
Orhun Parmaksız
175f7d7055
chore(docker): disable building arm64 docker images temporarily
This reverts commit 8475e1fd63.
Reference: https://github.com/LukeMathWalker/cargo-chef/issues/107#issuecomment-1149901337
2022-06-23 22:21:27 +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
d540f5d893
docs(readme): clarify that --tag argument can be an unexisting tag 2022-04-28 12:43:57 +03:00
Orhun Parmaksız
bb6645ad06
chore(release): prepare for v0.7.0 2022-04-24 14:57:26 +03:00
Orhun Parmaksız
72544b1807
style(release): update the changelog template for tag message 2022-04-24 14:52:27 +03:00
Orhun Parmaksız
b400690a1f
chore(deps): upgrade dependencies 2022-04-24 14:33:36 +03:00
Orhun Parmaksız
aca4ccfb7f
chore(docker): strip the binaries in Docker image 2022-04-24 14:14:55 +03:00
Orhun Parmaksız
e6fb20d11c
chore(docker): disable default features for the Docker image 2022-04-24 14:13:47 +03:00
Orhun Parmaksız
8475e1fd63
chore(docker): build Docker images for arm64 2022-04-24 14:12:29 +03:00
Orhun Parmaksız
3aa9a1a059
chore(docker): upgrade versions in Dockerfile 2022-04-24 14:12:21 +03:00
Orhun Parmaksız
4f4a82cbe3
docs(readme): update the title of projects section 2022-04-24 14:00:00 +03:00
Jeroen Claassens
2a218902d3
docs(readme): add cliff-jumper to similar projects (#83)
* docs(readme): add `@favware/cliff-jumper` package

Honestly not entirely sure what the definition of a "similar project" is but I figured I'd give it a shot adding this as I recently finished it.

* Update README.md

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2022-04-18 22:32:40 +03:00