Skip to content

Commit

Permalink
try returning integers
Browse files Browse the repository at this point in the history
  • Loading branch information
carterbox authored Mar 17, 2022
1 parent 93a0602 commit afd12c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/automate-review-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
'conda-forge/help-r',
'conda-forge/help-ruby'
];
let found_label = false;
let found_label = 0;
for (const team of teams) {
let text = context.payload.comment.body;
const regex = new RegExp(team + '[^\-]|' + team + '$');
Expand All @@ -47,7 +47,7 @@
// FIXME: Add the '@' symbol back into replace
label = team.replace("conda-forge/help-", "");
label_no_staged = label.replace("@conda-forge/", "");
found_label = true;
found_label = 1;
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
Expand Down

0 comments on commit afd12c8

Please sign in to comment.