[BOOK-517/fix] 기록 상세보기 텍스트 컬러 및 감정 이미지 사이즈 수정 #58
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: | |
| issues: | |
| types: | |
| - closed | |
| jobs: | |
| close-issue: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Login to 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 from GitHub issue title | |
| id: extract-key | |
| run: | | |
| ISSUE_TITLE="${{ github.event.issue.title }}" | |
| JIRA_KEY=$(echo "$ISSUE_TITLE" | grep -oE '[A-Z]+-[0-9]+' || true) | |
| echo "JIRA_KEY=$JIRA_KEY" >> $GITHUB_ENV | |
| - name: Get available transitions | |
| if: ${{ env.JIRA_KEY != '' }} | |
| run: | | |
| curl -u ${{ secrets.JIRA_USER_EMAIL }}:${{ secrets.JIRA_API_TOKEN }} \ | |
| -X GET \ | |
| -H "Content-Type: application/json" \ | |
| "${{ secrets.JIRA_BASE_URL }}/rest/api/3/issue/${{ env.JIRA_KEY }}/transitions" \ | |
| | jq '.transitions[] | {id, name, to: .to.name}' | |
| - name: Close Jira issue | |
| if: ${{ env.JIRA_KEY != '' }} | |
| uses: atlassian/gajira-transition@v3 | |
| with: | |
| issue: ${{ env.JIRA_KEY }} | |
| transition: 개발 완료 |