Skip to content

Commit 1a32ff0

Browse files
authored
Update auto-assign-reviewers.yml
1 parent 2a262e2 commit 1a32ff0

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@ on:
2222
jobs:
2323
assign-reviewers:
2424
runs-on: ubuntu-22.04
25+
if: github.repository_owner == 'RT-Thread'
2526
permissions:
2627
issues: write
2728
pull-requests: write
2829
contents: read
29-
env:
30-
SUPER_SECRET: ${{ secrets.ACTION_TOKEN_AUTO_REVIEW }}
3130
steps:
3231
- name: Checkout code
3332
uses: actions/checkout@v3
34-
33+
3534
- name: Get changed files
3635
id: changed_files
3736
run: |
@@ -40,9 +39,7 @@ jobs:
4039
-H "Authorization: Bearer ${{ github.token }}" \
4140
"https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files" | \
4241
jq -r '.[].filename') # 使用 jq 提取文件名
43-
4442
echo "$changed_files" | grep -v '^MAINTAINERS$' > changed_files.txt
45-
4643
- name: Parse MAINTAINERS file
4744
id: parse_maintainer
4845
run: |
@@ -163,7 +160,6 @@ jobs:
163160
echo "> ℹ️ **刷新CI状态操作需要具备仓库写入权限。**"
164161
echo "> ℹ️ **Refresh CI status operation requires repository Write permission.**"
165162
} > review_data.md
166-
167163
- name: Post/Update comment
168164
id: post_comment
169165
run: |

0 commit comments

Comments
 (0)