Skip to content

Commit 940dce2

Browse files
authored
Handle merge conflicts
2 parents 3941074 + 465ccc7 commit 940dce2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2832
-2597
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ updates:
1313
- "gix-*"
1414
schedule:
1515
interval: "weekly"
16+
open-pull-requests-limit: 10
1617
- package-ecosystem: "github-actions"
1718
directory: "/"
1819
schedule:

.github/wiki/Command-line-options.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ VISUALS:
134134
--no-art
135135
Hides the ascii art or image if provided
136136
137+
--nerd-fonts
138+
Use Nerd Font icons
139+
140+
Replaces language chips with Nerd Font icons
141+
137142
DEVELOPER:
138143
-o, --output <FORMAT>
139144
Outputs Onefetch in a specific format

.github/wiki/Installation.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ If your architecture is supported by the pre-built binaries, you can download th
3333

3434
## Build from source
3535

36-
First, install `rustup` to get the `rust` compiler installed on your system (using the recommended `curl https://sh.rustup.rs -sSf | sh -s` installation method) and then
36+
First, install rust toolchain with [rustup](https://rustup.rs/):
37+
38+
```shell
39+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
40+
```
3741

3842
> [!IMPORTANT]
3943
> Ensure [CMake](https://cmake.org/download/) is installed.
@@ -46,7 +50,11 @@ make install
4650

4751
## Cargo
4852

49-
First, install `rustup` to get the `rust` compiler installed on your system (using the recommended `curl https://sh.rustup.rs -sSf | sh -s` installation method) and then
53+
First, install rust toolchain with [rustup](https://rustup.rs/):
54+
55+
```shell
56+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
57+
```
5058

5159
> [!IMPORTANT]
5260
> Ensure [CMake](https://cmake.org/download/) is installed.

.github/workflows/cd.yml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: CD
22
on:
33
release:
44
types: [published]
5+
env:
6+
CARGO_TERM_COLOR: always
57

68
jobs:
79
deploy:
@@ -54,10 +56,43 @@ jobs:
5456
formula-name: onefetch
5557

5658
- name: Publish executable to WinGet
57-
uses: vedantmgoyal2009/winget-releaser@v2
59+
uses: vedantmgoyal9/winget-releaser@main
5860
if: matrix.os == 'windows-latest'
5961
with:
6062
identifier: o2sh.onefetch
6163
installers-regex: '\.exe$'
6264
version: ${{ github.event.release.tag_name }}
6365
token: ${{ secrets.WINGET_TOKEN }}
66+
67+
cargo-publish:
68+
name: Publish to crates.io
69+
runs-on: ubuntu-latest
70+
71+
steps:
72+
- uses: actions/checkout@v4
73+
74+
- name: Install Rust
75+
uses: dtolnay/rust-toolchain@v1
76+
with:
77+
toolchain: stable
78+
components: clippy
79+
80+
- name: Publish to crates.io (ascii)
81+
env:
82+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
83+
run: cargo publish -p onefetch-ascii
84+
85+
- name: Publish to crates.io (image)
86+
env:
87+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
88+
run: cargo publish -p onefetch-image
89+
90+
- name: Publish to crates.io (manifest)
91+
env:
92+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
93+
run: cargo publish -p onefetch-manifest
94+
95+
- name: Publish to crates.io
96+
env:
97+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
98+
run: cargo publish

.github/workflows/stale.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/vercel-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 16.x
26+
node-version: 20
2727
cache: npm
2828
cache-dependency-path: docs/vercel/package-lock.json
2929

CHANGELOG.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,94 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
## 2.22.0 (2024-09-20)
11+
12+
### New Features 🎉
13+
14+
- Add support for nerd font glyphs in languages info by @Localghost385 in https://github.com/o2sh/onefetch/pull/1395
15+
- [onefetch.dev] Add nerdfont iconts to the preview by @Localghost385 in https://github.com/o2sh/onefetch/pull/1411
16+
- Automate publishing crates to crates.io by @musicinmybrain in https://github.com/o2sh/onefetch/pull/1364
17+
18+
### Bug Fixes 🐛
19+
20+
- Show future commit dates without panicking by @MalteT in https://github.com/o2sh/onefetch/pull/1389
21+
22+
### Chores 🧹
23+
24+
- Re-generate the man page with --no-info by @musicinmybrain in https://github.com/o2sh/onefetch/pull/1376
25+
- Drop unused shebangs from repo test fixture scripts by @musicinmybrain in https://github.com/o2sh/onefetch/pull/1375
26+
27+
### Commit Statistics
28+
29+
<csr-read-only-do-not-edit/>
30+
31+
- 3 commits contributed to the release.
32+
- 135 days passed between releases.
33+
- 0 commits were understood as [conventional](https://www.conventionalcommits.org).
34+
- 3 unique issues were worked on: [#1389](https://github.com/o2sh/onefetch/issues/1389), [#1395](https://github.com/o2sh/onefetch/issues/1395), [#1404](https://github.com/o2sh/onefetch/issues/1404)
35+
36+
### Commit Details
37+
38+
<csr-read-only-do-not-edit/>
39+
40+
<details><summary>view details</summary>
41+
42+
- **[#1389](https://github.com/o2sh/onefetch/issues/1389)**
43+
- Show future commit dates without panicking ([`61ab298`](https://github.com/o2sh/onefetch/commit/61ab2982bddb698f31ab78e7b3134d5f959d014e))
44+
- **[#1395](https://github.com/o2sh/onefetch/issues/1395)**
45+
- Add support for nerd font glyphs in languages info ([`6bf1807`](https://github.com/o2sh/onefetch/commit/6bf18079ec85ee920db689c7e2b36ecaedd123a2))
46+
- **[#1404](https://github.com/o2sh/onefetch/issues/1404)** - Bump gix from 0.64.0 to 0.66.0 in the gix group ([`19f77b2`](https://github.com/o2sh/onefetch/commit/19f77b2b2c529cb14d01321c22bf6e00fce02164))
47+
</details>
48+
49+
## 2.21.0 (2024-05-08)
50+
51+
### New Features 🎉
52+
53+
- Add CLI option to force URL format to HTTP instead of SSH by @0spotter0 in https://github.com/o2sh/onefetch/pull/1314
54+
- Add CLI flag to hide token from repository URL by @o2sh in https://github.com/o2sh/onefetch/pull/1319
55+
- Make Lua logo more readable on dark terminal by @o2sh in https://github.com/o2sh/onefetch/pull/1337
56+
57+
### Bug Fixes 🐛
58+
59+
- Fix deadlock in Churn computation by @Nettifani in https://github.com/o2sh/onefetch/pull/1316
60+
- Exclude bot commits from churn when `--no-bots` option is used by @o2sh in https://github.com/o2sh/onefetch/pull/1335
61+
62+
### Chores 🧹
63+
64+
- [onefetch.dev] switch to dark theme by @o2sh in https://github.com/o2sh/onefetch/pull/1297
65+
- RUSTSEC-2024-0320: remove yaml-rust dependency by @Suyun114 in https://github.com/o2sh/onefetch/pull/1309
66+
- Refactor `--no-bots` CLI option by @o2sh in https://github.com/o2sh/onefetch/pull/1340
67+
68+
### Commit Statistics
69+
70+
<csr-read-only-do-not-edit/>
71+
72+
- 7 commits contributed to the release.
73+
- 51 days passed between releases.
74+
- 0 commits were understood as [conventional](https://www.conventionalcommits.org).
75+
- 7 unique issues were worked on: [#1314](https://github.com/o2sh/onefetch/issues/1314), [#1316](https://github.com/o2sh/onefetch/issues/1316), [#1318](https://github.com/o2sh/onefetch/issues/1318), [#1319](https://github.com/o2sh/onefetch/issues/1319), [#1335](https://github.com/o2sh/onefetch/issues/1335), [#1338](https://github.com/o2sh/onefetch/issues/1338), [#1340](https://github.com/o2sh/onefetch/issues/1340)
76+
77+
### Commit Details
78+
79+
<csr-read-only-do-not-edit/>
80+
81+
<details><summary>view details</summary>
82+
83+
- **[#1314](https://github.com/o2sh/onefetch/issues/1314)**
84+
- Add cli option --force-url-http for URL display ([`5000452`](https://github.com/o2sh/onefetch/commit/5000452d8b732ecdc5e28ef8d912d2801ff1f6f9))
85+
- **[#1316](https://github.com/o2sh/onefetch/issues/1316)**
86+
- Fix churn thread deadlock ([`8c1ad74`](https://github.com/o2sh/onefetch/commit/8c1ad744c4c474f6fb4e35547dc5b72e9b6fafce))
87+
- **[#1318](https://github.com/o2sh/onefetch/issues/1318)**
88+
- Bump gix from 0.61.0 to 0.62.0 ([`3e40b97`](https://github.com/o2sh/onefetch/commit/3e40b97b42b4ed67f52f428d8a51555030705260))
89+
- **[#1319](https://github.com/o2sh/onefetch/issues/1319)**
90+
- Add CLI flag to hide token from repository URL ([`8ef64d4`](https://github.com/o2sh/onefetch/commit/8ef64d4a591512fce89840f07a520f8dfc152f8f))
91+
- **[#1335](https://github.com/o2sh/onefetch/issues/1335)**
92+
- Exclude bot commits from churn when `--no-bots` option is used ([`1775cc1`](https://github.com/o2sh/onefetch/commit/1775cc1c328c02f24b335d79f6d423733117ceb2))
93+
- **[#1338](https://github.com/o2sh/onefetch/issues/1338)**
94+
- Use Option<&T> instead of &Option<T> ([`2c76c06`](https://github.com/o2sh/onefetch/commit/2c76c06583692114314550dca4f824d3537a10a4))
95+
- **[#1340](https://github.com/o2sh/onefetch/issues/1340)** - Init ([`2bc5aed`](https://github.com/o2sh/onefetch/commit/2bc5aed55b81922d9d4309d1a82ccaaf174d6a0d))
96+
</details>
97+
1098
## 2.20.0 (2024-03-17)
1199

12100
This version marks the completion of the transition from [`git2`](https://crates.io/crates/git2) to [`gitoxide`](https://crates.io/crates/gix). No more dependency to git2, onefetch is now fully oxidized! 🎉

CONTRIBUTING.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ CSharp: # required, this will be the name of the enum variant for the language a
4848
- "#803788"
4949
- "#FFFFFF"
5050
chip: "#178600" # required, this is used for the language breakdown bar, its value can be found in linguist (link 2).
51+
icon: '\u{E648}' # optional, the UTF-16 code point of the nerd font icon if supported (link 3).
5152
serialization: c# # required only if the Enum name `CSharp` doesn't match the display name `C#`
5253
```
5354
@@ -60,6 +61,7 @@ CSharp: # required, this will be the name of the enum variant for the language a
6061

6162
- link 1: https://github.com/XAMPPRocky/tokei#supported-languages
6263
- link 2: https://github.com/github/linguist/blob/master/lib/linguist/languages.yml
64+
- link 3: https://www.nerdfonts.com/cheat-sheet
6365

6466
### Adding translation for README.md
6567

0 commit comments

Comments
 (0)