From 31384310865542f8d9963f25e4fe3936c0102c79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Latzarus?= Date: Fri, 20 Dec 2024 09:06:01 +0100 Subject: [PATCH] docs: allow to specify release notes in update command --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5c7bdad..a190559 100644 --- a/README.md +++ b/README.md @@ -165,11 +165,13 @@ composer docker:update-ranges ## Create a minor release after ranges autoupdate ```shell -read "Pull request number?PR_NUMBER" +read "PR_NUMBER?Pull request number: " gh pr merge --auto -dr $PR_NUMBER +CURRENT_VERSION=$(git tag --sort=-v:refname | head -n 1) IFS='.' read -r major minor patch <<< "$CURRENT_VERSION" NEW_VERSION="$major.$minor.$((patch + 1))" -gh release create $NEW_VERSION --title $NEW_VERSION --body "Updates ranges" +read "RELEASE_NOTES?Release notes: " +gh release create $NEW_VERSION --title $NEW_VERSION --notes $RELEASE_NOTES ```