1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-12-15 16:21:44 +03:00
Commit Graph

421 Commits

Author SHA1 Message Date
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
Orhun Parmaksız
980196357b
docs(readme): update GitHub Actions reference link in README.md 2022-04-15 17:28:44 +03:00
Orhun Parmaksız
f2ccdc3669
chore(deps): upgrade git-conventional dependency (#82) 2022-04-15 17:23:12 +03:00
Orhun Parmaksız
a5ddf75152
chore(cd): include man page in the release assets 2022-04-14 16:53:02 +03:00
Orhun Parmaksız
03d55c8eb1
feat(man): add man page generation script (#35) 2022-04-14 16:48:46 +03:00
Orhun Parmaksız
fa2639aafe
refactor(completions): use implicit Result type in completions script 2022-04-14 14:15:31 +03:00
Kaushal Modi
9b83518a59
docs(readme): add more regex examples for commit_preprocessors
Ref: https://github.com/orhun/git-cliff/issues/77#issuecomment-1090552243

[skip ci]
2022-04-06 23:58:27 +03:00
Orhun Parmaksız
2b484f078c
fix(fixtures): update expected changelog date 2022-04-06 15:58:28 +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
a8efffc7d5
feat(log): print more debug information when -vv is used (#79) 2022-04-06 10:03:20 +03:00
Uy Ha
84507dd361
feat(args)!: prefix environment variables with GIT_CLIFF_ (#76)
* Prefix environment variable with `GIT_CLIFF_`

* Update README.md

* Format file
2022-04-05 01:17:18 +03:00
Grachev Mikhail
312b654b07
chore(ci): return to nightly builds (#73)
Signed-off-by: Mikhail Grachev <work@mgrachev.com>
2022-03-29 14:44:45 +03:00
Orhun Parmaksız
cddb4d49fb
refactor(cli): make update-informer opt-out via feature flag (#69) 2022-03-29 01:49:44 +03:00
Orhun Parmaksız
efd40e02b3
fix(log): remove redundant logging while using --context (#71) 2022-03-27 19:49:45 +03:00