diff --git a/github-actions/post-approval-changes/lib/main.ts b/github-actions/post-approval-changes/lib/main.ts index fa882d22c..1c631ea75 100644 --- a/github-actions/post-approval-changes/lib/main.ts +++ b/github-actions/post-approval-changes/lib/main.ts @@ -31,6 +31,8 @@ const googlers = [ 'zarend', ]; +const googleOwnedRobots = ['angular-robot']; + async function main() { let installationClient: Octokit | null = null; @@ -57,6 +59,10 @@ async function runPostApprovalChangesAction(client: Octokit): Promise { return; } + if (googleOwnedRobots.includes(pr.user.login)) { + core.info('PR author is a robot owned by Google. Post approval changes are allowed.'); + } + console.debug(`Requested Reviewers: ${pr.requested_reviewers.join(', ')}`); console.debug(`Requested Teams: ${pr.requested_teams.join(', ')}`); diff --git a/github-actions/post-approval-changes/main.js b/github-actions/post-approval-changes/main.js index 4df5ffef9..df8bbac21 100644 --- a/github-actions/post-approval-changes/main.js +++ b/github-actions/post-approval-changes/main.js @@ -25955,6 +25955,7 @@ var googlers = [ "wagnermaciel", "zarend" ]; +var googleOwnedRobots = ["angular-robot"]; async function main() { let installationClient = null; try { @@ -25977,6 +25978,9 @@ async function runPostApprovalChangesAction(client) { core.info("PR author is a googler, skipping as post approval changes are allowed."); return; } + if (googleOwnedRobots.includes(pr.user.login)) { + core.info("PR author is a robot owned by Google. Post approval changes are allowed."); + } console.debug(`Requested Reviewers: ${pr.requested_reviewers.join(", ")}`); console.debug(`Requested Teams: ${pr.requested_teams.join(", ")}`); if ([...pr.requested_reviewers, ...pr.requested_teams].length > 0) {