Skip to content

Commit 0158736

Browse files
author
xiangying
committed
fix
1 parent 161dd0a commit 0158736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci-pulsarbot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
}
8080
const headSha = pr.head.sha;
8181
const prBranch = pr.head.ref;
82-
const prUser = (pr.head && pr.head.user && pr.head.user.login) ? pr.head.user.login : pr.user.login;
82+
const prUser = pr.user.login;
8383
const prUrl = pr.html_url;
8484
console.log(`pulsarbot handling PR #${prNum} ${prUrl}`);
8585
console.log(`PR branch='${prBranch}', headSha='${headSha}', author='${prUser}'`);
@@ -169,7 +169,7 @@ jobs:
169169
}
170170
}
171171
// Command 1: /pulsarbot rerun
172-
if (sub === 'rerun' && !arg) {
172+
if ((sub === 'rerun' || sub === 'rerun-failure-checks') && !arg) {
173173
const targetConclusions = new Set(['failure', 'timed_out', 'cancelled', 'skipped']);
174174
let fullRerunCount = 0;
175175
let skippedRunning = 0;

0 commit comments

Comments
 (0)