Skip to content

Commit

Permalink
Rename back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Dec 30, 2020
1 parent 00c293d commit 156a6be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/plugin/commands/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const manifest = require( '../../../package.json' );
*
* @type {Record<string,string>}
*/
const LABEL_MAPPING = {
const LABEL_TYPE_MAPPING = {
'[Block] Navigation': 'Experiments',
'[Block] Query': 'Experiments',
'[Block] Post Comments Count': 'Experiments',
Expand Down Expand Up @@ -150,9 +150,9 @@ function getTypesByLabels( labels ) {
return uniq(
labels
.filter( ( label ) =>
Object.keys( LABEL_MAPPING ).includes( label )
Object.keys( LABEL_TYPE_MAPPING ).includes( label )
)
.map( ( label ) => LABEL_MAPPING[ label ] )
.map( ( label ) => LABEL_TYPE_MAPPING[ label ] )
);
}

Expand Down Expand Up @@ -202,7 +202,7 @@ function getIssueType( issue ) {
*/
function sortType( a, b ) {
const [ aIndex, bIndex ] = [ a, b ].map( ( title ) => {
return Object.keys( LABEL_MAPPING ).indexOf( title );
return Object.keys( LABEL_TYPE_MAPPING ).indexOf( title );
} );

return aIndex - bIndex;
Expand Down

0 comments on commit 156a6be

Please sign in to comment.