Skip to content

Commit 0fda257

Browse files
committed
build: build auto
1 parent 5aa6153 commit 0fda257

File tree

7 files changed

+128
-23
lines changed

7 files changed

+128
-23
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: Binbiubiubiu

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,20 @@ jobs:
5050
# When updating this list, the reminder to update the target list in ci.yml.
5151
include:
5252
- target: aarch64-unknown-linux-gnu
53+
os: ubuntu-latest
5354
- target: aarch64-unknown-linux-musl
55+
os: ubuntu-latest
5456
- target: aarch64-apple-darwin
5557
os: macos-latest
5658
- target: x86_64-unknown-linux-gnu
59+
os: ubuntu-latest
5760
- target: x86_64-unknown-linux-musl
61+
os: ubuntu-latest
5862
- target: x86_64-apple-darwin
5963
os: macos-latest
6064
- target: x86_64-pc-windows-msvc
6165
os: windows-latest
62-
runs-on: ${{ matrix.os || 'ubuntu-latest' }}
66+
runs-on: ${{ matrix.os }}
6367
steps:
6468
- uses: actions/checkout@v3
6569
with:

.pre-commit-config.yaml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
fail_fast: false
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v2.3.0
4+
rev: v4.3.0
55
hooks:
66
- id: check-byte-order-marker
77
- id: check-case-conflict
@@ -11,10 +11,10 @@ repos:
1111
- id: end-of-file-fixer
1212
- id: mixed-line-ending
1313
- id: trailing-whitespace
14-
- repo: https://github.com/crate-ci/typos
15-
rev: v1.8.1
14+
- repo: https://github.com/psf/black
15+
rev: 22.10.0
1616
hooks:
17-
- id: typos
17+
- id: black
1818
- repo: local
1919
hooks:
2020
- id: cargo-fmt
@@ -27,10 +27,17 @@ repos:
2727
- id: cargo-deny
2828
name: cargo deny check
2929
description: Check cargo dependencies
30-
entry: bash -c 'cargo deny check'
30+
entry: bash -c 'cargo deny check -d'
3131
language: rust
3232
files: \.rs$
3333
args: []
34+
- id: typos
35+
name: typos
36+
description: check typo
37+
entry: bash -c 'typos'
38+
language: rust
39+
files: \.*$
40+
pass_filenames: false
3441
- id: cargo-check
3542
name: cargo check
3643
description: Check the package for errors.
@@ -51,4 +58,4 @@ repos:
5158
entry: bash -c 'cargo nextest run --all-features'
5259
language: rust
5360
files: \.rs$
54-
pass_filenames: false
61+
pass_filenames: false

CHANGELOG.md

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,52 +2,66 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## v0.0.8 (2023-02-11)
5+
## [unreleased]
66

77
### New feature:
88

9-
- add command `upgrade` to upgrade self version([`68fb753`](https://github.com/Binbiubiubiu/git-semver-tags/commit/68fb7536383dd69a2c242801f854266c5ba757d4)) (by Binbiubiubiu)
9+
- add command `upgrade` to upgrade self version ([`68fb753`](https://github.com/Binbiubiubiu/git-semver-tags/commit/68fb7536383dd69a2c242801f854266c5ba757d4) by Binbiubiubiu)
10+
1011

1112
## v0.0.7 (2022-12-03)
1213

1314
### Bugs fixed:
1415

15-
- fix support cargo-binstall([`7069a3e`](https://github.com/Binbiubiubiu/git-semver-tags/commit/7069a3e81bf1f1c6049514a0e0ff14af5c38ebdb)) (by Binbiubiubiu)
16+
- fix support cargo-binstall ([`7069a3e`](https://github.com/Binbiubiubiu/git-semver-tags/commit/7069a3e81bf1f1c6049514a0e0ff14af5c38ebdb) by Binbiubiubiu)
17+
1618

1719
## v0.0.6 (2022-12-03)
1820

1921
### Bugs fixed:
2022

21-
- fix support cargo-binstall([`9291bdb`](https://github.com/Binbiubiubiu/git-semver-tags/commit/9291bdbb2c0708caea7574ab222ebc999745cb78)) (by Binbiubiubiu)
23+
- fix support cargo-binstall ([`9291bdb`](https://github.com/Binbiubiubiu/git-semver-tags/commit/9291bdbb2c0708caea7574ab222ebc999745cb78) by Binbiubiubiu)
24+
2225

2326
## v0.0.5 (2022-12-03)
2427

2528
### Bugs fixed:
2629

27-
- fix support cargo-binstall([`c38f31d`](https://github.com/Binbiubiubiu/git-semver-tags/commit/c38f31d90ba31469e2d1f87cc8893c3efa18e268)) (by Binbiubiubiu)
30+
- fix support cargo-binstall ([`c38f31d`](https://github.com/Binbiubiubiu/git-semver-tags/commit/c38f31d90ba31469e2d1f87cc8893c3efa18e268) by Binbiubiubiu)
31+
2832

2933
## v0.0.4 (2022-12-03)
3034

3135
### New feature:
3236

33-
- support cargo-binstall([`6aba9db`](https://github.com/Binbiubiubiu/git-semver-tags/commit/6aba9dbbc3bf83f3cb90764b386176a528434816)) (by Binbiubiubiu)
37+
- support cargo-binstall ([`6aba9db`](https://github.com/Binbiubiubiu/git-semver-tags/commit/6aba9dbbc3bf83f3cb90764b386176a528434816) by Binbiubiubiu)
3438

35-
## v0.0.3 (2022-12-03)
39+
40+
## v0.0.3 (2022-12-02)
3641

3742
### Bugs fixed:
3843

39-
- fix windows tests([`01e5c01`](https://github.com/Binbiubiubiu/git-semver-tags/commit/01e5c01ffe3fc0fcf91e294d1b3bb4cbc2f06270)) (by Binbiubiubiu)
40-
- fix tests([`e6c45cd`](https://github.com/Binbiubiubiu/git-semver-tags/commit/e6c45cd5c9b548f01ed67c03236b209b9b96f549)) (by Binbiubiubiu)
41-
- fix test([`47ecac5`](https://github.com/Binbiubiubiu/git-semver-tags/commit/47ecac574b86ee88d07709ca7cc399a2ad21cb96)) (by Binbiubiubiu)
44+
- fix test ([`47ecac5`](https://github.com/Binbiubiubiu/git-semver-tags/commit/47ecac574b86ee88d07709ca7cc399a2ad21cb96) by Binbiubiubiu)
45+
46+
- fix tests ([`e6c45cd`](https://github.com/Binbiubiubiu/git-semver-tags/commit/e6c45cd5c9b548f01ed67c03236b209b9b96f549) by Binbiubiubiu)
47+
48+
- fix windows tests ([`01e5c01`](https://github.com/Binbiubiubiu/git-semver-tags/commit/01e5c01ffe3fc0fcf91e294d1b3bb4cbc2f06270) by Binbiubiubiu)
49+
4250

4351
## v0.0.2 (2022-11-20)
4452

53+
### Bugs fixed:
54+
55+
- 修复文档问题 ([`4bd8445`](https://github.com/Binbiubiubiu/git-semver-tags/commit/4bd844509740e9585eda3ff9d9e0f995e9366a52) by Binbiubiubiu)
56+
57+
- 删除多余的配置 ([`422bc34`](https://github.com/Binbiubiubiu/git-semver-tags/commit/422bc341c92f136dd868df3167564e608add4533) by Binbiubiubiu)
58+
59+
4560
### New feature:
4661

47-
- 完成([`3031b86`](https://github.com/Binbiubiubiu/git-semver-tags/commit/3031b86b5d9ec95c14d6379304c9f6516f308dea)) (by Binbiubiubiu)
48-
- init project([`86d76db`](https://github.com/Binbiubiubiu/git-semver-tags/commit/86d76db316ce2772f3fdc3442f90a2504fd10361)) (by Binbiubiubiu)
62+
- init project ([`86d76db`](https://github.com/Binbiubiubiu/git-semver-tags/commit/86d76db316ce2772f3fdc3442f90a2504fd10361) by Binbiubiubiu)
63+
64+
- 完成 ([`3031b86`](https://github.com/Binbiubiubiu/git-semver-tags/commit/3031b86b5d9ec95c14d6379304c9f6516f308dea) by Binbiubiubiu)
4965

50-
### Bugs fixed:
5166

52-
- 删除多余的配置([`422bc34`](https://github.com/Binbiubiubiu/git-semver-tags/commit/422bc341c92f136dd868df3167564e608add4533)) (by Binbiubiubiu)
53-
- 修复文档问题([`4bd8445`](https://github.com/Binbiubiubiu/git-semver-tags/commit/4bd844509740e9585eda3ff9d9e0f995e9366a52)) (by Binbiubiubiu)
67+
<!-- generated by git-cliff -->

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "git-semver-tags"
3-
version = "0.0.6"
3+
version = "0.0.8"
44
description = "Get all git semver tags of your repository in reverse chronological order"
55
authors = ["Binbiubiubiu<[email protected]>"]
66
categories = ["command-line-utilities"]

cliff.toml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# configuration file for git-cliff (0.1.0)
2+
3+
[changelog]
4+
# changelog header
5+
header = """
6+
# Changelog\n
7+
All notable changes to this project will be documented in this file.\n
8+
"""
9+
# template for the changelog body
10+
# https://tera.netlify.app/docs/#introduction
11+
body = """
12+
{% if version %}\
13+
## {{ version }} ({{ timestamp | date(format="%Y-%m-%d") }})
14+
{% else %}\
15+
## [unreleased]
16+
{% endif %}\
17+
{% for group, commits in commits | group_by(attribute="group") %}
18+
### {{ group | upper_first }}:
19+
{% for commit in commits %}
20+
- {{ commit.message }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/Binbiubiubiu/git-semver-tags/commit/{{ commit.id }}) by {{ commit.committer.name }})
21+
{% endfor %}
22+
{% endfor %}\n
23+
"""
24+
# remove the leading and trailing whitespace from the template
25+
trim = true
26+
# changelog footer
27+
footer = """
28+
<!-- generated by git-cliff -->
29+
"""
30+
31+
[git]
32+
# parse the commits based on https://www.conventionalcommits.org
33+
conventional_commits = true
34+
# filter out the commits that are not conventional
35+
filter_unconventional = true
36+
# process each line of a commit as an individual commit
37+
split_commits = false
38+
# regex for preprocessing the commit messages
39+
# commit_preprocessors = [
40+
# { pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/orhun/git-cliff/issues/${2}))"},
41+
# ]
42+
# regex for parsing and grouping commits
43+
commit_parsers = [
44+
{ message = "^feat", group = "New feature"},
45+
{ message = "^fix", group = "Bugs fixed"},
46+
# { message = "^doc", group = "Documentation"},
47+
# { message = "^perf", group = "Performance"},
48+
# { message = "^refactor", group = "Refactor"},
49+
# { message = "^style", group = "Styling"},
50+
# { message = "^test", group = "Testing"},
51+
# { message = "^chore\\(release\\): prepare for", skip = true},
52+
# { message = "^chore", group = "Miscellaneous Tasks"},
53+
# { body = ".*security", group = "Security"},
54+
]
55+
# protect breaking changes from being skipped due to matching a skipping commit_parser
56+
protect_breaking_commits = false
57+
# filter out the commits that are not matched by commit parsers
58+
filter_commits = true
59+
# glob pattern for matching git tags
60+
tag_pattern = "v[0-9]*"
61+
# regex for skipping tags
62+
skip_tags = "v0.1.0-beta.1"
63+
# regex for ignoring tags
64+
ignore_tags = ""
65+
# sort the tags chronologically
66+
date_order = false
67+
# sort the commits inside sections by oldest/newest order
68+
sort_commits = "oldest"
69+
# limit the number of commits included in the changelog.
70+
# limit_commits = 42

justfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
test:
2+
cargo nextest run --all-features
3+
4+
release:
5+
cargo release tag --execute
6+
git cliff -o CHANGELOG.md
7+
git commit -a -m "Update CHANGELOG.md" || true
8+
git push origin master
9+
cargo release push --execute

0 commit comments

Comments
 (0)