Skip to content

Commit 35c9176

Browse files
authored
Update auto-assign-reviewers.yml
1 parent f3a47d2 commit 35c9176

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/auto-assign-reviewers.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# 2025-01-21 kurisaW Initial version
99
#
1010

11-
# Script Function Description: Assign PR reviews based on the MAINTAINERS list.asdasasddasdasdadsass
11+
# Script Function Description: Assign PR reviews based on the MAINTAINERS list.asdasassass
1212

1313
name: Auto Review Assistant
1414

@@ -203,6 +203,11 @@ jobs:
203203
# 创建新评论
204204
echo "Creating new comment"
205205
response=$(curl -s -X POST \
206-
-H "Authorization: Bearer ${{ secrets.ACTION_TOKEN_AUTO_REVIEW2 }}" \
206+
-H "Authorization: Bearer ${{ github.token }}" \
207+
-d "$(jq -n --arg body "$(cat review_data.md)" '{body: $body}')" \
208+
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments")
209+
echo "Creating new comment"
210+
response=$(curl -s -X POST \
211+
-H "Authorization: Bearer ${{ github_token }}" \
207212
-d "$(jq -n --arg body "$(cat review_data.md)" '{body: $body}')" \
208213
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments")

0 commit comments

Comments
 (0)