FIX: bot comments dont count as approves
This commit is contained in:
parent
0aed8e72f9
commit
aad98d9d43
@ -124,6 +124,11 @@ async function run(): Promise<void> {
|
||||
|
||||
approved =
|
||||
Object.values(_approves).filter((el) => el === false).length === 0;
|
||||
|
||||
if (Object.keys(_approves).length === 0) {
|
||||
// no human approves were given, only maybe bot comments
|
||||
approved = false;
|
||||
}
|
||||
}
|
||||
|
||||
if (pr.requested_reviewers.length !== 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user