Skip to content

Commit e96cdf5

Browse files
committed
feat: Add GitHub Actions workflow to sync GitHub issues with Jira
1 parent ea5fabd commit e96cdf5

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Create Jira Issue on Label
2+
3+
on:
4+
issues:
5+
types:
6+
- labeled
7+
8+
jobs:
9+
create-jira-issue:
10+
if: contains(github.event.label.name, 'bug') # Trigger only when the 'bug' label is added
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Create Jira Issue
14+
uses: atlassian/gajira-create@v3.1.0
15+
with:
16+
jira-base-url: ${{ secrets.JIRA_BASE_URL }}
17+
jira-user-email: ${{ secrets.JIRA_USER_EMAIL }}
18+
jira-api-token: ${{ secrets.JIRA_TOKEN }}
19+
project-key: JGI
20+
summary: "Bug: ${{ github.event.issue.title }}"
21+
description: |
22+
Reporter: ${{ github.actor }}
23+
24+
Issue URL: ${{ github.event.issue.html_url }}
25+
26+
Description:
27+
${{ github.event.issue.body }}
28+
issue-type: Bug
29+
assignee: ${{ github.actor }}

0 commit comments

Comments
 (0)