Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from orhun:main #11

Merged
merged 2 commits into from
Jan 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 57 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
[![animation](https://raw.githubusercontent.com/orhun/git-cliff/main/website/static/img/git-cliff-anim.gif)](https://git-cliff.org)

## [2.8.0](https://github.com/orhun/git-cliff/compare/v2.7.0..v2.8.0) - 2025-01-24

### ⛰️ Features

- *(cli)* Support initializing config with a custom filename ([#992](https://github.com/orhun/git-cliff/issues/992)) - ([76bf9cf](https://github.com/orhun/git-cliff/commit/76bf9cf7aa26b58f2ae68edd007c9885b02af616))
- *(config)* Discover the configuration file when run in a sub directory - ([a23eeb4](https://github.com/orhun/git-cliff/commit/a23eeb480961cd2b252acb7e1e6dc38807458e57))
- *(git)* Improve the set commit range error ([#990](https://github.com/orhun/git-cliff/issues/990)) - ([f29e815](https://github.com/orhun/git-cliff/commit/f29e8150a8166d7364ed71b24675136d2e9bd382))
- *(monorepo)* Automatically set include-path for current directory - ([ceda1f7](https://github.com/orhun/git-cliff/commit/ceda1f753adc3459b88417ae363410d2586a33af))
- *(remote)* Support enabling native TLS ([#1021](https://github.com/orhun/git-cliff/issues/1021)) - ([fe7c464](https://github.com/orhun/git-cliff/commit/fe7c464c3bdbfd4e49f596615d6736ea441a4d16))
- *(repo)* Allow running from sub directories ([#975](https://github.com/orhun/git-cliff/issues/975)) - ([98453b3](https://github.com/orhun/git-cliff/commit/98453b3eee754e1ffe08b685d84c039b17ac8e5e))

### 🐛 Bug Fixes

- *(config)* Allow environment overwrites when using builtin config ([#961](https://github.com/orhun/git-cliff/issues/961)) - ([7ba3b55](https://github.com/orhun/git-cliff/commit/7ba3b55448bdbf7a4a475df2081b6d7c2e2ceb34))
- *(docker)* Use the correct Debian runner - ([36ad993](https://github.com/orhun/git-cliff/commit/36ad993d5956270c0df8c12d201068c1b4d7c580))
- *(fixtures)* Update the arguments for custom GitLab API fixture test - ([e522f8d](https://github.com/orhun/git-cliff/commit/e522f8d9f1efddc43a15120e52a2f1b426468b56))
- *(monorepo)* Do not set include-path if workdir is set ([#1022](https://github.com/orhun/git-cliff/issues/1022)) - ([20483be](https://github.com/orhun/git-cliff/commit/20483be93fbcd33eae3b7b54f625e53796281aff))
- *(remote)* Fix detection of GitLab merge request sha ([#968](https://github.com/orhun/git-cliff/issues/968)) - ([1297655](https://github.com/orhun/git-cliff/commit/12976550d35bad8d535518010046bd136875736b))

### 🚜 Refactor

- *(lib)* Add changelog modifier callback to run function ([#922](https://github.com/orhun/git-cliff/issues/922)) - ([2321882](https://github.com/orhun/git-cliff/commit/2321882b12cc6aae03fbd4f7ea3e131fc8763631))
- *(lint)* Use a shared lint config for the workspace - ([bfc1d4f](https://github.com/orhun/git-cliff/commit/bfc1d4fb8f8bd8faa350ec217f4d09d57c20b12d))
- *(lint)* Apply clippy suggestions - ([299a1c7](https://github.com/orhun/git-cliff/commit/299a1c74b28ac41015bc436de6d37b5ef5d59b04))

### 📚 Documentation

- *(docker)* Fix typo in comment ([#959](https://github.com/orhun/git-cliff/issues/959)) - ([dbda091](https://github.com/orhun/git-cliff/commit/dbda091aa15806523c2be371ec8a31fbba4ccdc7))
- *(highlights)* Add link to the Nix flake - ([c449229](https://github.com/orhun/git-cliff/commit/c449229513da7444ea02fe275f410e4b2048c9ff))
- *(jujutsu)* Update links to the upstream documentation - ([ed6b646](https://github.com/orhun/git-cliff/commit/ed6b64628f4bfd21b32021b3decf842ae14c9f51))
- *(lib)* Allow doc lint - ([62a6d3e](https://github.com/orhun/git-cliff/commit/62a6d3e20cf72c8e2dcc7938894c5c65278e6c4e))
- *(license)* Update copyright years - ([8178c9b](https://github.com/orhun/git-cliff/commit/8178c9b2ca41fb0b974d3387e07b3067256bdb0b))
- *(tips)* Extend the merge commit filter example ([#963](https://github.com/orhun/git-cliff/issues/963)) - ([09c0f90](https://github.com/orhun/git-cliff/commit/09c0f905d8b20b585b0bc8183f14250d1a381ca0))
- *(website)* Add highlights for 2.8.0 ([#1023](https://github.com/orhun/git-cliff/issues/1023)) - ([32dc15e](https://github.com/orhun/git-cliff/commit/32dc15efe5ea8be8f1691fbc16d9e5aaa1c5ebdc))

### 🧪 Testing

- *(fixture)* Add fixture for include-path - ([e85888f](https://github.com/orhun/git-cliff/commit/e85888f5d8dbd4db0674613c4c354416a9be84d1))

### ⚙️ Miscellaneous Tasks

- *(build)* Bump MSRV to 1.83.0 - ([37598c2](https://github.com/orhun/git-cliff/commit/37598c2d417a1646ec90590ab2a1f6d9da66296c))
- *(docker)* Bump the Rust version in Docker image - ([729f433](https://github.com/orhun/git-cliff/commit/729f4336d169e9fc5cdefdb201208638eee17995))
- *(funding)* Add wellKnown directory - ([8704518](https://github.com/orhun/git-cliff/commit/8704518fb71b88fa8985c660e67f77d9a33431c8))
- *(lint)* Allow false positive lint - ([1b779a6](https://github.com/orhun/git-cliff/commit/1b779a698f845cb449da0640aeac45d53c6c43b9))
- *(nix)* Update flakes - ([22fbe9d](https://github.com/orhun/git-cliff/commit/22fbe9dafbbeaa4bd68082787ea8231dbe12c9ae))

## New Contributors ❤️

* @xsadia made their first contribution in [#992](https://github.com/orhun/git-cliff/pull/992)
* @chenrui333 made their first contribution in [#1002](https://github.com/orhun/git-cliff/pull/1002)
* @hackenbergstefan made their first contribution in [#968](https://github.com/orhun/git-cliff/pull/968)
* @paul-uz made their first contribution in [#963](https://github.com/orhun/git-cliff/pull/963)
* @jmartens made their first contribution in [#959](https://github.com/orhun/git-cliff/pull/959)

## [2.7.0](https://github.com/orhun/git-cliff/compare/v2.6.1..v2.7.0) - 2024-11-20

### ⛰️ Features
Expand Down Expand Up @@ -598,7 +653,7 @@
* @woshilapin made their first contribution in [#318](https://github.com/orhun/git-cliff/pull/318)
* @debghs made their first contribution in [#329](https://github.com/orhun/git-cliff/pull/329)
* @dpecos made their first contribution in [#312](https://github.com/orhun/git-cliff/pull/312)
* @liuyinz made their first contribution in [#307](https://github.com/orhun/git-cliff/pull/307)
* @eki3z made their first contribution in [#307](https://github.com/orhun/git-cliff/pull/307)

## [1.3.1](https://github.com/orhun/git-cliff/compare/v1.3.0..v1.3.1) - 2023-09-30

Expand Down Expand Up @@ -1088,7 +1143,7 @@

## New Contributors ❤️

* @MarcoIeni made their first contribution in [#67](https://github.com/orhun/git-cliff/pull/67)
* @marcoieni made their first contribution in [#67](https://github.com/orhun/git-cliff/pull/67)

## [0.6.0](https://github.com/orhun/git-cliff/compare/v0.5.0..v0.6.0) - 2022-02-12

Expand Down
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion git-cliff-core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "git-cliff-core"
version = "2.7.0" # managed by release.sh
version = "2.8.0" # managed by release.sh
description = "Core library of git-cliff"
authors = ["git-cliff contributors <git-cliff@protonmail.com>"]
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions git-cliff/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "git-cliff"
version = "2.7.0" # managed by release.sh
version = "2.8.0" # managed by release.sh
description = "A highly customizable changelog generator ⛰️"
authors = ["git-cliff contributors <git-cliff@protonmail.com>"]
license = "MIT OR Apache-2.0"
Expand Down Expand Up @@ -60,7 +60,7 @@ url.workspace = true
pathdiff = "0.2.3"

[dependencies.git-cliff-core]
version = "2.7.0" # managed by release.sh
version = "2.8.0" # managed by release.sh
path = "../git-cliff-core"

[dev-dependencies]
Expand Down
14 changes: 7 additions & 7 deletions npm/git-cliff/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "git-cliff",
"version": "2.7.0",
"version": "2.8.0",
"description": "A highly customizable Changelog Generator that follows Conventional Commit specifications ⛰️",
"type": "module",
"main": "lib/cjs/index.d.cts",
Expand Down Expand Up @@ -91,12 +91,12 @@
"typescript-eslint": "^8.6.0"
},
"optionalDependencies": {
"git-cliff-darwin-arm64": "2.7.0",
"git-cliff-darwin-x64": "2.7.0",
"git-cliff-linux-arm64": "2.7.0",
"git-cliff-linux-x64": "2.7.0",
"git-cliff-windows-arm64": "2.7.0",
"git-cliff-windows-x64": "2.7.0"
"git-cliff-darwin-arm64": "2.8.0",
"git-cliff-darwin-x64": "2.8.0",
"git-cliff-linux-arm64": "2.8.0",
"git-cliff-linux-x64": "2.8.0",
"git-cliff-windows-arm64": "2.8.0",
"git-cliff-windows-x64": "2.8.0"
},
"packageManager": "yarn@4.1.0",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion website/blog/git-cliff-2.7.0.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
slug: 2.7.0
title: "What's new in 2.7.0? \U0001F195"
title: "What's new in 2.7.0?"
date: 2024-11-20T00:00:00.000Z
authors: orhun
tags:
Expand Down
164 changes: 164 additions & 0 deletions website/blog/git-cliff-2.8.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
---
slug: 2.8.0
title: "What's new in 2.8.0? \U0001F195"
date: 2025-01-24T00:00:00.000Z
authors: orhun
tags:
- release
---

<center>

<a href="https://github.com/orhun/git-cliff">
<img src="/img/git-cliff-anim.gif" />
</a>

</center>

> [**git-cliff**](https://github.com/orhun/git-cliff) is a command-line tool (written in [Rust](https://www.rust-lang.org/)) that provides a highly customizable way to generate changelogs from git history.
>
> It supports using [custom regular expressions](/docs/configuration/git#commit_parsers) to alter changelogs which are mostly based on [conventional commits](/docs/configuration/git#conventional_commits). With a single [configuration file](/docs/configuration), a wide variety of formats can be applied for a changelog, thanks to the Jinja2/Django-inspired [template engine](/docs/category/templating).
>
> More information and examples can be found in the [GitHub repository](https://github.com/orhun/git-cliff).

## What's new? ⛰️

Happy new year! This version of **git-cliff** comes with quality of life improvements and bug fixes.

The full changelog can be found [here](https://github.com/orhun/git-cliff/blob/main/CHANGELOG.md).

---

### 🔥 Improved Monorepo Support

There were numerous improvements to the monorepo support in this release:

1. **git-cliff** now _discovers_ the Git repositories automatically even though when you run from sub directories.

2. The configuration file is now _automatically found_ when running from a sub directory.

3. The `include-path` is now _automatically set_ to the current directory when running from a sub directory.

As a result, the following command:

```bash
$ cd packages/some_library

$ git cliff --include-path "packages/some_library/**/*" --repository "../../"
```

becomes:

```bash
$ cd packages/some_library

$ git cliff # just works!
```

---

### 🛡️ Native TLS Support

**git-cliff** now supports enabling native TLS for remote requests. This is useful when you rely on a corporate trust root (e.g., for a mandatory proxy) that's included in your system's certificate store.

To enable it:

```bash
$ git cliff --use-native-tls
```

Or configure it in your `cliff.toml`:

```toml
[remote.gitlab]
owner = "archlinux"
repo = "arch-repro-status"
api_url = "https://gitlab.archlinux.org/api/v4"
native_tls = true
```

---

### ⚙️ Custom Config Name

You can now specify a custom filename for the configuration while initializing **git-cliff**:

```bash
$ git-cliff --init --config custom.toml
```

---

### 🚨 Better Errors

Before:

```
$ git cliff test
ERROR git_cliff > Git error: `unable to parse OID - contains invalid characters; class=Invalid (3)`
```

After:

```
$ git cliff test
ERROR git_cliff > Failed to set the commit range: unable to parse OID - contains invalid characters; class=Invalid (3)
"test" is not a valid commit range. Did you provide the correct arguments?
```

---

### 🔄 Run with Callback API

If you are using **git-cliff** in your Rust project as a library, you can now run it with a callback function to modify the changelog before it's printed:

```rust
use clap::Parser;
use git_cliff::args::Opt;
use git_cliff_core::error::Result;

fn main() -> Result<()> {
let args = Opt::parse();

git_cliff::run_with_changelog_modifier(args, |changelog| {
println!("Releases: {:?}", changelog.releases);
Ok(())
})?;

Ok(())
}
```

---

### 🧰 Other

- _(config)_ Allow environment overwrites when using builtin config ([#961](https://github.com/orhun/git-cliff/issues/961)) - ([7ba3b55](https://github.com/orhun/git-cliff/commit/7ba3b55448bdbf7a4a475df2081b6d7c2e2ceb34))
- _(remote)_ Fix detection of GitLab merge request sha ([#968](https://github.com/orhun/git-cliff/issues/968)) - ([1297655](https://github.com/orhun/git-cliff/commit/12976550d35bad8d535518010046bd136875736b))
- _(tips)_ Extend the merge commit filter example ([#963](https://github.com/orhun/git-cliff/issues/963)) - ([09c0f90](https://github.com/orhun/git-cliff/commit/09c0f905d8b20b585b0bc8183f14250d1a381ca0))
- _(build)_ Bump MSRV to 1.83.0 - ([37598c2](https://github.com/orhun/git-cliff/commit/37598c2d417a1646ec90590ab2a1f6d9da66296c))

---

## Contributions 👥

- @xsadia made their first contribution in [#992](https://github.com/orhun/git-cliff/pull/992)
- @chenrui333 made their first contribution in [#1002](https://github.com/orhun/git-cliff/pull/1002)
- @hackenbergstefan made their first contribution in [#968](https://github.com/orhun/git-cliff/pull/968)
- @paul-uz made their first contribution in [#963](https://github.com/orhun/git-cliff/pull/963)
- @jmartens made their first contribution in [#959](https://github.com/orhun/git-cliff/pull/959)

Any contribution is highly appreciated! See the [contribution guidelines](https://github.com/orhun/git-cliff/blob/main/CONTRIBUTING.md) for getting started.

Feel free to [submit issues](https://github.com/orhun/git-cliff/issues/new/choose) and join our [Discord](https://discord.gg/W3mAwMDWH4) / [Matrix](https://matrix.to/#/#git-cliff:matrix.org) for discussion!

Follow `git-cliff` on [Twitter](https://twitter.com/git_cliff) & [Mastodon](https://fosstodon.org/@git_cliff) to not miss any news!

## Support 🌟

If you liked `git-cliff` and/or my other projects [on GitHub](https://github.com/orhun), consider [donating](https://donate.orhun.dev) to support my open source endeavors.

- 💖 GitHub Sponsors: [@orhun](https://github.com/sponsors/orhun)
- ☕ Buy Me A Coffee: [https://www.buymeacoffee.com/orhun](https://www.buymeacoffee.com/orhun)

Have a fantastic day! ⛰️
2 changes: 1 addition & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const config = {
],
},
announcementBar: {
content: `⛰️ <b><a target="_blank" href="https://git-cliff.org/blog/2.7.0">git-cliff v2.7.0</a> is now out!</b> 🥳️`,
content: `⛰️ <b><a target="_blank" href="https://git-cliff.org/blog/2.8.0">git-cliff v2.8.0</a> is now out!</b> 🥳️`,
backgroundColor: "#243840",
textColor: "#ffffff",
isCloseable: true,
Expand Down
Loading