Skip to content

Commit 661a8fb

Browse files
committed
Default ref to main
1 parent e7c7b68 commit 661a8fb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pr-checks/sync-checks.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ async function main(): Promise<void> {
224224
// The git ref for which to retrieve the check runs.
225225
ref: {
226226
type: "string",
227+
default: "main",
227228
},
228229
// By default, we perform a dry-run. Setting `apply` to `true` actually applies the changes.
229230
apply: {
@@ -242,9 +243,6 @@ async function main(): Promise<void> {
242243
if (options.token === undefined) {
243244
throw new Error("Missing --token");
244245
}
245-
if (options.ref === undefined) {
246-
throw new Error("Missing --ref");
247-
}
248246

249247
console.info(
250248
`Oldest supported major version is: ${OLDEST_SUPPORTED_MAJOR_VERSION}`,

0 commit comments

Comments
 (0)