We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14cf26e commit d0f86feCopy full SHA for d0f86fe
etc/scripts/new-issue-branch
@@ -1,4 +1,4 @@
1
-#!/bin/bash
+#!/bin/bash -x
2
#
3
# This script creates a new local issue branch for the given issue id.
4
# Previous changes are stashed before the issue branch is created and are reapplied after branch creation.
@@ -24,7 +24,7 @@ OLD_VERSION_TMP=$(mvn -o org.apache.maven.plugins:maven-help-plugin:2.1.1:evalua
24
OLD_POM_VERSION=${OLD_VERSION_TMP:?"Could not extract current project version from pom.xml"}
25
26
# Replaces BUILD in BUILD-SNAPSHOT with the given TICKET_ID
27
-NEW_POM_VERSION=${OLD_POM_VERSION/"BUILD"/$TICKET_ID}
+NEW_POM_VERSION=${OLD_POM_VERSION/"-SNAPSHOT"/"-${TICKET_ID}-SNAPSHOT"}
28
ISSUE_BRANCH="issue/$TICKET_ID"
29
30
echo "Creating feature branch $TICKET_ID: $OLD_POM_VERSION -> $NEW_POM_VERSION"
0 commit comments