Skip to content
This repository was archived by the owner on Mar 23, 2026. It is now read-only.

Commit fdacbb5

Browse files
committed
chore: vendor configuration files from upstream source
1 parent c4ed9f8 commit fdacbb5

8 files changed

Lines changed: 62 additions & 9 deletions

File tree

.config/committed.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ subject_length = 90
22
subject_capitalized = false
33
subject_not_punctuated = true
44
imperative_subject = true
5-
no_fixup = true
6-
no_wip = true
75
hard_line_length = 0
86
line_length = 130
97
style = "conventional"

.config/release-please-config.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@
77
"release-type": "rust",
88
"initial-version": "0.0.1",
99
"draft-pull-request": true,
10-
"group-pull-request-title-pattern": "chore(release): bump crate versions on `${branch}`",
1110
"pull-request-footer": "This release was generated with [Release Please](https://github.com/googleapis/release-please).",
1211
"packages": {
13-
"crates/git-metadata": {
14-
"include-component-in-tag": false
15-
}
12+
".": {}
1613
},
1714
"plugins": [{ "type": "sentence-case" }, { "type": "cargo-workspace" }],
1815
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
{
2+
<<<<<<< ours
23
"crates/git-metadata": "0.0.0"
4+
=======
5+
"crates/git-vendor": "0.1.1",
6+
"crates/git-set-attr": "0.1.1"
7+
>>>>>>> theirs
38
}

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.github/workflows/CD.yml vendor=git-vendor
2+
.github/workflows/CI.yml vendor=git-vendor
3+
.github/workflows/Lint.yml vendor=git-vendor
4+
.github/workflows/Version.yml vendor=git-vendor
5+
.config/committed.toml vendor=git-vendor
6+
.config/deny.toml vendor=git-vendor
7+
.config/pre-commit.yaml vendor=git-vendor
8+
.config/release-please-config.json vendor=git-vendor
9+
.config/release-please-manifest.json vendor=git-vendor
10+
.config/rumdl.toml vendor=git-vendor
11+
.config/typos.toml vendor=git-vendor

.github/workflows/CD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: github.event_name == 'release'
2222
run: |
2323
TAG="${{ github.event.release.tag_name }}"
24-
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
24+
if [[ "$TAG" =~ ^git-metadata-v[0-9]+\.[0-9]+\.[0-9]+(-.*)?$ ]]; then
2525
echo "match=true" >> "$GITHUB_OUTPUT"
2626
else
2727
echo "match=false" >> "$GITHUB_OUTPUT"

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
${{ runner.os }}-cargo-build-
130130
- name: Generate man pages
131131
run: |
132-
cargo run --package git-rewrite -- --generate-man target/debug/man
132+
cargo run --package git-metadata -- --generate-man target/debug/man
133133
134134
ci:
135135
name: CI

.github/workflows/Lint.yml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,46 @@ jobs:
116116
command: check
117117
command-arguments: ${{ matrix.checks }} -c .config/deny.toml
118118

119+
semver-checks:
120+
name: Semver checks
121+
runs-on: ubuntu-latest
122+
if: |
123+
startsWith(github.head_ref, 'release-please--') &&
124+
!github.event.pull_request.draft
125+
steps:
126+
- uses: actions/checkout@v4
127+
- uses: actions-rust-lang/setup-rust-toolchain@v1
128+
with:
129+
cache: true
130+
- name: Install cargo-binstall
131+
uses: cargo-bins/cargo-binstall@main
132+
- name: Install cargo-semver-checks
133+
run: cargo binstall cargo-semver-checks --no-confirm
134+
- name: Run semver checks for published crates
135+
run: |
136+
crate_names=$(cargo metadata --no-deps --format-version 1 | jq -r '.packages[].name')
137+
published_pkgs=()
138+
for crate in $crate_names; do
139+
status=$(curl -s -o /dev/null -w "%{http_code}" \
140+
-H "User-Agent: github-actions-semver-check" \
141+
"https://crates.io/api/v1/crates/$crate")
142+
if [ "$status" = "200" ]; then
143+
echo "✓ '$crate' is published — will run semver-checks"
144+
published_pkgs+=("--package" "$crate")
145+
else
146+
echo "✗ '$crate' is not yet published (HTTP $status) — skipping"
147+
fi
148+
done
149+
if [ "${#published_pkgs[@]}" -gt 0 ]; then
150+
cargo semver-checks "${published_pkgs[@]}"
151+
else
152+
echo "No crates are published yet — skipping semver checks entirely."
153+
fi
154+
119155
lint:
120156
name: Lint
121157
if: ${{ always() && !github.event.pull_request.draft }}
122-
needs: [pre-commit, validate-pr-title, cargo-deny]
158+
needs: [pre-commit, validate-pr-title, cargo-deny, semver-checks]
123159
runs-on: ubuntu-latest
124160
steps:
125161
- run: |

.gitvendors

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[vendor "git-vendor"]
2+
url = https://github.com/git-ents/git-vendor.git
3+
branch = main
4+
base = 52b0f42ed9b374bf2b248a130d4b43e22a94e1c0
5+
pattern = .github/
6+
pattern = .config/

0 commit comments

Comments
 (0)