CLAP-480 엘라스틱서치 장시간 미사용시 연결 끊어지는 버그 수정 #286
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: Create Feature Jira issue | |
| on: | |
| issues: | |
| types: | |
| - opened | |
| jobs: | |
| create-issue: | |
| name: Create Jira issue | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check if issue uses feature template | |
| id: check_template | |
| run: | | |
| BODY="${{ github.event.issue.body }}" | |
| if [[ $BODY == *"Feature 상위 작업 Ticket Number"* ]]; then | |
| echo "is_feature_template=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "is_feature_template=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Exit if not feature template | |
| if: steps.check_template.outputs.is_feature_template != 'true' | |
| run: exit 0 | |
| - name: Login | |
| 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: Checkout develop code | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: develop | |
| - name: Issue Parser | |
| uses: stefanbuck/github-issue-praser@v3 | |
| id: issue-parser | |
| with: | |
| template-path: | | |
| .github/ISSUE_TEMPLATE/feature_issue_form.yml | |
| - name: Log Issue Parser | |
| run: | | |
| echo '${{ steps.issue-parser.outputs.jsonString }}' | |
| - name: Convert markdown to Jira Syntax | |
| uses: peter-evans/jira2md@v1 | |
| id: md2jira | |
| with: | |
| input-text: | | |
| ### Github Issue Link | |
| - ${{ github.event.issue.html_url }} | |
| ${{ github.event.issue.body }} | |
| mode: md2jira | |
| - name: Create Issue | |
| id: create | |
| uses: atlassian/gajira-create@v3 | |
| with: | |
| project: CLAP | |
| issuetype: 작업 | |
| summary: "[BE] ${{ github.event.issue.title }}" | |
| description: "${{ steps.md2jira.outputs.output-text }}" | |
| fields: | | |
| { | |
| "parent": { | |
| "key": "${{ steps.issue-parser.outputs.issueparser_parentKey }}" | |
| } | |
| } | |
| - name: Log created issue | |
| run: echo "Jira Issue ${{ steps.issue-parser.outputs.parentKey }}/${{ steps.create.outputs.issue }} was created" | |
| - name: Update issue title | |
| uses: actions-cool/issues-helper@v3 | |
| with: | |
| actions: "update-issue" | |
| token: ${{ secrets.PAT_TOKEN }} | |
| title: "${{ steps.create.outputs.issue }} ${{ github.event.issue.title }}" |