Skip to content

Commit

Permalink
gh-actions/retest: Fix for bot reaction (#803)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Aug 21, 2023
1 parent d6bb52e commit ab09173
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gh-actions/retest/dist/index.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions gh-actions/retest/retest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -343,9 +343,16 @@ class RetestCommands {

retest = async (): Promise<void> => {
let retested = 0
let isRetest = false
for (const retester of this.retesters) {
if (retester.isRetest) {
isRetest = true
}
retested += await retester.retest()
}
if (!isRetest) {
return
}
if (retested === 0) {
await this.addReaction('confused')
} else {
Expand Down

0 comments on commit ab09173

Please sign in to comment.