-
Notifications
You must be signed in to change notification settings - Fork 426
42 lines (40 loc) · 1.32 KB
/
team-jira-issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: jira-issues
on:
issues:
types: [opened]
jobs:
jira-action:
runs-on: ubuntu-latest
name: Jira create issue
steps:
- name: Curl to webhook
run: |
curl --location --request POST '${{ secrets.JIRA_BASE_URL }}/rest/api/2/issue' \
--header 'Authorization: Basic ${{ secrets.JIRA_API_TOKEN }}' \
--header 'Content-Type: application/json' \
--data-raw '{
"fields": {
"project": {
"key": "${{ secrets.JIRA_PROJECT }}"
},
"summary": "terraform-provider-snowflake issue ${{ github.event.issue.number }}",
"description": "*URL*\n${{ github.event.issue.html_url }}",
"issuetype": {
"name": "Task"
},
"components": [
{
"id": "${{ secrets.JIRA_COMPONENT }}"
}
],
"labels": [${{ secrets.JIRA_LABELS }}],
"customfield_11401": {
"id": "${{ secrets.JIRA_AREA }}"
},
"customfield_10008": "${{ secrets.JIRA_EPIC }}",
"assignee": {
"id": "${{ secrets.JIRA_ASSIGNEE }}"
}
}
}
}'