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

Commit 698f64c

Browse files
committed
fix(github-actions): add missing return to actually skip owned robots in post-approval action
1 parent 6a329c4 commit 698f64c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ async function runPostApprovalChangesAction(client: Octokit): Promise<void> {
6161

6262
if (googleOwnedRobots.includes(pr.user.login)) {
6363
core.info('PR author is a robot owned by Google. Post approval changes are allowed.');
64+
return;
6465
}
6566

6667
console.debug(`Requested Reviewers: ${pr.requested_reviewers.join(', ')}`);

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25980,6 +25980,7 @@ async function runPostApprovalChangesAction(client) {
2598025980
}
2598125981
if (googleOwnedRobots.includes(pr.user.login)) {
2598225982
core.info("PR author is a robot owned by Google. Post approval changes are allowed.");
25983+
return;
2598325984
}
2598425985
console.debug(`Requested Reviewers: ${pr.requested_reviewers.join(", ")}`);
2598525986
console.debug(`Requested Teams: ${pr.requested_teams.join(", ")}`);

0 commit comments

Comments
 (0)