KAN-175 [feat] Report UI 및 단일 컴포넌트 구현 #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Close Jira Issue on GitHub Issue Close | |
| on: | |
| issues: | |
| types: | |
| - closed | |
| jobs: | |
| close-jira-issue: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Jira Login # Jira에 로그인 | |
| uses: atlassian/gajira-login@v3 | |
| env: | |
| JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |
| JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
| JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | |
| - name: Extract Jira Issue Key | |
| id: extract-key | |
| run: | | |
| ISSUE_TITLE="${{ github.event.issue.title }}" | |
| JIRA_KEY=$(echo "$ISSUE_TITLE" | grep -oE '([A-Z]+-[0-9]+)') | |
| if [ -z "$JIRA_KEY" ]; then | |
| echo "No Jira issue key found in the title." | |
| exit 1 | |
| fi | |
| echo "JIRA_KEY=$JIRA_KEY" >> $GITHUB_ENV | |
| - name: Transition Jira Issue to Done | |
| uses: atlassian/gajira-transition@v3 | |
| with: | |
| issue: "${{ env.JIRA_KEY }}" | |
| transition: "완료" # 완료 상태로 변경 |