Skip to content

Commit

Permalink
fix: 하위 이슈가 없을 경우 처리해줌
Browse files Browse the repository at this point in the history
  • Loading branch information
Doosies committed Nov 14, 2023
1 parent 397fc0f commit 38f6a08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/close-issue-automatically.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
const issue_nums =
issue_body
.match(/#(\d+)/g)
.map((num) => num.replace('#', ''));
?.match(/#(\d+)/g)
?.map((num) => num.replace('#', ''));
// 브랜치 이름에 포함된 이슈 번호도 추가해줌
issue_nums.push(issue_num);
// 이슈들을 닫아줌.
issue_nums.forEach(issue_num => {
issue_nums?.forEach(issue_num => {
github.rest.issues.update({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 38f6a08

Please sign in to comment.