From b4dd9d12d361cf8f99281cc4064f82b164da9b19 Mon Sep 17 00:00:00 2001 From: Song_Minhyung Date: Tue, 14 Nov 2023 15:42:37 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EB=B8=8C=EB=9E=9C=EC=B9=98=20?= =?UTF-8?q?=EC=9D=B4=EB=A6=84=EC=9D=84=20context=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=B0=94=EB=A1=9C=20=EB=B0=9B=EC=95=84=EC=98=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/close-issue-automatically.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/close-issue-automatically.yml b/.github/workflows/close-issue-automatically.yml index b8c88e5c..9a271291 100644 --- a/.github/workflows/close-issue-automatically.yml +++ b/.github/workflows/close-issue-automatically.yml @@ -14,18 +14,8 @@ jobs: with: github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} script: | - // pr_num 으로 해당 pr 받아오기 - const pr = await github.rest.pulls.get({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number - }); - - const pr_data = pr.data; - const title = pr_data.title; - // 현재 pr 날린 브랜치 이름 - const branch_name = pr_data.head.ref; + const branch_name = context.payload.pull_request.head; // 브랜치 이름에 포함된 이슈 번호 const issue_num = branch_name.match(/#(\d+)/)[1];