-
Notifications
You must be signed in to change notification settings - Fork 125
55 lines (47 loc) · 1.93 KB
/
jira_create_issue.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
54
55
# name: Create Issue In Jira
# on:
# issues:
# types:
# - opened
# pull_request_target:
# types:
# - opened
# workflow_call:
# jobs:
# create_jira_issue:
# name: Create Jira Issue
# runs-on: ubuntu-latest
# permissions: write-all
# steps:
# - name: Checkout
# uses: actions/checkout@master
# - name: Login
# uses: atlassian/gajira-login@master
# env:
# JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
# JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
# JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
# # Create new ticket in Jira
# - name: Create
# id: create
# uses: atlassian/gajira-create@v3
# with:
# project: PETOSS
# issuetype: Story
# summary: ${{ github.event.repository.name }} ${{ github.event.issue.number || github.event.pull_request.number }} ${{ github.event.issue.title || github.event.pull_request.title }}
# description: ${{ github.event.issue.body || github.event.pull_request.body }}
# # Add created jira id as comment in issue thread. This allows us to easily
# # retrieve the id when the issue state is updated, i.e. closed
# - name: Add jira ticket id as comment
# uses: peter-evans/create-or-update-comment@v2
# with:
# issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
# body: ${{ steps.create.outputs.issue }}
# token: ${{ secrets.GITHUB_TOKEN }}
# # Add additional comment to let user know what is happening
# - name: Add additional comment notifying user that a ticket has been created
# uses: peter-evans/create-or-update-comment@v2
# with:
# issue-number: ${{ github.event.issue.number || github.event.pull_request.number }}
# body: Thanks for raising an issue, a ticket has been created to track your request
# token: ${{ secrets.GITHUB_TOKEN }}