Skip to content

Commit

Permalink
provide fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
seungpark committed Jun 25, 2024
1 parent 4b89d48 commit 6a3846d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/src/shared/next-gen-parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { Job } from '../../../entities/job';
import { getDirectory } from '../../../job/jobHandler';
import { CliCommandResponse, ExecuteCommandError, executeCliCommand } from '../helpers';

const SNOOTY_PARSER_VERSION = process.env['SNOOTY_PARSER_VERSION'];
const SNOOTY_PARSER_VERSION = process.env['SNOOTY_PARSER_VERSION']
? `v${process.env['SNOOTY_PARSER_VERSION']}`
: 'main';
const RSTSPEC_FLAG = `--rstspec=https://raw.githubusercontent.com/mongodb/snooty-parser/${SNOOTY_PARSER_VERSION}/snooty/rstspec.toml`;
interface NextGenParseParams {
job: Job;
Expand Down

0 comments on commit 6a3846d

Please sign in to comment.