Skip to content

Commit c8e1b5f

Browse files
committed
ci: PR number 비교 처리 변경
1 parent 7a10e64 commit c8e1b5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/automation.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ jobs:
3737
3838
# 최근 3개의 PR 중 현재 PR 작성자와 다른 작성자 찾기
3939
previous_pr_author=$(gh pr list --repo $current_repo \
40-
--search "number:<$current_pr_num -is:closed sort:created-desc -author:$current_pr_author" \
41-
--limit 3 --json author \
42-
--jq '.[0].author.login')
43-
40+
--search "-is:closed sort:created-desc -author:$current_pr_author" \
41+
--limit 3 --json number,author \
42+
--jq 'map(select(.number < '$current_pr_num'))[0].author.login')
43+
4444
if [ -n "$previous_pr_author" ]; then
4545
gh pr edit $current_pr_num --repo $current_repo --add-reviewer $previous_pr_author
4646
else

0 commit comments

Comments
 (0)