1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 15:52:49 +03:00
Commit Graph

213 Commits

Author SHA1 Message Date
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
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
Binbin
9dbf47bac5
feat(bump): support bumping to a specific semver type (#744)
* feat: support bump a specific version type

* let --bump accept optional enum

* doc: update document for --bump

* test: add bump version fixtures tests

* refactor: polish implementation

* refactor: fix typo

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-07-31 08:48:03 +03:00
Amin Yahyaabadi
35dc1e46fd
feat(profiler): support performance profiling via pprof (#768)
* feat: support performance profiling via pprof

This adds support for performance profiling that allows for finding the bottlenecks and performance optimizations.

It can be enabled via `profiler` feature and the `bench` build profile.

```shell
cargo build --profile=bench --features=profiler
```

* refactor(profiling): clean up implementation

* feat(ci): run profiler

* fix(ci): fetch all the history for profiler

* docs(website): add profiling docs

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-07-29 11:25:23 +03:00
Orhun Parmaksız
9f39bcb8bf
chore(cd): remove unnecessary git-cliff-action output file (#738) 2024-07-27 13:16:02 +03:00
Meitar Reihan
3eb828e69a
feat(changelog): add tag message to release context (#713)
* feat: add tag message to release context

- add to the release context the tag's message if it exists
- add message to the default config

* feat(args): add `--with-tag-message` argument

to allow setting the message of the last release in the context

* docs: update args

* docs: add adding-tag-messages

* refactor: polish implementation

* tests(test-tag-message): fix the template

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-06-22 13:29:49 +03:00
Meitar Reihan
8e03356706
feat(bump): support bumping based on configurable custom pattern (#725)
* chore(deps): bump next_version from 0.2.17 to 0.2.18

Bumps [next_version](https://github.com/MarcoIeni/release-plz) from 0.2.17 to 0.2.18.
- [Release notes](https://github.com/MarcoIeni/release-plz/releases)
- [Changelog](https://github.com/MarcoIeni/release-plz/blob/main/CHANGELOG.md)
- [Commits](https://github.com/MarcoIeni/release-plz/compare/next_version-v0.2.17...next_version-v0.2.18)

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

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

* feat: Support bumping version based on configurable custom pattern

closes #717

* refactor: clean up implementation

---------

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-06-21 23:38:52 +03:00
dependabot[bot]
1d4d955955
chore(deps): bump docker/build-push-action from 5 to 6 (#714)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-18 12:14:09 +03:00
Buk Bukowski
94891c2c27
feat(args): add --ignore-tags argument (#696)
* feat(cli,args): allow overwriting `ignore_tags` argument

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(lint): cargo fmt

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(lint): clippy

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* Revert "chore(lint): clippy"

This reverts commit f307647f87.

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* Revert chore(lint): cargo fmt in changelog.rs

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore: git update-index --chmod=+x .github/fixtures/test-cli-arg-ignore-tags/commit.sh

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(lint): fix formatting

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* revert changes to test-fixtures-locally.sh

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* revert changes to .gitignore

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore: change doc in args.rs and doc

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* Revert "chore(lint): fix formatting"

This reverts commit c829865feb.

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* style(lint): rustfmt

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* tests(fixtures): uncomment commit

* tests(fixtures): fix expected.md

---------

Signed-off-by: Bukowa <gitbukowa@gmail.com>
2024-06-17 20:47:14 +03:00
Buk Bukowski
734150020e
feat(bump): support setting the initial_tag (#701)
* feat: add `initial_tag` to `bump` - allows changing from default `0.1.0` when using `bump` and no tags are found

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(tests): add `test-bump-initial-tag-default`

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(tests): add `test-bump-initial-tag-cli-arg`

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(tests): add `test-bump-initial-tag`

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(ci,tests): add tests to `text-fixtures.yml`

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(ci,tests): check if cli arg overwrites config file

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(ci,tests): fix chmod for commit files

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(docs): add cli flag to args.md

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(lint): rustfmt

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* chore(lint): fix formatting

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* Revert "chore(docs): add cli flag to args.md"

This reverts commit 1499e40df2.

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* feat(cli,args): remove `bump-initial-flag` and use `tag`

Signed-off-by: Bukowa <gitbukowa@gmail.com>

* Revert "chore(lint): fix formatting"

This reverts commit 02717efa19.

Signed-off-by: Bukowa <gitbukowa@gmail.com>

---------

Signed-off-by: Bukowa <gitbukowa@gmail.com>
2024-06-15 21:22:23 +03:00
ThetaDev
403d3dcd32
feat(codeberg): add Gitea support (#680)
* feat: add gitea integration

* fix: several fixes to get gitea working, add test fixture

* docs: update docs

* fix: cargo fmt

* fix: remove dbg trait

* fix: tests

* chore: remove vscode settings

* refactor: cleanup implementation

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-06-15 20:42:15 +03:00
Orhun Parmaksız
22c94ed835
chore(cd): use macos-14 runner 2024-05-22 19:57:43 +03:00
Orhun Parmaksız
f675b0b5bd
chore(pypi): disable PyPi builds for x86_64-pc-windows-gnu 2024-04-30 13:39:36 +03:00
Orhun Parmaksız
6ba6809ea1
chore(ci): remove audit check 2024-04-11 01:15:46 +03:00
Jeroen Claassens
800c896493
fix(npm): include the proper files in the npm tarball (#594) 2024-04-10 00:59:44 +03:00
dependabot[bot]
69abe952ac
chore(deps): bump actions/configure-pages from 4 to 5 (#587)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 12:57:14 +03:00
Orhun Parmaksız
0b64bc0325
chore(website): allow deploying website manually 2024-03-28 15:48:19 +03:00
Orhun Parmaksız
8651832926
chore(website): only deploy website when there is a new release 2024-03-27 17:23:24 +03:00
Jeroen Claassens
5a0ce6acc1
fix(npm): fix authenticating for yarn npm publish (#574) 2024-03-25 00:12:11 +01:00
Orhun Parmaksız
9eb3d65945
feat(config): support detecting config from project manifest (#571)
* feat(config): support detecting config from project manifest

* refactor: apply clippy suggestions

* test(fixture): add fixture for configuring from Cargo.toml
2024-03-23 15:31:58 +01:00
Orhun Parmaksız
f26fbe09ff
chore(ci): temporarily disable semver checks
waiting for https://github.com/obi1kenobi/cargo-semver-checks-action/pull/65
2024-03-23 17:06:54 +03:00
Orhun Parmaksız
ccdc15217c
chore(ci): comment on pull requests about semver checks 2024-03-11 15:57:44 +03:00
Jeroen Claassens
16bea5179a
chore(npm): publish rc version for prereleases (#528)
* ci: publish rc version with rc dist-tags

* refactor: use github.ref
2024-03-05 19:17:22 +01:00
Orhun Parmaksız
7f379a9c83
fix(cd): set the correct GitHub repository URL 2024-03-03 23:45:40 +03:00
Orhun Parmaksız
717abce767
fix(cd): set a flag as a workaround for the NPM package 2024-03-03 23:43:08 +03:00
Orhun Parmaksız
5dd0d2ebf8
fix(cd): set node version to 18 for building NPM packages 2024-03-03 23:06:54 +03:00
Orhun Parmaksız
8d2f1fab2b
fix(cd): explicitly set the Homebrew formula path 2024-03-02 21:17:56 +03:00
Orhun Parmaksız
87a04fb437
refactor(cd): simplify checking pre-releases 2024-03-02 21:16:51 +03:00
Orhun Parmaksız
61d055b916
chore(ci): auto-bump the homebrew formula
closes #203
2024-03-02 21:06:48 +03:00
Orhun Parmaksız
18f4923897
chore(ci): enable default features for windows builds 2024-03-02 20:57:38 +03:00
Orhun Parmaksız
a25a1148d9
chore(ci): check semver violations via CI
closes #334
2024-03-02 14:47:09 +03:00
Orhun Parmaksız
b4e7a3400f
feat(args): add --tag-pattern argument (#526)
* feat(args): add `--tag-pattern` argument

* fix: fix typo in the fixture name

* test: update fixture case
2024-03-01 23:09:15 +01:00
Orhun Parmaksız
0e46500199
fix(cd): set the GitHub repository explicitly 2024-02-23 01:10:29 +03:00
Orhun Parmaksız
4f741a7c9e
chore(config): add animation to the header of the changelog 2024-02-22 23:00:30 +03:00
Orhun Parmaksız
1aaa9b2150
fix(cd): do not execute commands for the release changelog 2024-02-22 22:35:33 +03:00
Orhun Parmaksız
30d8e41b06
chore(cd): disable PyPI builds for linux-x86-glibc 2024-02-19 14:40:24 +03:00
Orhun Parmaksız
dc79ed5fe2
fix(cd): use workaround for linux-arm64-glibc maturin builds
https://github.com/PyO3/maturin-action/issues/222
2024-02-18 16:52:30 +03:00
Orhun Parmaksız
e24af123db
fix(cd): disable PyPI publish for linux-arm64-glibc
https://github.com/PyO3/maturin-action/issues/245
2024-02-18 16:43:52 +03:00
Orhun Parmaksız
1647fd82e9
fix(cd): avoid creating artifacts with the same name
https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
2024-02-18 13:42:53 +03:00
Orhun Parmaksız
46b7d880cf
fix(cd): fix embedding examples for crates.io release 2024-02-18 13:35:44 +03:00
dependabot[bot]
46609e49d5
chore(deps): bump codecov/codecov-action from 3 to 4 (#476)
* chore(deps): bump codecov/codecov-action from 3 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* chore(ci): provide codecov token

---------

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-02-17 11:58:05 +01:00
Orhun Parmaksız
7ae77ff0e0
feat(args): add --no-exec flag for skipping command execution (#458)
* feat(args): add `--no-exec` flag for skipping command execution

* refactor(args): reorder arguments
2024-01-20 23:33:49 +01:00
Orhun Parmaksız
ec6035a7e7
refactor(ci): use hardcoded workspace members for cargo-msrv command 2024-01-19 22:19:06 +01:00
Orhun Parmaksız
f04bf6eca1
refactor(ci): simplify cargo-msrv installation 2024-01-19 22:01:26 +01:00
Orhun Parmaksız
131dd10c53
fix(ci): update cargo-msrv arguments 2024-01-19 12:00:28 +03:00
dependabot[bot]
058853ea14
chore(deps): bump actions/cache from 3 to 4 (#453)
Bumps [actions/cache](https://github.com/actions/cache) from 3 to 4.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](https://github.com/actions/cache/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-18 10:30:16 +01:00
Orhun Parmaksız
faa00c6e6c
feat(changelog): improve skipping via .cliffignore and --skip-commit (#413)
* feat(changelog): support `.cliffignore` for skipping commits

* feat(args): add `--skip-commit` argument

* docs(website): add documentation about skipping commits

* refactor: support ignore file for multiple repositories
2023-12-31 15:34:01 +01:00
Orhun Parmaksız
5238326790
feat(github)!: support integration with GitHub repos (#363)
See <https://git-cliff.org/docs/integration/github>

Squashed history:
* feat(github): support integration with GitHub repos
* fix(changelog): fix generation logic
* refactor(github): use verbose logging for errors
* fix(test): update tests accordingly to the render parameters
* feat(github): support deriving upstream URL from the repo
* docs(lib): update the description of the error module
* chore(github): add disclaimer for the github feature
* chore(config): filter the contributors in the github example
* fix(github): make GitHub login field optional
* chore(github): increase the logging verbosity for remote info
* refactor(git): reduce the log level for upstream remote
* feat(github): log the request error
* feat(args): add `--github-repo` argument
* feat(github): add caching for network requests
* feat(github): add progress bar for the network requests
* refactor(github): gate the implementation behind github feature flag
* fix(github): use the local cache for HTTP requests
* feat(github): set TCP keepalive value for HTTP client
* chore(cargo): create update-informer feature
* docs(website): add documentation about available features
* docs(website): reorder installation sections
* fix(config): skip serializing secret
* docs(website): add documentation about GitHub integration
* chore(example): update the style of GitHub config
* docs(website): add github example
* test(fixture): add test fixture for GitHub integration
* test(fixture): run the GitHub integration test
* fix(changelog): print header before fetching GitHub
* feat(github): allow using remote values without fetching GitHub
* chore(example): simplify Keep a Changelog example
* feat(example): add github-keepachangelog example
* chore(example): update the examples in default config
* chore(ci): test all features
* test(github): add unit tests for GitHub integration
* chore(ci): set upstream remote for tests
* chore(ci): show the current git status for test step
* chore(ci): skip git upstream test
* chore(ci): run tests without default features
* chore(ci): skip test with full name
* docs(website): add note about github-keepachangelog format
* chore(ci): skip the faulty git test for all test steps
* refactor(error): update the error type for logger
2023-12-26 20:52:31 +01:00
dependabot[bot]
8af4108204
chore(deps): bump actions/upload-pages-artifact from 2 to 3 (#402)
Bumps [actions/upload-pages-artifact](https://github.com/actions/upload-pages-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-pages-artifact/releases)
- [Commits](https://github.com/actions/upload-pages-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-pages-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-22 21:27:47 +01:00
dependabot[bot]
6c3439be37
chore(deps): bump actions/deploy-pages from 3 to 4 (#401)
Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 3 to 4.
- [Release notes](https://github.com/actions/deploy-pages/releases)
- [Commits](https://github.com/actions/deploy-pages/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/deploy-pages
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-22 21:27:33 +01:00