Skip to content

Commit 1461035

Browse files
committed
Add missing comment
1 parent 6ead0c8 commit 1461035

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reporter/github/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ export default class GitHub {
206206
const managedLabels = issue.labels.filter(label => managedLabelsNames.includes(label.name));
207207

208208
if (issue.state !== GitHub.ISSUE_STATE_CLOSED && labels.every(label => managedLabels.some(managedLabel => managedLabel.name === label))) {
209-
return;
209+
return; // if all requested labels are already assigned to the issue, the error is redundant with the one already reported and no further action is necessary
210210
}
211211

212212
const updatedIssue = await this.updateIssue(issue, { state: GitHub.ISSUE_STATE_OPEN, labels: [ ...labels, ...labelsNotManagedToKeep ] });

0 commit comments

Comments
 (0)