From cf9c3cef8b1fe68b07889383747b1cab5903a847 Mon Sep 17 00:00:00 2001 From: jaeyeon kim Date: Fri, 5 Jul 2024 18:06:47 +0900 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20issue=20template=EC=97=90=20Story?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/feature_request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml index 3ac8c0f5..595d7f54 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.yml +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -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: From f5cc3855bb21a83fb75dc199e154ab2a0c9f88e1 Mon Sep 17 00:00:00 2001 From: jaeyeon kim Date: Fri, 5 Jul 2024 18:12:01 +0900 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20create-subtask=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80=20=EB=B0=8F=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-jira-issue.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create-jira-issue.yml b/.github/workflows/create-jira-issue.yml index 1ef1f3db..c6d14c6f 100644 --- a/.github/workflows/create-jira-issue.yml +++ b/.github/workflows/create-jira-issue.yml @@ -3,6 +3,7 @@ on: issues: types: - opened + - reopened jobs: create-issue: @@ -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 @@ -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 }}" \ No newline at end of file + title: "${{ steps.create-subtask.outputs.issue || steps.create-issue.outputs.issue }} ${{ github.event.issue.title }}" \ No newline at end of file From 0a40384328a26270d37e1a4d1fc753d0064616ec Mon Sep 17 00:00:00 2001 From: jaeyeon kim Date: Fri, 5 Jul 2024 18:15:37 +0900 Subject: [PATCH 3/3] =?UTF-8?q?chore:=20=ED=8C=8C=EC=9D=BC=20=EB=81=9D=20?= =?UTF-8?q?=EA=B0=9C=ED=96=89=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/create-jira-issue.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create-jira-issue.yml b/.github/workflows/create-jira-issue.yml index c6d14c6f..2795dc53 100644 --- a/.github/workflows/create-jira-issue.yml +++ b/.github/workflows/create-jira-issue.yml @@ -99,4 +99,4 @@ jobs: with: actions: "update-issue" token: ${{ secrets.ACCESS_GITHUB_TOKEN }} - title: "${{ steps.create-subtask.outputs.issue || steps.create-issue.outputs.issue }} ${{ github.event.issue.title }}" \ No newline at end of file + title: "${{ steps.create-subtask.outputs.issue || steps.create-issue.outputs.issue }} ${{ github.event.issue.title }}"