Skip to content

Commit 9971f67

Browse files
authored
Merge pull request #38818 from github/repo-sync
Repo sync
2 parents 72993cd + 09e8b9f commit 9971f67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rest/scripts/update-files.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ program
5050
`The source repositories to get the dereferenced files from. When the source repo is ${REST_API_DESCRIPTION_ROOT}, the bundler is not run to generate the source dereferenced OpenAPI files because the ${REST_API_DESCRIPTION_ROOT} repo already contains them.`,
5151
)
5252
.choices(['github', REST_API_DESCRIPTION_ROOT, MODELS_GATEWAY_ROOT])
53-
.default('github', 'github'),
53+
.default(['github', MODELS_GATEWAY_ROOT]),
5454
)
5555
.option(
5656
'-v --versions [VERSIONS...]',
@@ -236,7 +236,7 @@ async function validateInputParameters(): Promise<void> {
236236

237237
// The `--decorate-only` option cannot be used
238238
// with the `--include-deprecated` or `--include-unpublished` options
239-
if ((includeDeprecated || includeUnpublished) && !sourceRepos.include('github')) {
239+
if ((includeDeprecated || includeUnpublished) && !sourceRepos.includes('github')) {
240240
const errorMsg = `🛑 You cannot use the decorate-only option with include-unpublished or include-deprecated because the include-unpublished and include-deprecated options are only available when running the bundler. The decorate-only option skips running the bundler.\nPlease reach out to #docs-engineering if a new use case should be supported.`
241241
throw new Error(errorMsg)
242242
}

0 commit comments

Comments
 (0)