Skip to content
Permalink
Browse files

Proper name for hgupdate-sync-label

Reviewed-by: ehelin
  • Loading branch information
rwestberg committed Sep 5, 2020
1 parent 2830d50 commit ef99a66a4c06b64de8a7df7cf6130731bd0247fd
@@ -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");
}
}
}
@@ -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);
}
}
@@ -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

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on ef99a66 Sep 5, 2020

Please sign in to comment.
You can’t perform that action at this time.