Updates git-commit-with-jira.sh and jira-get-packages-with-closed-issues.sh

This commit is contained in:
Matheus Albino Brunhara
2024-10-03 09:36:59 -03:00
parent 82fb2196a9
commit ce6f3ac7a8
2 changed files with 21 additions and 21 deletions

View File

@@ -1,10 +1,10 @@
#!/bin/bash
jira_ticket=$(echo $(pwd) | grep -oE "(ETICS|CDK|IM)-[0-9]+" | tail -n1)
jira_ticket=$(echo $(pwd) | grep -oE "(ETICS|CDK|IM|OM|ITSM|GPMAPS)-[0-9]+" | tail -n1)
if [ -z $jira_ticket ]; then
echo "[ERROR] No Jira Ticket was found in current working directory"
exit 1
echo "[ERROR] No Jira Ticket was found in current working directory"
exit 1
fi
commit_message=$1