Skip to content

Commit

Permalink
Update JIRA create issue action (snowflakedb#367)
Browse files Browse the repository at this point in the history
* Update JIRA create issue action

* Update issue template
  • Loading branch information
sfc-gh-turbaszek committed Sep 7, 2023
1 parent 1b1d4fc commit a692b7e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .github/ISSUE_TEMPLATE/BUG-REPORT.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
name: Bug Report
description: File a bug report
body:
- type: input
attributes:
label: "SnowCLI version"
description: "What version of snow are you using?"
placeholder: "Run `snow --version`"
- type: input
attributes:
label: "Python version"
description: "What version of Python are you using?"
placeholder: "Run `python --version --version`"
placeholder: "Run `python --version`"
- type: input
attributes:
label: "Platform"
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/jira_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ jobs:
project: SNOW
issuetype: Bug
summary: '${{ github.event.issue.title }}'
description: |
${{ github.event.issue.body }} \\ \\ _Created from GitHub Action_ for ${{ github.event.issue.html_url }}
fields: '{"customfield_11401":{"id":"14723"},"labels":["dp-snowcli","github"]}'
description: >
_Created from GitHub Action_ for ${{ github.event.issue.html_url }}
```${{ github.event.issue.body }}```
fields: '{"customfield_11401":{"id":"14723"},"labels":["dp-snowcli","github"],"parent":{"key":"SNOW-870768"}}'

- name: Update GitHub Issue
uses: ./jira/gajira-issue-update
Expand All @@ -59,3 +60,8 @@ jobs:
owner: "{{ event.repository.owner.login }}"
name: "{{ event.repository.name }}"
jira: "${{ steps.create.outputs.issue }}"
- name: Transition issue
uses: atlassian/gajira-transition@v3
with:
issue: "${{ steps.create.outputs.issue }}"
transition: "TODO"

0 comments on commit a692b7e

Please sign in to comment.