From b1ae31c71227be72b4107a3410dbc438766e079b Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Mon, 26 Apr 2021 15:42:10 -0700 Subject: [PATCH] fix(dev-infra): add github token requirement for discover-new-conflicts (#41825) Add the github token option/requirement for the pr discover-new-conflicts command. PR Close #41825 --- dev-infra/ng-dev.js | 2 +- dev-infra/pr/discover-new-conflicts/cli.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-infra/ng-dev.js b/dev-infra/ng-dev.js index 931f4b5962..16f5dd1ba7 100755 --- a/dev-infra/ng-dev.js +++ b/dev-infra/ng-dev.js @@ -3313,7 +3313,7 @@ function cleanUpGitState(previousBranchOrRevision) { */ /** Builds the discover-new-conflicts pull request command. */ function buildDiscoverNewConflictsCommand(yargs) { - return yargs + return addGithubTokenOption(yargs) .option('date', { description: 'Only consider PRs updated since provided date', defaultDescription: '30 days ago', diff --git a/dev-infra/pr/discover-new-conflicts/cli.ts b/dev-infra/pr/discover-new-conflicts/cli.ts index 27f83b69e9..11e4cd0f24 100644 --- a/dev-infra/pr/discover-new-conflicts/cli.ts +++ b/dev-infra/pr/discover-new-conflicts/cli.ts @@ -9,6 +9,7 @@ import {Arguments, Argv} from 'yargs'; import {error} from '../../utils/console'; +import {addGithubTokenOption} from '../../utils/git/github-yargs'; import {discoverNewConflictsForPr} from './index'; @@ -21,7 +22,7 @@ export interface DiscoverNewConflictsCommandOptions { /** Builds the discover-new-conflicts pull request command. */ export function buildDiscoverNewConflictsCommand(yargs: Argv): Argv { - return yargs + return addGithubTokenOption(yargs) .option('date', { description: 'Only consider PRs updated since provided date', defaultDescription: '30 days ago',