[DOCS] README 링크 오류 수정 #264
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: Auto Issue Setting | |
| on: | |
| issues: | |
| types: [opened] | |
| jobs: | |
| auto-assign: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Auto-assign issue creator | |
| uses: pozil/auto-assign-issue@v2 | |
| with: | |
| repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| assignees: ${{ github.actor }} | |
| - name: Auto add BE / FE label by assignee | |
| env: | |
| GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
| run: | | |
| # ===== 팀 설정 ===== | |
| BE_ASSIGNEES=("joyjhm" "coli-geonwoo" "yeonjinJoo") | |
| FE_ASSIGNEES=("rkdwoals159" "bonsng" "yyoonngg") | |
| ISSUE_NUMBER=${{ github.event.issue.number }} | |
| ASSIGNEE=${{ github.actor }} | |
| LABELS=() | |
| # ===== BE 판별 ===== | |
| for BE in "${BE_ASSIGNEES[@]}"; do | |
| if [[ "$ASSIGNEE" == "$BE" ]]; then | |
| LABELS+=("be") | |
| fi | |
| done | |
| # ===== FE 판별 ===== | |
| for FE in "${FE_ASSIGNEES[@]}"; do | |
| if [[ "$ASSIGNEE" == "$FE" ]]; then | |
| LABELS+=("fe") | |
| fi | |
| done | |
| # ===== 라벨 추가 ===== | |
| if [ ${#LABELS[@]} -gt 0 ]; then | |
| LABEL_LIST=$(IFS=','; echo "${LABELS[*]}") | |
| gh issue edit "$ISSUE_NUMBER" \ | |
| --repo "${{ github.repository }}" \ | |
| --add-label "$LABEL_LIST" | |
| fi |