You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2024/01/06 16:07:46 UTC

(plc4x) 15/15: chore: Finished a first theoretically fully functional version of the branch script.

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/new-ui-tool
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit f1362553bb397ea3292502cd856797a1cc53d462
Author: Christofer Dutz <cd...@apache.org>
AuthorDate: Sat Jan 6 17:07:22 2024 +0100

    chore: Finished a first theoretically fully functional version of the branch script.
---
 tools/release-1-create-branch.sh | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tools/release-1-create-branch.sh b/tools/release-1-create-branch.sh
index 06bf840861..fd2bd93bbb 100755
--- a/tools/release-1-create-branch.sh
+++ b/tools/release-1-create-branch.sh
@@ -49,7 +49,7 @@ case $yn in
 esac
 
 # 2. Do a simple maven branch command with pushChanges=false (inside the Docker container)
-echo docker compose run --rm releaser bash /ws/mvnw -e -P with-c,with-dotnet,with-go,with-python,with-sandbox -Dmaven.repo.local=/ws/out/.repository release:branch -DautoVersionSubmodules=true -DpuchChanges=false -DdevelopmentVersion=$NEW_VERSION -DbranchName=$BRANCH_NAME
+docker compose run --rm releaser bash /ws/mvnw -e -P with-c,with-dotnet,with-go,with-python,with-sandbox -Dmaven.repo.local=/ws/out/.repository release:branch -DautoVersionSubmodules=true -DpuchChanges=false -DdevelopmentVersion=$NEW_VERSION -DbranchName=$BRANCH_NAME
 if [ $? -ne 0 ]; then
     echo "Got non-0 exit code from docker compose, aborting."
     exit 1
@@ -76,13 +76,14 @@ Bug Fixes\n\
 echo NEW_VERSION
 sed -i '' "1s/.*/$NEW_HEADER/" ../RELEASE_NOTES
 
-# 5. Commit the change.
-# TODO: Implement ...
+# 5. Commit the change (outside)
+git add --all
+git commit -m "chore: prepared the RELEASE_NOTES for the next version."
 
 # 6. Push the changes (outside)
-#git push
+git push
 
 # 7. Switch to the release branch
-#git checkout $BRANCH_NAME
+git checkout $BRANCH_NAME
 
-echo "Release branch creation complete. Please continue with 'release-2-prepare-release.sh' as soon as the release branch is ready for being released."
\ No newline at end of file
+echo "Release branch creation complete. We have switched the local branch to the release branch. Please continue with 'release-2-prepare-release.sh' as soon as the release branch is ready for being released."
\ No newline at end of file