Skip to content

Commit f704f26

Browse files
authored
chore: auto create jira issues issues (#85)
1 parent 4e7464f commit f704f26

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/create_issue.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: create_jira_issue
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
8+
jobs:
9+
create:
10+
runs-on: ubuntu-latest
11+
name: Create JIRA Issue
12+
steps:
13+
14+
- name: Login to Jira
15+
uses: atlassian/gajira-login@v3
16+
env:
17+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
18+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
19+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
20+
21+
- name: Create Jira issue
22+
uses: atlassian/gajira-create@v3
23+
with:
24+
project: CORE
25+
issuetype: Task
26+
summary: ${{ github.event.issue.title }}
27+
description: |
28+
Created from github issue: ${{ github.event.issue.html_url }}
29+
----
30+
${{ github.event.issue.body }}
31+
fields: '{ "labels": ["github-issue"] }'
32+
33+
- name: Log created issue
34+
run: echo "Issue ${{ steps.create.outputs.issue }} was created"

0 commit comments

Comments
 (0)