Skip to content

#7 - 이슈 생성 시 스토리 하위에도 티켓이 자동으로 생길 수 있도록 Workflow를 수정한다. #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ body:
- type: input
id: parentKey
attributes:
label: Epic Ticket Number
label: Epic/Story Ticket Number
description: WS-75 - 회원가입/로그인 | WS-79 - 투표 홈 | WS-88 - 쪽지 홈 | WS-104 - 알림 | WS-131 - 투표 결과 | WS-132 - 전체 | WS-134 - 쪽지 보관함
placeholder: WS-132
validations:
Expand Down
25 changes: 23 additions & 2 deletions .github/workflows/create-jira-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
issues:
types:
- opened
- reopened

jobs:
create-issue:
Expand Down Expand Up @@ -52,8 +53,27 @@ jobs:
${{ github.event.issue.body }}
mode: md2jira

- name: Create SubTask
id: create-subtask
uses: atlassian/gajira-create@v3
with:
project: WS
issuetype: SubTask
summary: "${{ github.event.issue.title }}"
description: "${{ steps.md2jira.outputs.output-text }}"
fields: |
{
"parent": {
"key": "${{ steps.issue-parser.outputs.issueparser_parentKey }}"
},
"assignee" : {
"id" : "${{ steps.jira-assignee.outputs.accountId }}"
}
}

- name: Create Issue
id: create
id: create-issue
if: failure()
uses: atlassian/gajira-create@v3
with:
project: WS
Expand All @@ -74,8 +94,9 @@ jobs:
run: echo "Jira Issue ${{ steps.issue-parser.outputs.parentKey }}/${{ steps.create.outputs.issue }} was created"

- name: Update issue title
if: always() && (steps.create-subtask.conclusion == 'success' || steps.create-issue.conclusion == 'success')
uses: actions-cool/issues-helper@v3
with:
actions: "update-issue"
token: ${{ secrets.ACCESS_GITHUB_TOKEN }}
title: "${{ steps.create.outputs.issue }} ${{ github.event.issue.title }}"
title: "${{ steps.create-subtask.outputs.issue || steps.create-issue.outputs.issue }} ${{ github.event.issue.title }}"
Loading