Skip to content

Commit ada3ca6

Browse files
committed
fix: approvals
1 parent 5999fae commit ada3ca6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/awscdk-app-ts.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class AwsCdkTypeScriptApp extends awscdk.AwsCdkTypeScriptApp {
6868
const conditions: Array<string> = [];
6969
conditions.push("github.event.pull_request.user.login == 'dependabot[bot]'");
7070
conditions.push("contains(github.event.pull_request.labels.*.name, 'auto-approve'");
71-
conditions.push("#approved-reviews-by>=1");
71+
conditions.push("github.event.review.state == 'approved'");
7272

7373
const mergeJob: Job = {
7474
runsOn: ["ubuntu-latest"],
@@ -89,6 +89,7 @@ export class AwsCdkTypeScriptApp extends awscdk.AwsCdkTypeScriptApp {
8989
MERGE_FORKS: "false",
9090
MERGE_RETRY_SLEEP: "60000",
9191
MERGE_DELETE_BRANCH: "true",
92+
MERGE_REQUIRED_APPROVALS: "1",
9293
},
9394
},
9495
],

0 commit comments

Comments
 (0)