summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-09-03 15:12:51 +0200
committervarac <varacanero@zeromail.org>2013-09-03 15:12:51 +0200
commit8da9a98a714fa0e80c55872ab1e5e0c464a8e2c7 (patch)
tree526f51003790962c593d95f943abfe8d41ec2f8d
parentac627aacf00c2f888f21c6f108931dea38260f73 (diff)
added leap-fix.sh for starting feature branches from a given chili issue nr
-rwxr-xr-xgit/leap-fix.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/git/leap-fix.sh b/git/leap-fix.sh
new file mode 100755
index 0000000..4232f2a
--- /dev/null
+++ b/git/leap-fix.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# example:
+# ./leap-fix.sh 3667
+# Starting feature branch "3667_Sending_mail_fails_when_relaying_using_non-fully-qualified_hostname"
+# ...
+
+issue=$1
+
+[ $issue -gt 0 ] || exit 1
+
+# quick'n dirty
+subject=`wget -q https://leap.se/code/issues/${issue}.json -O -|json_pp| grep '"subject"'|cut -d '"' -f 4|sed 's/ /_/g' `
+
+[ $subject ] || exit 1
+
+feature="${issue}_$subject"
+echo "Starting feature branch \"$feature\""
+echo
+echo "Proceed ? press enter"
+read enter
+
+git flow feature start $feature