-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (32 loc) · 1.03 KB
/
jira-issue-create.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
# Creates jira tickets for new github issues to help triage
name: Jira Issue Creator
on:
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
environment: Jira
name: SDK Bot Jira Issue Creation
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 issue
id: create
uses: atlassian/gajira-create@master
with:
project: ${{ secrets.JIRA_PROJECT }}
issuetype: Task
summary: |
[SDK - experiment-ruby-server] ${{ github.event.issue.title }}
description: |
${{ github.event.issue.html_url }}
fields: '{
"labels": ["experiment-ruby-server", "sdk-backlog-grooming", "github"]
}'
- name: Log created issue
run: echo "Issue SKY-${{ steps.create.outputs.issue }} was created"