File tree Expand file tree Collapse file tree 2 files changed +13
-29
lines changed Expand file tree Collapse file tree 2 files changed +13
-29
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -4,38 +4,10 @@ name: autoassign
44on :
55 pull_request :
66 types :
7- - synchronize
87 - opened
9- - edited
108 - ready_for_review
11- - reopened
12- - unlocked
139
1410jobs :
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]
You can’t perform that action at this time.
0 commit comments