Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Oct 10, 2024
1 parent a6f15da commit 5160fb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/grunt/tasks/cherry-pick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,12 @@ import getOption from './util/getOption.ts';
const repo = getOption( 'repo' );

assert( repo, 'Requires specifying a repository with --repo={{REPOSITORY}}' );
assert( getOption( 'shas' ), 'Requires specifying a comma-separated list of SHAs with --shas={{SHAS}}' );
const shasString = getOption( 'shas' );
assert( shasString, 'Requires specifying a comma-separated list of SHAs with --shas={{SHAS}}' );

assertIsValidRepoName( repo );

const shas = getOption( 'shas' ).split( ',' );
const shas = shasString.split( ',' );

await cherryPick( repo, shas );
} )();

0 comments on commit 5160fb8

Please sign in to comment.