Updates git-commit-with-jira.sh and jira-get-packages-with-closed-issues.sh
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/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"
|
||||
|
||||
@@ -17,7 +17,7 @@ for gp_repo in ${GP_REPOS[@]}; do
|
||||
jira_fields=$(jq '.fields' <<<$jira_json)
|
||||
jira_status=$(jq '.status.name' <<<$jira_fields)
|
||||
|
||||
# if [[ $jira_status == *"Closed"* ]]; then
|
||||
if [[ "$jira_status" == *"Closed"* || "$jira_status" == *"Fechado"* ]]; then
|
||||
jira_assignee=$(jq '.assignee.name' <<<$jira_fields)
|
||||
jira_reporter=$(jq '.reporter.name' <<<$jira_fields)
|
||||
|
||||
@@ -30,6 +30,6 @@ for gp_repo in ${GP_REPOS[@]}; do
|
||||
echo "Reportador: $jira_reporter"
|
||||
|
||||
echo -e "\n"
|
||||
# fi
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user