Skip to content

Commit 76fb734

Browse files
authored
Revert "ci: add assign-reviewer job (DaleStudy#529)" (DaleStudy#590)
This reverts commit 675caa0.
1 parent c202261 commit 76fb734

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

โ€Ž.github/workflows/automation.yaml

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -24,28 +24,3 @@ jobs:
2424
- uses: actions/labeler@v5
2525
with:
2626
repo-token: ${{ github.token }}
27-
28-
assign-reviewer:
29-
runs-on: ubuntu-latest
30-
steps:
31-
- name: Get previous PR author and assign as reviewer
32-
env:
33-
GITHUB_TOKEN: ${{ github.token }}
34-
run: |
35-
current_repo=${{ github.repository }}
36-
current_pr_num=${{ github.event.number }}
37-
38-
# ์ด์ „ PR ์ค‘์—์„œ ํ˜„์žฌ PR ์ž‘์„ฑ์ž์™€ ๋‹ค๋ฅธ ์ž‘์„ฑ์ž ์ฐพ๊ธฐ
39-
previous_pr_author=$(gh pr list --repo $current_repo \
40-
--state all \
41-
--search "created:<${{ github.event.pull_request.created_at }} sort:created-desc -author:${{ github.actor }}" \
42-
--limit 3 \
43-
--json number,author \
44-
--jq "map(select(.number < $current_pr_num))[0].author.login")
45-
46-
if [ -n "$previous_pr_author" ]; then
47-
gh pr edit $current_pr_num --repo $current_repo --add-reviewer $previous_pr_author
48-
else
49-
echo "โŒ No previous PR author found to assign as reviewer"
50-
exit 1
51-
fi

0 commit comments

Comments
ย (0)