Skip to content

Commit

Permalink
ci: Create Jira tasks from issues (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q authored Jul 12, 2023
1 parent b9a7750 commit a152d18
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: New issue

on:
issues:
types: [opened]

jobs:
jira_task:
name: Create Jira issue
runs-on: ubuntu-22.04
steps:
- name: Login
uses: atlassian/gajira-login@v3.0.1
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/gajira-create@v3.0.1
if: "contains(github.event.issue.labels.*.name, 'bug')"
with:
project: TKET
issuetype: Bug
summary: « [tket2] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
fields: '{"labels": ["tket2"]}'
- name: Create Task
uses: atlassian/gajira-create@v3.0.1
if: "! contains(github.event.issue.labels.*.name, 'bug')"
with:
project: TKET
issuetype: Task
summary: « [tket2] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
fields: '{"labels": ["tket2"]}'

0 comments on commit a152d18

Please sign in to comment.