1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-25 10:42:43 +03:00
Commit Graph

1272 Commits

Author SHA1 Message Date
Orhun Parmaksız
b6b544949d
docs(website): add highlights for 2.7.0 (#955) 2024-11-20 13:37:16 +03:00
Orhun Parmaksız
7654e67d97
chore(nix): update flakes 2024-11-19 20:58:19 +03:00
Orhun Parmaksız
7308bcf8c0
refactor(clippy): apply clippy suggestions 2024-11-19 20:49:12 +03:00
Orhun Parmaksız
c28121c1aa
chore(docker): bump the Rust version in Docker image 2024-11-19 20:48:03 +03:00
Orhun Parmaksız
483627eae6
chore(deps): bump dependencies 2024-11-19 20:48:03 +03:00
Orhun Parmaksız
237c327839
chore(integration): remove experimental feature disclaimer 2024-11-19 20:48:03 +03:00
Paul Iyobo
6d86e2c942
feat(config): allow overriding the remote API URL via config (#896)
* Added api_url configuration to RemoteConfig

* Added api_url remote config parameter to the documentation

* Fmt

* Readded use statement erroneously removed

* chore: bring back https in gitlab link

* docs(website): add missing dot to remote docs

* refactor(remote): clean up constant handling

* fix: fix the behavior and add fixture test

* docs: add example of api_url

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-11-19 20:12:52 +03:00
Gautier DI FOLCO
d0848ff040
feat(ci): add Nix CI (#939) 2024-11-06 17:51:20 +03:00
Muhammad Owais Warsi
c1f12154e7
docs(git): improve docs for commit_preprocessors and commit_parsers (#928) 2024-11-03 19:51:57 +03:00
Paul Campbell
ab95626394
feat(jujutsu): add jujustu support (#930)
* feat: jujustu support

If the .git directory can't be opened (usually because the `.git` directory is missing) it attempts to find the git repository in the location used by Jujutsu (i.e. `.jj/repo/store/git`). If the Jujutsu git directory doesn't exist, then the origin error is propogated.
CODE

test: add unit tests for opening jujutsu repo
Update git-cliff-core/src/repo.rs

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
Update git-cliff-core/src/repo.rs

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
Update git-cliff-core/src/repo.rs

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
Update git-cliff-core/src/repo.rs

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

* docs: Add page to website for jujutsu

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-11-01 11:33:31 +03:00
Paul Campbell
0fabf22c52
perf(test): don't create regex inside a loop (#937) 2024-10-29 09:46:58 +03:00
Orhun Parmaksız
a9b26901e3
chore(log): add trace log about which command is being run 2024-10-25 20:13:13 +03:00
Matthew Warman
99b78b52f2
fix(remote): preserve first time contributors (#925)
* fix(remote): preserve first time contributors

* fix: update based on clippy feedback

* docs: add new-contributors back in

* refactor: switch to using time

- add test for timestamp method as well

* refactor: polish implementation

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-21 23:49:46 +03:00
Paul Campbell
2e65a72bb0
test(git): find upstream remote when using ssh (#926)
* feat: find upstream remote when using ssh

The `upstream_remote` function was relying on `url::Url::parse` to extract the `owner` and `repo` from the `url`. But that only works when the repo is cloned using a URL, e.g. `https://github.com/orhun/git-cliff.git`. However, this would fail to parse when cloned using SSH, e.g. `git@github.com:orhun/git-cliff.git`.

If the url::URL::parser fails, we now try to parse an SSH remote in the format `git@hostname:owner/repo.git`.

The error from `upstream_remote` also notes that a posible reason for it failing would be that the `HEAD` is detached.

* Update git-cliff-core/src/repo.rs

* Update git-cliff-core/src/repo.rs

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-21 23:29:39 +03:00
Orhun Parmaksız
82b10ac22c
docs(readme): add blog post about git-cliff 2024-10-17 12:02:50 +03:00
Orhun Parmaksız
0c207d606e
chore(website): add new testimonials 2024-10-17 12:02:40 +03:00
Orhun Parmaksız
12cb1df561
chore(config): add the 'other' parser to the default config 2024-10-17 11:38:17 +03:00
LtdSauce
84771f63d0
feat(docker): build arm64 images again (#879) (#919)
* chore(docker): ignore rust toolchain in docker builds

This commit adds the known names of the rust-toolchain files to the
.dockerignore file. This has two reasons why it makes sense:

- The initial docker layer already has a set up rust toolchain that is
  sufficient to build the project. Thus, by providing a toolchain file,
  the toolchain would be installed again during docker build.
- Currently cargo-chef only copies the toolchain files during cooking
  but it gets not used during the building of the dependencies in the
  cook call, see
  https://github.com/LukeMathWalker/cargo-chef/issues/271.
  With this in mind, currently the dependencies were actually build
  twice. Once with the installed toolchain from the image itself, and
  then in the actual cargo build call with the toolchain speciefied in
  the toolchain file. Building them twice resulted in timeouts when
  building the arm64 images as they are emulated using qemu, which is
  itself already slower than building natively.

Now one could argue, that as soon as the mentioned issue is solved using
the toolchain again would be fine. But then it would be still needed to
assemble the Dockerfile in a way that the toolchain is not build twice.
Because the current structure of the Dockerfile builds the toolchain
once in the cargo-chef prepare step and once during the cargo build step
(and would later build it during the cargo-chef cook instead of cargo
build).

With all this in mind using no toolchain file but instead just using
the sufficient rust installation from the base image makes sense.

* Revert "chore(docker): disable building arm64 docker images temporarily (#879)"

This reverts commit cde2a8e322.
Commit 73f75d5289 made it possible to
build the arm64 image again without running into timeouts.
2024-10-17 11:05:05 +03:00
Dương Quốc Khánh
f8641ee8f7
fix(changelog): fix missing commit fields in context (#837) (#920)
* feat(commit): add `raw_message` to `Commit`

* test(fixtures): add test generate all fields in conventional commits

* test(fixtures): add test do not discard missing fields in conventional
commits when reading from context

* docs(website): add `raw_message` fields to `context.md`
2024-10-17 10:56:41 +03:00
Gautier DI FOLCO
6b1773685f
feat(nix): add a basic Nix environment (#918)
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-16 13:52:03 +03:00
Orhun Parmaksız
b6048835b2
refactor(clippy): apply clippy suggestions 2024-10-13 13:21:42 +02:00
Orhun Parmaksız
9cc044590f
chore(npm): update yarn.lock 2024-10-13 13:13:24 +02:00
Garrett Squire
da1cb61c91
test(repo): expand unit tests of the repo module (#909) 2024-10-09 03:07:21 +03:00
Matthew Warman
e936ed5715
fix(bitbucket): match PR and release metadata correctly (#907)
* fix(bitbucket): pull requests release metadata not matched correctly

- update BitbucketPullRequest struct to use merge_commit
- update metadata matching to support short sha format
- add tests for Bitbucket remote

* test: update bitbucket fixture to include pr test

* chore(fixture): use link in bitbucket fixture

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-07 09:47:02 +03:00
Rareș Cosma
508a97edb0
fix(changelog): include the root commit when --latest is used with one tag (#901)
* feat(git): latest with one tag should include root

* feat(git): test root commit with one tag

* feat(git): remove the include_root boolean flag

Use the fact that a range contains (or doesn't) contain
".." as a discriminant between the two cases:

- ".." means full (left-exclusive) range between two commits;
- no ".." means everything from the root commit (inclusive) to
the commit sha in the range

* fix: remove unnecessary reference

* nit: gentler English in comment
2024-10-05 12:43:59 +03:00
dependabot[bot]
f5c39a2782
chore(deps): bump clap from 4.5.18 to 4.5.19 (#900)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.18 to 4.5.19.
- [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.18...clap_complete-v4.5.19)

---
updated-dependencies:
- dependency-name: clap
  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-10-02 11:07:55 +03:00
Josh McKinney
f4234844bf
feat(args): add color to the help text (#897)
* feat: add color to the help text

* fix: use colors closer to logo colors

* style: update placeholder color

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-10-01 19:34:02 +03:00
Orhun Parmaksız
bfe9beb093
docs(website): add more testimonials 2024-09-29 21:18:02 +03:00
Orhun Parmaksız
ef2374cab1
feat(website): add user testimonials (#895) 2024-09-29 20:57:22 +03:00
Vasilii A
bcc32ca5d1
docs(website): update sourcehut (#894) 2024-09-29 10:14:43 +03:00
Orhun Parmaksız
076feb74b4
chore(release): prepare for v2.6.1 2024-09-27 18:40:27 +03:00
Nejc Galof
8d10edb745
chore(ci): update pedantic lint command (#890)
* chore(ci): update pedantic lint command

* refactor(clippy): Fix basic clippy lints (new version)

* chore(ci): Try multiple lines on yml way

* chore(ci): format ci.yml
2024-09-27 17:33:08 +03:00
ckrenslehner
58dc1087ed
docs(website): add conversion to pdf to tips-and-tricks (#889)
* docs: add conversion to pdf to tips-and-tricks

* Update website/docs/tips-and-tricks.md

* Update website/docs/tips-and-tricks.md

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-09-27 17:03:02 +03:00
Orhun Parmaksız
dfe4459c5c
docs(website): add get_env filter example for GitLab CI 2024-09-26 11:23:56 +03:00
Nejc Galof
d7b2d031c4
refactor(clippy): apply doc_markdown and ignored_unit_patterns lint (#887) 2024-09-26 10:38:19 +03:00
DaniPopes
a394f88f1d
chore(fixtures): build binaries using dev profile (#886) 2024-09-25 17:57:59 +03:00
Nejc Galof
8b7c20083a
refactor(clippy): apply if_not_else lint (#882) 2024-09-25 11:48:36 +03:00
Orhun Parmaksız
a344c68238
fix(remote): avoid setting multiple remotes (#885) 2024-09-25 10:35:06 +03:00
dependabot[bot]
a5786bea61
chore(deps): bump thiserror from 1.0.63 to 1.0.64 (#881)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.63 to 1.0.64.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.63...1.0.64)

---
updated-dependencies:
- dependency-name: thiserror
  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-24 02:07:07 +03:00
Jeroen Claassens
e21fb1d389
fix(npm): add missing --use-branch-tags flag to TS options (#874)
Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
2024-09-23 21:57:57 +03:00
Orhun Parmaksız
cde2a8e322
chore(docker): disable building arm64 docker images temporarily (#879) 2024-09-23 21:47:42 +03:00
Orhun Parmaksız
3e479c84a8
chore(npm): update yarn.lock 2024-09-23 21:33:47 +03:00
Nejc Galof
2d491f4cc8
refactor(clippy): apply assigning_clones lint (#876) 2024-09-23 21:32:20 +03:00
Nejc Galof
002ae3c5de
refactor(clippy): apply single_match_else lint (#878) 2024-09-23 21:30:43 +03:00
Nejc Galof
8dca30929c
refactor(clippy): apply needless_pass_by_value lint (#877) 2024-09-23 21:27:13 +03:00
Orhun Parmaksız
37fb43dd90
chore(release): prepare for v2.6.0 2024-09-22 08:11:52 +02:00
Orhun Parmaksız
050fb55e86
docs(website): add highlights for 2.6.0 (#873)
* docs(website): add highlights for 2.6.0

* chore(fixture): use correct date
2024-09-22 09:08:44 +03:00
Orhun Parmaksız
ad039d56b6
feat(config): add changelog.render_always option (#859)
* feat(config): add changelog.always_render option

* chore(fixtures): fix typo in arguments

* chore(fixture): update expected output

* chore: fix edge cases

* fix: add missing field

* refactor: rename always_render to render_always
2024-09-21 21:06:27 +03:00
Orhun Parmaksız
470ff53604
chore(deps): bump dependencies 2024-09-21 19:58:24 +02:00
Orhun Parmaksız
fbb643b2e1
fix(changelog): do not change the tag date if tag already exists (#861)
* fix(changelog): do not change the tag date if it already exists

* fix: fix logic

* refactor: revert the assignment
2024-09-21 20:47:03 +03:00