MCPcopy Create free account
hub / github.com/angular/dev-infra / builder

Function builder

ng-dev/pr/discover-new-conflicts/cli.ts:23–32  ·  view source on GitHub ↗

Builds the discover-new-conflicts pull request command.

(argv: Argv)

Source from the content-addressed store, hash-verified

21
22/** Builds the discover-new-conflicts pull request command. */
23function builder(argv: Argv): Argv<DiscoverNewConflictsOptions> {
24 return addGithubTokenOption(argv)
25 .option('date', {
26 description: 'Only consider PRs updated since provided date',
27 defaultDescription: '30 days ago',
28 coerce: (date) => (typeof date === 'number' ? date : Date.parse(date)),
29 default: getThirtyDaysAgoDate(),
30 })
31 .positional('pr', {demandOption: true, type: 'number'});
32}
33
34/** Handles the discover-new-conflicts pull request command. */
35async function handler({pr, date}: Arguments<DiscoverNewConflictsOptions>) {

Callers

nothing calls this directly

Calls 2

addGithubTokenOptionFunction · 0.85
getThirtyDaysAgoDateFunction · 0.85

Tested by

no test coverage detected