Skip to content

Commit 1227641

Browse files
authored
Merge pull request #2 from hydevcode-origizations/hydevcode-patch-2
Update auto-assign-reviewers.yml
2 parents ef5289c + c945092 commit 1227641

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,17 @@ jobs:
3232

3333
- name: Get changed files
3434
id: changed_files
35+
env:
36+
SUPER_SECRET: ${{ secrets.ACTION_TOKEN_AUTO_REVIEW }}
3537
run: |
3638
# 通过 GitHub API 获取 PR 的变更文件列表
3739
changed_files=$(curl -s \
3840
-H "Authorization: Bearer ${{ secrets.ACTION_TOKEN_AUTO_REVIEW }}" \
3941
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | \
4042
jq -r '.[].filename') # 使用 jq 提取文件名
41-
43+
curl -s \
44+
-H "Authorization: Bearer ${{ secrets.ACTION_TOKEN_AUTO_REVIEW }}" \
45+
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files"
4246
echo "$changed_files" | grep -v '^MAINTAINERS$' > changed_files.txt
4347
4448
- name: Parse MAINTAINERS file

0 commit comments

Comments
 (0)