Skip to content

Commit 37262be

Browse files
committed
Call updateBranch for main
1 parent 2d029bd commit 37262be

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pr-checks/sync-checks.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ async function updateBranch(
136136
branch: string,
137137
checkNames: Set<string>,
138138
) {
139+
console.info(`Updating '${branch}'...`);
140+
139141
// Query the current set of required checks for this branch.
140142
const currentContexts = await client.rest.repos.getAllStatusCheckContexts({
141143
...codeqlActionRepo,
@@ -209,6 +211,9 @@ async function main(): Promise<void> {
209211
const checkInfos = await getChecksFor(client, options.ref);
210212
const checkNames = new Set(checkInfos.map((info) => info.context));
211213

214+
// Update the main branch.
215+
await updateBranch(client, "main", checkNames);
216+
212217
// Retrieve the refs of the release branches.
213218
const releaseBranches = await getReleaseBranches(client);
214219
console.info(
@@ -236,7 +241,6 @@ async function main(): Promise<void> {
236241
);
237242
continue;
238243
} else {
239-
console.info(`Updating '${releaseBranch}'...`);
240244
await updateBranch(client, releaseBranch, checkNames);
241245
}
242246
}

0 commit comments

Comments
 (0)