-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate PR contributor policies (#806)
- Loading branch information
Showing
6 changed files
with
119 additions
and
105 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
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
2 changes: 1 addition & 1 deletion
2
.github/policies/pulls-02-feedback.yml → .github/policies/pulls-03-feedback.yml
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
2 changes: 1 addition & 1 deletion
2
.github/policies/pulls-03-respond.yml → .github/policies/pulls-04-respond.yml
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
2 changes: 1 addition & 1 deletion
2
.github/policies/pulls-04-approve.yml → .github/policies/pulls-05-approve.yml
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
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 |
---|---|---|
@@ -0,0 +1,108 @@ | ||
id: pulls-06-contrib | ||
name: GitOps.PullRequestIssueManagement | ||
description: Handles when a PR is opened with specific file paths | ||
owner: | ||
resource: repository | ||
disabled: false | ||
where: | ||
|
||
# spell-checker:disable | ||
configuration: | ||
resourceManagementConfiguration: | ||
eventResponderTasks: | ||
- description: When a PR is reviewed, add as review contributor | ||
if: | ||
- or: | ||
- payloadType: Pull_Request_Review | ||
- payloadType: Pull_Request_Review_Comment | ||
- or: | ||
- isAction: | ||
action: Submitted # for reviews | ||
- isAction: | ||
action: Created # for comments | ||
- not: | ||
targetsBranch: | ||
branch: main | ||
- isActivitySender: | ||
issueAuthor: false | ||
- not: | ||
or: | ||
- isActivitySender: | ||
user: allcontributors | ||
- isActivitySender: | ||
user: aromano2 | ||
- isActivitySender: | ||
user: benshy | ||
- isActivitySender: | ||
user: flanakin | ||
- isActivitySender: | ||
user: helderpinto | ||
- isActivitySender: | ||
user: msbrett | ||
- isActivitySender: | ||
user: springstone | ||
then: | ||
- addReply: | ||
reply: '@all-contributors please add ${contextualAuthor} for review' | ||
- description: When a PR is closed, add as contributor | ||
if: | ||
- payloadType: Pull_Request | ||
- isAction: | ||
action: Closed | ||
- not: | ||
targetsBranch: | ||
branch: main | ||
then: | ||
# all code | ||
- if: | ||
- or: | ||
- filesMatchPattern: | ||
pattern: ^(\.build|\.github|\.vscode|src\/scripts)\/.* | ||
- filesMatchPattern: | ||
pattern: ^src\/.* | ||
- not: | ||
or: | ||
- isActivitySender: | ||
user: aromano2 | ||
- isActivitySender: | ||
user: arthurclares | ||
- isActivitySender: | ||
user: didayal-msft | ||
- isActivitySender: | ||
user: flanakin | ||
- isActivitySender: | ||
user: msbrett | ||
- isActivitySender: | ||
user: nteyan | ||
- isActivitySender: | ||
user: saadmsft | ||
- isActivitySender: | ||
user: sebassem | ||
- isActivitySender: | ||
user: springstone | ||
then: | ||
- addReply: | ||
reply: '@all-contributors please add ${issueAuthor} for code' | ||
# docs | ||
- if: | ||
- filesMatchPattern: | ||
pattern: ^(docs|docs-mslearn|docs-wiki)\/.* | ||
- not: | ||
or: | ||
- isActivitySender: | ||
user: aromano2 | ||
- isActivitySender: | ||
user: benshy | ||
- isActivitySender: | ||
user: flanakin | ||
- isActivitySender: | ||
user: helderpinto | ||
- isActivitySender: | ||
user: msbrett | ||
- isActivitySender: | ||
user: springstone | ||
then: | ||
- addReply: | ||
reply: '@all-contributors please add ${issueAuthor} for doc' | ||
onFailure: | ||
onSuccess: |