-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |