Skip to content

Commit 7483665

Browse files
Add gh issues automation and test (AST-000)
1 parent 4d3ba23 commit 7483665

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/jira_notify.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ jobs:
3131
JIRA_USER_EMAIL: ${{ secrets.AST_JIRA_USER_EMAIL }}
3232
JIRA_API_TOKEN: ${{ secrets.AST_JIRA_API_TOKEN }}
3333

34+
- name: Determine Fields
35+
id: fields
36+
run: |
37+
if [[ "${{ inputs.title }}" == "[BUG]" ]]; then
38+
echo "fields=${{ env.JIRA_FIELDS_BUG }}" >> $GITHUB_ENV
39+
else
40+
echo "fields=${{ env.JIRA_FIELDS_OTHER }}" >> $GITHUB_ENV
41+
fi
42+
3443
- name: Jira Create issue
3544
id: create_jira_issue
3645
uses: atlassian/gajira-create@1ff0b6bd115a780592b47bfbb63fc4629132e6ec #v3
@@ -39,7 +48,7 @@ jobs:
3948
issuetype: Task
4049
summary: '${{inputs.repo}} ${{inputs.title}}'
4150
description: ${{inputs.body}} see more at ${{inputs.html_url}}
42-
fields: ${{ secrets.AST_JIRA_FIELDS}}
51+
fields: ${{ env.fields }}
4352

4453
- name: Add comment to GitHub issue
4554
uses: actions/[email protected]

0 commit comments

Comments
 (0)