diff --git a/js/common/Maintenance.js b/js/common/Maintenance.js index 2a01ff14..d5429a7f 100644 --- a/js/common/Maintenance.js +++ b/js/common/Maintenance.js @@ -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}` ); diff --git a/js/grunt/Gruntfile.js b/js/grunt/Gruntfile.js index 7784a093..d874bb79 100644 --- a/js/grunt/Gruntfile.js +++ b/js/grunt/Gruntfile.js @@ -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 ) {