feat(dev-infra): create rebase-pr tool in ng-dev (#37055)
Creates a tool in ng-dev which rebases a PR automatically and pushes the rebase commits back to the PR. This is meant to be a replacement to the local merge script currently in the repo and currently has feature parity. PR Close #37055
This commit is contained in:

committed by
Kara Erickson

parent
5ac5ac1dec
commit
009f394237
@ -10,6 +10,7 @@ import * as yargs from 'yargs';
|
||||
|
||||
import {buildDiscoverNewConflictsCommand, handleDiscoverNewConflictsCommand} from './discover-new-conflicts/cli';
|
||||
import {buildMergeCommand, handleMergeCommand} from './merge/cli';
|
||||
import {buildRebaseCommand, handleRebaseCommand} from './rebase/cli';
|
||||
|
||||
/** Build the parser for pull request commands. */
|
||||
export function buildPrParser(localYargs: yargs.Argv) {
|
||||
@ -21,6 +22,9 @@ export function buildPrParser(localYargs: yargs.Argv) {
|
||||
'discover-new-conflicts <pr-number>',
|
||||
'Check if a pending PR causes new conflicts for other pending PRs',
|
||||
buildDiscoverNewConflictsCommand, handleDiscoverNewConflictsCommand)
|
||||
.command(
|
||||
'rebase <pr-number>', 'Rebase a pending PR and push the rebased commits back to Github',
|
||||
buildRebaseCommand, handleRebaseCommand);
|
||||
}
|
||||
|
||||
if (require.main === module) {
|
||||
|
Reference in New Issue
Block a user