Skip to content

Commit da0f556

Browse files
committed
adds auto-review github action
1 parent 568c5f3 commit da0f556

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

.github/reviewers.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# For docs on this see https://github.com/marketplace/actions/auto-request-review#reviewers-configuration
2+
reviewers:
3+
# The default reviewers
4+
defaults:
5+
- repository-owners
6+
7+
# Reviewer groups each of which has a list of GitHub usernames
8+
groups:
9+
repository-owners:
10+
- petethepig
11+
- Rperry2174
12+
go-experts:
13+
- petethepig
14+
js-experts:
15+
- Rperry2174
16+
17+
files:
18+
# Keys are glob expressions.
19+
# You can assign groups defined above as well as GitHub usernames.
20+
'**':
21+
- repository-owners # group
22+
'**/*.go':
23+
- go-experts
24+
'webapp/**':
25+
- js-experts
26+
27+
options:
28+
ignore_draft: true
29+
ignored_keywords:
30+
- DO NOT REVIEW
31+
enable_group_assignment: false
32+
33+
# Randomly pick reviewers up to this number.
34+
# Do not set this option if you'd like to assign all matching reviewers.
35+
number_of_reviewers: 2
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# For docs on this see https://github.com/marketplace/actions/auto-request-review#workflow-configuration
2+
name: Auto Request Review
3+
4+
on:
5+
pull_request:
6+
types: [opened, ready_for_review, reopened]
7+
8+
jobs:
9+
auto-request-review:
10+
name: Auto Request Review
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Request review based on files changes and/or groups the author belongs to
14+
uses: necojackarc/[email protected]
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
config: .github/reviewers.yml # Config file location override

0 commit comments

Comments
 (0)