豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 7b43ff7

Browse files
committed
feat(github-actions): skip angular-robot in postapproval action
The Angular Robot is used for Renovate, and when Renovate pushes a small update / or rebases upon conflicts, we should not need another explicit review. All actions performed by the `angular-robot` are managed by Googlers, so this account should be able to skip the post approval checks.
1 parent 30d0711 commit 7b43ff7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

github-actions/post-approval-changes/lib/main.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const googlers = [
3131
'zarend',
3232
];
3333

34+
const googleOwnedRobots = ['angular-robot'];
35+
3436
async function main() {
3537
let installationClient: Octokit | null = null;
3638

@@ -57,6 +59,10 @@ async function runPostApprovalChangesAction(client: Octokit): Promise<void> {
5759
return;
5860
}
5961

62+
if (googleOwnedRobots.includes(pr.user.login)) {
63+
core.info('PR author is a robot owned by Google. Post approval changes are allowed.');
64+
}
65+
6066
console.debug(`Requested Reviewers: ${pr.requested_reviewers.join(', ')}`);
6167
console.debug(`Requested Teams: ${pr.requested_teams.join(', ')}`);
6268

github-actions/post-approval-changes/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25955,6 +25955,7 @@ var googlers = [
2595525955
"wagnermaciel",
2595625956
"zarend"
2595725957
];
25958+
var googleOwnedRobots = ["angular-robot"];
2595825959
async function main() {
2595925960
let installationClient = null;
2596025961
try {
@@ -25977,6 +25978,9 @@ async function runPostApprovalChangesAction(client) {
2597725978
core.info("PR author is a googler, skipping as post approval changes are allowed.");
2597825979
return;
2597925980
}
25981+
if (googleOwnedRobots.includes(pr.user.login)) {
25982+
core.info("PR author is a robot owned by Google. Post approval changes are allowed.");
25983+
}
2598025984
console.debug(`Requested Reviewers: ${pr.requested_reviewers.join(", ")}`);
2598125985
console.debug(`Requested Teams: ${pr.requested_teams.join(", ")}`);
2598225986
if ([...pr.requested_reviewers, ...pr.requested_teams].length > 0) {

0 commit comments

Comments
 (0)