1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 05:53:38 +03:00
Commit Graph

1216 Commits

Author SHA1 Message Date
Orhun Parmaksız
1cdbbf604c
fix(commit): trim the trailing newline for git2 commits (#872) 2024-09-21 18:39:30 +03:00
Orhun Parmaksız
8bebbf9f57
fix(bump): suppress template warning when --bumped-version is used (#855) 2024-09-21 16:46:55 +03:00
Nejc Galof
4956fc7797
refactor(clippy): apply explicit_iter_loop lint (#864) 2024-09-18 14:49:01 +03:00
Nejc Galof
81d4e5a36c
refactor(clippy): apply manual_is_variant_and lint (#866) 2024-09-18 14:47:00 +03:00
dependabot[bot]
5318361865
chore(deps): bump clap_complete from 4.5.23 to 4.5.28 (#867)
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.5.23 to 4.5.28.
- [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.5.23...clap_complete-v4.5.28)

---
updated-dependencies:
- dependency-name: clap_complete
  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>
2024-09-18 14:46:00 +03:00
dependabot[bot]
189fbaed27
chore(deps-dev): bump typescript from 5.5.4 to 5.6.2 in /website in the minor group (#845)
Bumps the minor group in /website with 1 update: [typescript](https://github.com/microsoft/TypeScript).


Updates `typescript` from 5.5.4 to 5.6.2
- [Release notes](https://github.com/microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-17 14:14:35 +03:00
dependabot[bot]
5655b80a96
chore(deps): bump pretty_assertions from 1.4.0 to 1.4.1 (#862)
Bumps [pretty_assertions](https://github.com/rust-pretty-assertions/rust-pretty-assertions) from 1.4.0 to 1.4.1.
- [Release notes](https://github.com/rust-pretty-assertions/rust-pretty-assertions/releases)
- [Changelog](https://github.com/rust-pretty-assertions/rust-pretty-assertions/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-pretty-assertions/rust-pretty-assertions/compare/v1.4.0...v1.4.1)

---
updated-dependencies:
- dependency-name: pretty_assertions
  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>
2024-09-17 11:26:51 +03:00
Orhun Parmaksız
e41e8dd4a2
fix(changelog): correctly set the tag message for the latest release (#854) 2024-09-17 10:16:42 +03:00
Nejc Galof
f3b067b3f3
refactor(clippy): apply case_sensitive_file_extension_comparisons lint (#858) 2024-09-16 01:08:27 +03:00
Orhun Parmaksız
82cc09ff75
refactor(clippy): apply clippy suggestions 2024-09-15 22:48:44 +02:00
Nejc Galof
05b6dde4cd
refactor(clippy): apply option_as_ref_cloned lint (#860) 2024-09-15 23:12:12 +03:00
Orhun Parmaksız
e577113bd6
refactor(template)!: add name parameter to the constructor 2024-09-15 22:09:54 +02:00
Orhun Parmaksız
1d8a2fe849
fix(core): avoid the unnecessary loop when no remote feature is activated 2024-09-15 19:31:00 +02:00
Marco Ieni
87e2c1d0dd
feat(core): add remote to commit and deprecate fields (#822)
* feat(core): add `remote` field to commit

* refactor

* fmt

* deprecate old fields

* serialize remote field

* fix

* fix typo

* allow deprecated

* move warn

* move filename

* docs

* docs

* fix

* fmt

* chore(fixtures): use remote instead of platform name for template variables

* remove useless method

* update docs

* use contains_variable

* fix no-default-features

* chore(remote): update template varibles for platforms

* set commit.remote

* chore(release): update unit tests for new remote field

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-09-15 20:28:56 +03:00
Nejc Galof
fe37d148fb
refactor(clippy): apply semicolon_if_nothing_returned clippy lint (#851) 2024-09-15 18:56:50 +03:00
Nejc Galof
9ef62e8a80
refactor(clippy): apply unnested_or_patterns clippy lint (#852) 2024-09-15 18:54:11 +03:00
Nejc Galof
a82dac3cb1
docs(contributing): mention fetching the tags for running tests successfully (#850)
* docs(contributing): mention the tags are necessary for running tests successfully

* docs(contributing): Update file based on the review

* Update CONTRIBUTING.md

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-09-14 21:58:24 +03:00
Orhun Parmaksız
e56cd8de17
docs(website): clarify comment about tag argument 2024-09-14 12:00:19 +03:00
Binbin
35b7fd8007
fix(args): support using use_branch_tags from both config and args (#848) 2024-09-14 10:11:26 +03:00
Binbin
2a581a82bb
feat(changelog): support generating changelog for different branches (#808)
* feat: support generating change log for different branches

* check if the head commit is also a tag commit

* simplify implementation without requiring a branch

* remove unused import

* update test-topo-order fixture

* add comment for should_include_tag

* fix typo

* rename variable

* generate fixture considering timezone difference

* make --use-branch-tags optional for backward compatibility

* add missing field

* refactor: polish implementation

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-09-09 21:16:53 +03:00
Orhun Parmaksız
08e761c20f
chore(examples): improve example templates (#835)
* chore(examples): improve example templates

* chore(typos): configure typos
2024-09-01 11:18:35 +03:00
Orhun Parmaksız
81854d2166
chore(lib): fix typos in code comments 2024-09-01 10:28:33 +03:00
dependabot[bot]
79619d0526
chore(deps): bump prism-react-renderer from 2.3.1 to 2.4.0 in /website in the minor group (#828)
Bumps the minor group in /website with 1 update: [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer).


Updates `prism-react-renderer` from 2.3.1 to 2.4.0
- [Release notes](https://github.com/FormidableLabs/prism-react-renderer/releases)
- [Commits](https://github.com/FormidableLabs/prism-react-renderer/compare/prism-react-renderer@2.3.1...prism-react-renderer@2.4.0)

---
updated-dependencies:
- dependency-name: prism-react-renderer
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-30 08:30:28 +03:00
Mystic
63bf5b7438
fix(template): resolve parsing issues with raw/endraw in Jinja (#824) 2024-08-29 11:19:01 +03:00
Orhun Parmaksız
c34aaa0738
chore(npm): update yarn.lock 2024-08-26 21:13:59 +03:00
Albrecht
ff7240633f
fix(changelog): don't change the context when provided via --from-context (#820)
closes orhun/git-cliff/issues/819
2024-08-26 21:07:19 +03:00
Orhun Parmaksız
741528994d
chore(release): prepare for v2.5.0 2024-08-24 10:59:58 +03:00
Orhun Parmaksız
5474978f8a
chore(config): include new contributors in repository changelog 2024-08-24 10:59:08 +03:00
Orhun Parmaksız
49df8cb0d6
docs(website): add highlights for 2.5.0 (#815)
* docs(website): add highlights for 2.5.0

* docs(website): add latest changes to 2.5.0 blog

* chore(website): add announcement bar
2024-08-24 10:51:41 +03:00
Albrecht
6fbfdb5963
feat(args): allow GitLab groups with --gitlab-repo (#807)
* feat: allow gitlab groups

* refactor(arg): improve remote value parser

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-08-24 10:44:56 +03:00
dependabot[bot]
9831ccb4eb
chore(deps): bump the minor group in /website with 4 updates (#813)
* chore(deps): bump the minor group in /website with 4 updates

Bumps the minor group in /website with 4 updates: [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus), [@docusaurus/preset-classic](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-preset-classic), [@docusaurus/module-type-aliases](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-module-type-aliases) and [@docusaurus/tsconfig](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-tsconfig).


Updates `@docusaurus/core` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus)

Updates `@docusaurus/preset-classic` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus-preset-classic)

Updates `@docusaurus/module-type-aliases` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus-module-type-aliases)

Updates `@docusaurus/tsconfig` from 3.4.0 to 3.5.2
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v3.5.2/packages/docusaurus-tsconfig)

---
updated-dependencies:
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@docusaurus/preset-classic"
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@docusaurus/module-type-aliases"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
- dependency-name: "@docusaurus/tsconfig"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update blog settings

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-08-24 10:36:28 +03:00
Orhun Parmaksız
d727e2662c
chore(deps): bump dependencies (#811)
* chore(deps): bump dependencies

* chore(deps): bump MSRV
2024-08-23 21:08:54 +03:00
dependabot[bot]
9e420c6d69
chore(deps): bump the patch group across 1 directory with 2 updates (#795)
Bumps the patch group with 2 updates in the /website directory: [@easyops-cn/docusaurus-search-local](https://github.com/easyops-cn/docusaurus-search-local/tree/HEAD/packages/docusaurus-search-local) and [typescript](https://github.com/Microsoft/TypeScript).


Updates `@easyops-cn/docusaurus-search-local` from 0.44.2 to 0.44.5
- [Release notes](https://github.com/easyops-cn/docusaurus-search-local/releases)
- [Commits](https://github.com/easyops-cn/docusaurus-search-local/commits/v0.44.5/packages/docusaurus-search-local)

Updates `typescript` from 5.5.2 to 5.5.4
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v5.5.2...v5.5.4)

---
updated-dependencies:
- dependency-name: "@easyops-cn/docusaurus-search-local"
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: patch
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-23 21:08:32 +03:00
Orhun Parmaksız
9a6430bc51
fix(template): include for-loop arguments in template variables (#812) 2024-08-23 21:04:54 +03:00
Jan Buchar
3b6156ddd6
feat(cli): generate changelog from JSON context (#784)
* feat(cli): generate changelog from JSON context

* Add 'extra' field to releases and commits

* Add fixture test

* Serialize extra field for commits

* Format

* Adjust test expectations

* Add missing fields in tests

* Add usage page

* refactor(arg): update from-context argument details

* refactor(from-context): polish implementation

* docs(from-context): extend documentation

* fix(from-context): revert stdin handling

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-08-23 15:39:27 +03:00
Rick
1956c8321e
docs(readme): remove underscored spaces between badges (#809) 2024-08-23 11:25:10 +03:00
Orhun Parmaksız
72847c6c7e
fix(fixture): fix fetching repository for gitlab integration test 2024-08-22 23:16:18 +03:00
Orhun Parmaksız
e74080cec4
fix(changelog): allow using --bumped-version without conventional commits (#806) 2024-08-22 09:11:39 +03:00
Orhun Parmaksız
6f8ea19baa
refactor(config): make example templates more user-friendly 2024-08-21 18:48:34 +03:00
Orhun Parmaksız
a71649b6cd
chore(website): remove v2 announcement 2024-08-17 10:31:19 +02:00
Orhun Parmaksız
565b9c8df0
chore(website): add discord button to navbar 2024-08-17 10:30:15 +02:00
tison
b8045e97ed
feat(changelog): support count_tags option (#599)
* feat: support count_tags option

Signed-off-by: tison <wander4096@gmail.com>

* add fixures tags

Signed-off-by: tison <wander4096@gmail.com>

* fixup

Signed-off-by: tison <wander4096@gmail.com>

* add count_tags to args

Signed-off-by: tison <wander4096@gmail.com>

* add docs

Signed-off-by: tison <wander4096@gmail.com>

* run cargo fmt

Signed-off-by: tison <wander4096@gmail.com>

* fixup default to true

Signed-off-by: tison <wander4096@gmail.com>

* docs(website): update documentation about count_tags

---------

Signed-off-by: tison <wander4096@gmail.com>
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-08-13 12:22:54 +03:00
Orhun Parmaksız
388b007b0f
chore(config): check for null commit_id in detailed template (#786) 2024-08-08 22:37:40 +03:00
DerTiedemann
ccf2ab769a
feat(parser): allow whole commit context to be used in commit parsers (#758)
* fix: reorder execution to have context poplulated before parsing/pruning

* feat: allow field to read from context object

* fix: add tests

* fix: add legacy fix for body field

* test: add fixture

* docs: update documentation

* refactor: clean up implementation

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-08-08 22:30:36 +03:00
Orhun Parmaksız
85bfa952e4
docs(website): clarify authentication with GitHub token (#787) 2024-08-08 10:57:00 +03:00
Amin Yahyaabadi
8430c5c539
perf(changelog): cache commit retain checks (258 times faster generation) (#772)
* perf: cache commit retain checks + 87 times faster generation

This caches the commit retain checks whenever include/exclude paths are specified.

This speeds up changelog generation by `87` times in a big repository I have:
```
Now: 0.237 s
Before:  20.633 s
```

* perf: use separate retain_commit cache for each repository

* fix: use cacache for parallel git-local cache - 258 times faster

Sled fails to open the cache if multiple git-cliff processes run on the same repository. This fixes the issue by using cacache which stores the cache locally under .git/git-cliff

* fix: cache changed files of a commit directly

This slows down the retain_commit check by ~2 times, but allows reusing the cache in case the include/exclude patterns change.
This is beneficial for running in monorepos where git-cliff runs multiple times to generate changelog for different subsets of the repo

* fix: consider include/exclude patterns together

* fix: handle first commit for changed_files

* fix: normalize glob patterns to ignore ./

* docs: add docs for retain_commit_check and cache algorithms

* fix: add ** if a pattern represents a directory

* test: add tests for should retain commit checks

* fix: correctly get the files list for the first commit

* test: add test email/name for git commits

* fix: use / for path joining in entries to match the git behaviour

* fix: revert change of include/exclude patterns to slices

The slices are normalized, so an owned pattern is needed to avoid type mismatch between new normalized/unchanged patterns

* refactor: polish implementation

* refactor: apply clippy suggestion

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-08-06 23:04:17 +03:00
Orhun Parmaksız
2471745e11
fix(config): allow using environment variables without config file present (#783) 2024-08-06 15:58:35 +03:00
Orhun Parmaksız
4b33e7e986
feat(remote): activate integration if remote is set manually (#782) 2024-08-04 22:35:32 +03:00
DaniPopes
4b0c0eb09a
refactor(lib): clean up some code (#709)
* refactor: clean up some code

* Update git-cliff/src/lib.rs

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

* review

* fmt

* fix: read before opening the file to prepend

* style: update formatting

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-08-04 00:05:26 +03:00
Orhun Parmaksız
35b886e50d
chore(config): fix comment for changelog header template 2024-08-01 19:58:54 +03:00