Skip to content

Commit

Permalink
fix a couple more cases that were filtering with a repo arg instead o…
Browse files Browse the repository at this point in the history
…f a releaseBranch, #318
  • Loading branch information
zepumph committed May 5, 2023
1 parent 6421058 commit a1765a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/common/Maintenance.js
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ module.exports = ( function() {
if ( errorIfMissing ) {
throw new Error( `Could not find a tracked modified branch for ${repo} ${branch}` );
}
releaseBranches = releaseBranches || await Maintenance.getMaintenanceBranches( testRepo => testRepo === repo );
releaseBranches = releaseBranches || await Maintenance.getMaintenanceBranches( releaseBranch => releaseBranch.repo === repo );
const releaseBranch = releaseBranches.find( release => release.repo === repo && release.branch === branch );
assert( releaseBranch, `Could not find a release branch for repo=${repo} branch=${branch}` );

Expand Down
2 changes: 1 addition & 1 deletion js/grunt/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ module.exports = function( grunt ) {

assert( order === 'alphabetical' || order === 'date' );

const branches = await Maintenance.getMaintenanceBranches( filterRepo => !repo || filterRepo === repo, true, true );
const branches = await Maintenance.getMaintenanceBranches( releaseBranch => !repo || releaseBranch.repo === repo, true, true );

let structures = [];
for ( const branch of branches ) {
Expand Down

0 comments on commit a1765a9

Please sign in to comment.