Skip to content

Commit e8b084b

Browse files
author
Github
committed
chore: reconfigure autoassign
1 parent 4e0fc98 commit e8b084b

File tree

2 files changed

+13
-29
lines changed

2 files changed

+13
-29
lines changed

.github/auto_assign.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
# Set to true to add reviewers to pull requests
3+
addReviewers: true
4+
5+
# Set to true to add assignees to pull requests
6+
addAssignees: false
7+
8+
# A list of reviewers to be added to pull requests (GitHub user name)
9+
reviewers:
10+
- pedrotroller
11+
12+
numberOfReviewers: 0

.github/workflows/auto-assign.yaml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,10 @@ name: autoassign
44
on:
55
pull_request:
66
types:
7-
- synchronize
87
- opened
9-
- edited
108
- ready_for_review
11-
- reopened
12-
- unlocked
139

1410
jobs:
1511
autoassign:
16-
runs-on: ubuntu-latest
1712
steps:
18-
- uses: actions/github-script@v2
19-
with:
20-
github-token: ${{secrets.GITHUB_TOKEN}}
21-
script: |
22-
if (context.payload.pull_request.draft) {
23-
console.log('Pull request is on draft. Skipped.');
24-
25-
return;
26-
}
27-
28-
if (context.payload.sender.login.toLowerCase() == "pedrotroller") {
29-
console.log('Pull request created by the owner. Skipped.');
30-
31-
return;
32-
}
33-
34-
let reviewers = ["pedrotroller"];
35-
36-
await github.pulls.requestReviewers({
37-
pull_number: context.issue.number,
38-
owner: context.repo.owner,
39-
repo: context.repo.repo,
40-
reviewers: reviewers
41-
});
13+
- uses: kentaro-m/[email protected]

0 commit comments

Comments
 (0)