Move outside loop
'@conda-forge/help-r',
'@conda-forge/help-ruby'
];
+ let found_label = false;
for (const team of teams) {
let text = context.payload.comment.body;
const regex = new RegExp(team + '[^\-]|' + team + '$');
let result = regex.test(text);
- let found_label = false;
if (result) {
label = team.replace("@conda-forge/help-", "");
label_no_staged = label.replace("@conda-forge/", "");
