-
Notifications
You must be signed in to change notification settings - Fork 1
/
reviewpad.yml
36 lines (30 loc) · 1011 Bytes
/
reviewpad.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
rules:
- name: Open PR state
spec: '!$isDraft() && $getState() == "open"'
- name: First run state
spec: $getEventType() == "opened" && $rule("Open PR state")
workflows:
- name: Assign author
run:
- if: $rule("First run state")
then: $addAssignees([$getAuthor()])
- name: Request review from maintainers
run:
- if: $rule("First run state")
then: $addReviewers($getTeamMembers("bokken"))
- name: Base message and summary
run:
- if: $rule("First run state")
then:
- if: $countUserPullRequests($getAuthor()) == 1
then: $info("Thanks for your first contribution!")
else: $info("Thanks for your contribution!")
- $warn("Please make sure the CI is green before merging.")
- $summarize()
- name: Enforce conventional commits
run:
- if: $rule("Open PR state")
then: $titleLint()
- name: Enforce head branch deletion
always-run: true
run: $deleteHeadBranch()