Skip to content

Commit cc54728

Browse files
committed
Validate repository metadata
1 parent 5bb45cc commit cc54728

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

docs/RELEASE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ This checklist is for maintainers preparing a `base64-ng` release.
55
## Preflight
66

77
- Confirm `Cargo.toml` has the intended version.
8+
- Confirm `Cargo.toml` repository and homepage point to `https://github.com/valkyoth/base64-ng`.
89
- Confirm `CHANGELOG.md` has a section for that version.
910
- Confirm `license = "MIT OR Apache-2.0"` remains unchanged.
1011
- Confirm `LICENSE-MIT` and `LICENSE-APACHE` are present at the repository root.

scripts/validate-release-metadata.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ if ! grep -q '^license = "MIT OR Apache-2.0"$' Cargo.toml; then
3939
exit 1
4040
fi
4141

42+
if ! grep -q '^repository = "https://github.com/valkyoth/base64-ng"$' Cargo.toml; then
43+
echo "release metadata: Cargo.toml repository must be https://github.com/valkyoth/base64-ng" >&2
44+
exit 1
45+
fi
46+
47+
if ! grep -q '^homepage = "https://github.com/valkyoth/base64-ng"$' Cargo.toml; then
48+
echo "release metadata: Cargo.toml homepage must be https://github.com/valkyoth/base64-ng" >&2
49+
exit 1
50+
fi
51+
4252
test -s LICENSE-MIT
4353
test -s LICENSE-APACHE
4454
test -s README.md

0 commit comments

Comments
 (0)