lostluck commented on a change in pull request #16950: URL: https://github.com/apache/beam/pull/16950#discussion_r815012905
########## File path: scripts/ci/pr-bot/processNewPrs.ts ########## @@ -0,0 +1,220 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +const github = require("./shared/githubUtils"); +const { getChecksStatus } = require("./shared/checks"); +const commentStrings = require("./shared/commentStrings"); +const { ReviewerConfig } = require("./shared/reviewerConfig"); +const { PersistentState } = require("./shared/persistentState"); +const { Pr } = require("./shared/pr"); +const { REPO_OWNER, REPO, PATH_TO_CONFIG_FILE } = require("./shared/constants"); +import { CheckStatus } from "./shared/checks"; + +// Returns true if the pr needs to be processed or false otherwise. +// We don't need to process PRs that: +// 1) Have WIP in their name +// 2) Are less than 20 minutes old +// 3) Are draft prs +// 4) Are closed +// 5) Have already been processed +// 6) Have notifications stopped +// 7) The pr doesn't contain the go label (temporary). TODO(damccorm) - remove this when we're ready to roll this out to everyone. Review comment: Question: After this Go only phase, what happens when a PR has multiple labels? Will it try to assign someone from each label, or will it do some sort of consolidation or limit to # reviewers assigned? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
