Changed jira to handle branch names that are just numbers
authorAndrew DeFaria <A.DeFaria@cpanel.net>
Tue, 21 Mar 2023 17:22:00 +0000 (17:22 +0000)
committerAndrew DeFaria <A.DeFaria@cpanel.net>
Tue, 21 Mar 2023 17:22:00 +0000 (17:22 +0000)
bin/jira

index ed2f582..c84f38f 100755 (executable)
--- a/bin/jira
+++ b/bin/jira
@@ -142,9 +142,9 @@ unless ( $ARGV[0] ) {
     my ( $status, @output ) = Utils::Execute("git branch --show-current 2>&1");
 
     unless ($status) {
-        $output[0] =~ /\w+-(\d+)/;
-
-        $ARGV[0] = $1;
+        if ($output[0] =~ /(\w+-)*(\d+)/) {
+            $ARGV[0] = $2;
+       }
     }
 }