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,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"

View File

@@ -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