function removeLabels()

in index.js [321:336]


function removeLabels(context, labelNames) {
    return labelNames && labelNames.length && Promise.all(
        labelNames.map(
            label => context.octokit.issues.removeLabel(
                context.issue({
                    name: label
                })
            ).catch(err => {
                // Ignore error caused by not existing.
                // if (err.message !== 'Not Found') {
                //     throw(err);
                // }
            })
        )
    );
}