Skip to content

Commit

Permalink
ci: Add Jira issue integration (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q authored Aug 23, 2023
1 parent 38a948f commit 273c4dd
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/[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: « [tket-json-rs] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
fields: '{"labels": ["tket-json-rs"]}'
- name: Create Task
uses: atlassian/[email protected]
if: "! contains(github.event.issue.labels.*.name, 'bug')"
with:
project: TKET
issuetype: Task
summary: « [tket-json-rs] ${{ github.event.issue.title }}»
description: ${{ github.event.issue.html_url }}
fields: '{"labels": ["tket-json-rs"]}'

0 comments on commit 273c4dd

Please sign in to comment.