Skip to content

Commit

Permalink
test: new configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ruilopesm committed Aug 17, 2023
1 parent b55081f commit 475f273
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions reviewpad.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
rules:
- name: Open PR state
spec: '!$isDraft() && $getState() == "open"'

- name First run state
spec: '$getEventType == "opened" && $rule("Open PR state)'

workflows:
- name: Request review from maintainers
run:
- if: "!$isDraft() && $getEventType() == 'opened' && $getState() == 'open'"
- if: $rule("First run state")
then: $addReviewers($getTeamMembers("atomic-23/24"))

- name: Base message and summary
run:
- if: $countUserPullRequests($getAuthor()) == 1
then: $info("Thanks for your first contribution!")
- $info("Thanks for your contribution!")
- $warn("Please make sure the CI is green before merging.")
- if: "!$isDraft() && $getEventType() == 'opened' && $getState() == 'open'"
- if: $rule("Open PR state")
then: $summarize()

- name: Enforce head branch deletion
run: $deleteHeadBranch()

0 comments on commit 475f273

Please sign in to comment.