Skip to content

Commit 1ad17a6

Browse files
committed
Merge rust-bitcoin#1791: ci: Check for remaining NEXT_RELEASE in the release script
b3b5751 ci: Check for remaining NEXT_RELEASE in the release script (Steven Roose) Pull request description: The intention here is that we can use the deprecation tag `#[deprecated(since = "NEXT_RELEASE")]` and fill in the version number at release time. Not sure if there is a good place to mention this somewhere in developer docs. I looked into CONTRIBUTING.md but didn't really found a suitable section for this. ACKs for top commit: tcharding: utACK b3b5751 apoelstra: ACK b3b5751 Tree-SHA512: 7c077ee6569d38cf4c518cd5003ba0c09fdf7f98f4fb14fd28b49eb2e1b43eec7833de7abd1e35b9b14451f37de8e36a740a6445e3a5feb34a79cbfb7e63ee9f
2 parents 36500b4 + b3b5751 commit 1ad17a6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

contrib/release.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,16 @@ main () {
99
for crate in "internals" "hashes" "bitcoin"; do
1010
if release_changes $crate; then
1111
echo "$crate has changes implying this is a release PR, checking if we can publish ..."
12+
13+
# Check if there is any mention of NEXT_RELEASE which means the
14+
# next version number should be filled in.
15+
if grep -qr NEXT_RELEASE ./$crate; then
16+
echo Version number needs to be filled in following places:
17+
grep -r NEXT_RELEASE ./$crate
18+
exit 1
19+
fi
20+
21+
# Then try to dry-run cargo publish
1222
publish_dry_run $crate
1323
fi
1424
done

0 commit comments

Comments
 (0)