-
Notifications
You must be signed in to change notification settings - Fork 21
46 lines (39 loc) · 1.22 KB
/
create-ticket.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
name: Create ticket
on:
issues:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
name: Create new ticket
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content to github runner.
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.8 #install the python needed
- 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/[email protected]
with:
project: HH
issuetype: Task
summary: "[TS] ${{ github.event.issue.title }}"
description: ${{ github.event.issue.body }}
Components: "Service - Kafka"
- name: Update issue
uses: actions-cool/issues-helper@v3
with:
actions: 'update-issue'
token: ${{ github.token }}
issue-number: ${{ github.event.issue.number }}
state: 'open'
title: "${{ steps.create.outputs.issue }}: ${{ github.event.issue.title }}"
update-mode: 'replace'