Skip to content

Commit

Permalink
chore(Jira): Try to fix Jira creation for issues with no priority (#576)
Browse files Browse the repository at this point in the history
n+1th time's a charm 😅
  • Loading branch information
croyzor authored Sep 28, 2023
1 parent d38bb33 commit d45bd4b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,17 @@ jobs:
break;;
esac
done
echo "JIRA_PRIORITY=$MY_RESULT" >> $GITHUB_OUTPUT
if [ ! -z $MY_RESULT ]
then
MY_RESULT=", \"priority\": { \"name\": \"$MY_RESULT\" }"
fi
echo "JIRA_PRIORITY_FIELD=$MY_RESULT" >> $GITHUB_OUTPUT
- name: Create Bug
uses: atlassian/gajira-create@v3.0.1
if: ${{ contains(github.event.issue.labels.*.name, 'bug') }}
env:
JIRA_PRIORITY: ${{ steps.set_priority_var.outputs.JIRA_PRIORITY }}
JIRA_PRIORITY_FIELD: ', "priority": { "name": "${{ env.JIRA_PRIORITY }}" }'
JIRA_PRIORITY_FIELD: ${{ steps.set_priority_var.outputs.JIRA_PRIORITY_FIELD }}
with:
project: TKET
issuetype: Bug
Expand All @@ -57,8 +60,7 @@ jobs:
uses: atlassian/gajira-create@v3.0.1
if: ${{ ! contains(github.event.issue.labels.*.name, 'bug') }}
env:
JIRA_PRIORITY: ${{ steps.set_priority_var.outputs.JIRA_PRIORITY }}
JIRA_PRIORITY_FIELD: ', "priority": { "name": "${{ env.JIRA_PRIORITY }}" }'
JIRA_PRIORITY_FIELD: ${{ steps.set_priority_var.outputs.JIRA_PRIORITY_FIELD }}
with:
project: TKET
issuetype: Task
Expand Down

0 comments on commit d45bd4b

Please sign in to comment.