From fe5c63b25a4a4a04972261458902a12b17f8fcfe Mon Sep 17 00:00:00 2001 From: Patrick Hulce Date: Thu, 13 Feb 2020 20:17:32 -0600 Subject: [PATCH] misc: add git3po script for PR assignees --- .../scripts/git3po-rules/pr-assignee.yaml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 lighthouse-core/scripts/git3po-rules/pr-assignee.yaml diff --git a/lighthouse-core/scripts/git3po-rules/pr-assignee.yaml b/lighthouse-core/scripts/git3po-rules/pr-assignee.yaml new file mode 100644 index 000000000000..6990f0a38d55 --- /dev/null +++ b/lighthouse-core/scripts/git3po-rules/pr-assignee.yaml @@ -0,0 +1,22 @@ +# Assign the first requested reviewer +repo: GoogleChrome/lighthouse +pullRequests: true +filters: + - type: issue + criteria: + state: open + createdAt: + # we started the single-reviewer policy around 2/1/2020 + $gt: '%%date(feb 1 2020)%%' + 'assignees.length': + $eq: 0 + 'reviewers.length': + $eq: 1 + - type: label + label: chillin ❄ + negate: true +actions: + - type: add_assignee + login: '%%reviewer%%' + - type: add_label + label: waiting4reviewer