From 59c234cfb40aeb71af401cb58a2a0e1462d9b42d Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Fri, 28 Aug 2020 15:45:48 -0700 Subject: [PATCH] build: add configuration for the caretaker command (#38601) Add configuration information for the new caretaker command PR Close #38601 --- .github/angular-robot.yml | 10 ++-------- .ng-dev/caretaker.ts | 19 +++++++++++++++++++ .ng-dev/config.ts | 2 ++ 3 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 .ng-dev/caretaker.ts diff --git a/.github/angular-robot.yml b/.github/angular-robot.yml index 5df1273332600..06b22363e0ca1 100644 --- a/.github/angular-robot.yml +++ b/.github/angular-robot.yml @@ -73,8 +73,7 @@ merge: - "packages/zone.js/scripts/**" # comment that will be added to a PR when there is a conflict, leave empty or set to false to disable - mergeConflictComment: "Hi @{{PRAuthor}}! This PR has merge conflicts due to recent upstream merges. -\nPlease help to unblock it by resolving these conflicts. Thanks!" + mergeConflictComment: "Hi @{{PRAuthor}}! This PR has merge conflicts due to recent upstream merges.\nPlease help to unblock it by resolving these conflicts. Thanks!" # label to monitor mergeLabel: "action: merge" @@ -121,12 +120,7 @@ merge: # the comment that will be added when the merge label is added despite failing checks, leave empty or set to false to disable # {{MERGE_LABEL}} will be replaced by the value of the mergeLabel option # {{PLACEHOLDER}} will be replaced by the list of failing checks - mergeRemovedComment: "I see that you just added the `{{MERGE_LABEL}}` label, but the following checks are still failing: -\n{{PLACEHOLDER}} -\n -\n**If you want your PR to be merged, it has to pass all the CI checks.** -\n -\nIf you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help." + mergeRemovedComment: "I see that you just added the `{{MERGE_LABEL}}` label, but the following checks are still failing:\n{{PLACEHOLDER}}\n\n**If you want your PR to be merged, it has to pass all the CI checks.**\n\nIf you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help." # options for the triage plugin triage: diff --git a/.ng-dev/caretaker.ts b/.ng-dev/caretaker.ts new file mode 100644 index 0000000000000..e846117ea0eef --- /dev/null +++ b/.ng-dev/caretaker.ts @@ -0,0 +1,19 @@ +import {CaretakerConfig} from '../dev-infra/caretaker/config'; + +/** The configuration for `ng-dev caretaker` commands. */ +export const caretaker: CaretakerConfig = { + githubQueries: [ + { + name: 'Merge Queue', + query: `is:pr is:open status:success label:"action: merge"`, + }, + { + name: 'Merge Assistance Queue', + query: `is:pr is:open status:success label:"action: merge-assistance"`, + }, + { + name: 'Primary Triage Queue', + query: `is:open is:issue no:milestone`, + } + ] +}; diff --git a/.ng-dev/config.ts b/.ng-dev/config.ts index c620e02b730aa..573b9f18475d3 100644 --- a/.ng-dev/config.ts +++ b/.ng-dev/config.ts @@ -1,3 +1,4 @@ +import {caretaker} from './caretaker'; import {commitMessage} from './commit-message'; import {format} from './format'; import {github} from './github'; @@ -8,4 +9,5 @@ module.exports = { format, github, merge, + caretaker, };