-
Notifications
You must be signed in to change notification settings - Fork 73
37 lines (32 loc) · 1.17 KB
/
create-jira-ticket-from-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
name: Create JIRA ticket for GH issue
on:
issues:
types: [opened]
jobs:
create_ticket_from_issue:
name: Create JIRA ticket
runs-on: ubuntu-latest
steps:
- 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 }}
- name: Create
id: create
uses: atlassian/gajira-create@master
with:
project: FE
issuetype: Bug
summary: Issue ${{ github.event.issue.number }} ${{ github.event.issue.title }}
description: ${{ github.event.issue.html_url }}
fields: '{"labels": ["github", "issue", "dx-ops"], "components": [{ "name": "V4 JavaScript Driver" }]}'
- name: Comment
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.issue.number }}
body: Internal ticket number is ${{ steps.create.outputs.issue }}
- name: Complete
if: ${{ steps.create.outputs.issue }}
run: echo "Issue ${{ steps.create.outputs.issue }} was created"