Skip to content

Commit aad98d9

Browse files
committed
FIX: bot comments dont count as approves
1 parent 0aed8e7 commit aad98d9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,11 @@ async function run(): Promise<void> {
124124

125125
approved =
126126
Object.values(_approves).filter((el) => el === false).length === 0;
127+
128+
if (Object.keys(_approves).length === 0) {
129+
// no human approves were given, only maybe bot comments
130+
approved = false;
131+
}
127132
}
128133

129134
if (pr.requested_reviewers.length !== 0) {

0 commit comments

Comments
 (0)