Builds the discover-new-conflicts pull request command.
(argv: Argv)
| 21 | |
| 22 | /** Builds the discover-new-conflicts pull request command. */ |
| 23 | function 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. */ |
| 35 | async function handler({pr, date}: Arguments<DiscoverNewConflictsOptions>) { |
nothing calls this directly
no test coverage detected