Skip to content

Commit e609f3a

Browse files
committed
Remove useless comments
1 parent 7acc24d commit e609f3a

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/reporter/github/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ export default class GitHub {
6565
const updatedExistingLabels = labelsToRemove.length ? await this.getRepositoryLabels() : existingLabels; // Refresh labels after deletion, only if needed
6666
const managedLabelsNames = this.MANAGED_LABELS.map(label => label.name);
6767

68-
// Remove managed labels that are no longer in the MANAGED_LABELS list
6968
const obsoleteManagedLabels = updatedExistingLabels.filter(label =>
7069
label.description
7170
&& label.description.includes(MANAGED_BY_OTA_MARKER)
@@ -79,12 +78,10 @@ export default class GitHub {
7978
}
8079
}
8180

82-
// Refresh labels after obsolete removal
8381
const finalExistingLabels = obsoleteManagedLabels.length ? await this.getRepositoryLabels() : updatedExistingLabels;
8482
const existingLabelsNames = finalExistingLabels.map(label => label.name);
8583
const existingLabelsMap = new Map(finalExistingLabels.map(label => [ label.name, label ]));
8684

87-
// Find labels that need to be created
8885
const missingLabels = this.MANAGED_LABELS.filter(label => !existingLabelsNames.includes(label.name));
8986

9087
if (missingLabels.length) {
@@ -99,7 +96,6 @@ export default class GitHub {
9996
}
10097
}
10198

102-
// Update existing labels if description changed
10399
const labelsToUpdate = this.MANAGED_LABELS.filter(label => {
104100
const existingLabel = existingLabelsMap.get(label.name);
105101

src/reporter/gitlab/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ export default class GitLab {
5959
const updatedExistingLabels = labelsToRemove.length ? await this.getRepositoryLabels() : existingLabels; // Refresh labels after deletion, only if needed
6060
const managedLabelsNames = this.MANAGED_LABELS.map(label => label.name);
6161

62-
// Remove managed labels that are no longer in the MANAGED_LABELS list
6362
const obsoleteManagedLabels = updatedExistingLabels.filter(label =>
6463
label.description
6564
&& label.description.includes(MANAGED_BY_OTA_MARKER)
@@ -73,12 +72,10 @@ export default class GitLab {
7372
}
7473
}
7574

76-
// Refresh labels after obsolete removal
7775
const finalExistingLabels = obsoleteManagedLabels.length ? await this.getRepositoryLabels() : updatedExistingLabels;
7876
const existingLabelsNames = finalExistingLabels.map(label => label.name);
7977
const existingLabelsMap = new Map(finalExistingLabels.map(label => [ label.name, label ]));
8078

81-
// Find labels that need to be created
8279
const missingLabels = this.MANAGED_LABELS.filter(label => !existingLabelsNames.includes(label.name));
8380

8481
if (missingLabels.length) {
@@ -93,7 +90,6 @@ export default class GitLab {
9390
}
9491
}
9592

96-
// Update existing labels if description or color changed
9793
const labelsToUpdate = this.MANAGED_LABELS.filter(label => {
9894
const existingLabel = existingLabelsMap.get(label.name);
9995

0 commit comments

Comments
 (0)