[REFACTOR] QA 수정사항 반영 [(THIP2025-316)] #61
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: | |
| name: Close Jira 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 }}" | |
| CLEANED_TITLE=$(echo "$ISSUE_TITLE" | tr -d '[]') | |
| echo "🧼 Cleaned title: $CLEANED_TITLE" | |
| JIRA_KEY=$(echo "$CLEANED_TITLE" | grep -oE '[A-Z0-9]+-[0-9]+') | |
| if [ -z "$JIRA_KEY" ]; then | |
| echo "❌ JIRA key could not be extracted. Exiting." | |
| exit 1 | |
| fi | |
| echo "✅ Extracted JIRA_KEY=$JIRA_KEY" | |
| echo "JIRA_KEY=$JIRA_KEY" >> $GITHUB_ENV | |
| - name: Transition Jira issue to Done | |
| uses: atlassian/gajira-transition@v3 | |
| with: | |
| issue: ${{ env.JIRA_KEY }} | |
| transition: 완료 |