-
Notifications
You must be signed in to change notification settings - Fork 12
33 lines (31 loc) · 993 Bytes
/
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
name: New issue
on:
issues:
types: [opened]
jobs:
jira_task:
name: Create Jira issue
runs-on: ubuntu-22.04
steps:
- name: Login
uses: atlassian/[email protected]
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create Bug
uses: atlassian/[email protected]
if: contains(github.event.issue.labels.*.name, 'bug')
with:
project: TKET
issuetype: Bug
summary: « [pytket-qiskit] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
- name: Create Task
uses: atlassian/[email protected]
if: "! contains(github.event.issue.labels.*.name, 'bug')"
with:
project: TKET
issuetype: Task
summary: « [pytket-qiskit] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}