-
Notifications
You must be signed in to change notification settings - Fork 84
53 lines (51 loc) · 1.67 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
---
name: Create JIRA ticket for new issues
on:
issues:
types: [opened]
permissions:
issues: write
contents: read
jobs:
jira_task:
name: Create Jira issue
runs-on: ubuntu-latest
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
with:
config: ${{ vars.PERMISSIONS_CONFIG }}
- name: Create JIRA ticket
uses: mongodb/apix-action/create-jira@v6
id: create
with:
token: ${{ secrets.JIRA_API_TOKEN }}
project-key: CLOUDP
summary: "HELP: GitHub Issue n. ${{ github.event.issue.number }}"
issuetype: Story
description: "This ticket tracks the following GitHub issue: ${{ github.event.issue.html_url }}."
components: AtlasCLI
assignee: ${{ secrets.ASSIGNEE_JIRA_TICKET }}
extra-data: |
{
"fields": {
"fixVersions": [
{
"id": "41805"
}
],
"customfield_12751": [
{
"id": "22223"
}
],
"customfield_10257": {
"id": "11861"
}
}
}
- name: Add comment
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
with:
issue-number: ${{ github.event.issue.number }}
body: |
Thanks for opening this issue. The ticket [${{ steps.create.outputs.issue-key }}](https://jira.mongodb.org/browse/${{ steps.create.outputs.issue-key }}) was created for internal tracking.