We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a10e64 commit c8e1b5fCopy full SHA for c8e1b5f
.github/workflows/automation.yaml
@@ -37,10 +37,10 @@ jobs:
37
38
# 최근 3개의 PR 중 현재 PR 작성자와 다른 작성자 찾기
39
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
-
+ --search "-is:closed sort:created-desc -author:$current_pr_author" \
+ --limit 3 --json number,author \
+ --jq 'map(select(.number < '$current_pr_num'))[0].author.login')
+
44
if [ -n "$previous_pr_author" ]; then
45
gh pr edit $current_pr_num --repo $current_repo --add-reviewer $previous_pr_author
46
else
0 commit comments