Skip to content

Commit

Permalink
Merge pull request #49 from boostcampwm-2024/chore
Browse files Browse the repository at this point in the history
chore: 이슈 자동 종료 스크립트 버그 수정(3)
  • Loading branch information
dev-taewon-kim authored Nov 6, 2024
2 parents 5db18de + 2231fcd commit 42e6c4b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/auto-close-issue.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Auto Close Issue on PR Merge

on:
pull_request:
pull_request_target:
types: [closed]
branches:
- 'dev-fe'
- 'dev-be'

permissions:
contents: read
issues: write
pull-requests: write

Expand All @@ -18,15 +19,12 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup GitHub CLI
run: |
# GitHub CLI 인증 설정
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Close linked issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.pull_request.number }}
BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }}
Expand Down

0 comments on commit 42e6c4b

Please sign in to comment.