-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1003 Bytes
/
backend-jira-issue.yml
File metadata and controls
34 lines (32 loc) · 1003 Bytes
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
34
name: Create Jira Issue
on:
workflow_dispatch:
inputs:
issuetype:
description: 'Type of the Jira issue (e.g., Task, Bug, Story)'
required: true
default: 'Task' # 기본값 설정
jobs:
create_jira_issue:
runs-on: ubuntu-latest
steps:
- name: Create Jira Issue
env:
JIRA_USER: ${{ secrets.JIRA_USER }}
JIRA_TOKEN: ${{ secrets.JIRA_TOKEN }}
JIRA_URL: ${{ secrets.JIRA_URL }}
run: |
curl -X POST -u $JIRA_USER:$JIRA_TOKEN \
--data '{
"fields": {
"project": {
"key": "CLAB"
},
"summary": "Issue from GitHub Actions",
"description": "This issue was automatically created by GitHub Actions.",
"issuetype": {
"name": "${{ github.event.inputs.issuetype }}"
}
}
}' -H "Content-Type: application/json" \
$JIRA_URL/rest/api/2/issue/