Skip to content

Commit

Permalink
Proper name for hgupdate-sync-label
Browse files Browse the repository at this point in the history
Reviewed-by: ehelin
  • Loading branch information
rwestberg committed Sep 5, 2020
1 parent 2830d50 commit ef99a66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public void onNewCommits(HostedRepository repository, Repository localRepository
if (setFixVersion) {
if (requestedVersion != null) {
issue.setProperty("fixVersions", JSON.of(requestedVersion));
Backports.labelReleaseStreamDuplicates(issue, "hgupdater-sync");
Backports.labelReleaseStreamDuplicates(issue, "hgupdate-sync");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ void addBackports(String... versions) {
}

void assertLabeled(String... labeledVersions) {
Backports.labelReleaseStreamDuplicates(issues.get(0), "hgupdater-sync");
Backports.labelReleaseStreamDuplicates(issues.get(0), "hgupdate-sync");

var labels = new HashSet<>(Arrays.asList(labeledVersions));
var labeledIssues = new HashSet<String>();
for (var issue : issues) {
var version = issue.properties().get("fixVersions").get(0).asString();
if (issue.labels().contains("hgupdater-sync")) {
if (issue.labels().contains("hgupdate-sync")) {
labeledIssues.add(version);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -699,10 +699,10 @@ void testSyncLabels(TestInfo testInfo) throws IOException {
localRepo.push(commit, repo.url(), "master");
TestBotRunner.runPeriodicItems(notifyBot);

assertEquals(List.of("hgupdater-sync"), issue1.labels());
assertEquals(List.of("hgupdate-sync"), issue1.labels());
assertEquals(List.of(), issue2.labels());
assertEquals(List.of(), issue3.labels());
assertEquals(List.of("hgupdater-sync"), issue4.labels());
assertEquals(List.of("hgupdate-sync"), issue4.labels());
}
}
}

1 comment on commit ef99a66

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on ef99a66 Sep 5, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.