Added info about tag version

This commit is contained in:
Marcin Grzejszczak
2017-04-11 11:38:52 +02:00
parent dc887aebb7
commit 082e2209c3

View File

@@ -43,11 +43,12 @@ class MilestoneCloser {
"You have to pass Github OAuth token for milestone closing to be operational");
Iterable<Milestone> milestones = milestones(version);
log.info("Successfully received list of milestones");
String tagVersion = version.version;
log.info("Will try to match against tag version [{}]", tagVersion);
boolean matchingMilestone = false;
for (Milestone milestone : milestones) {
Milestone.Smart smartMilestone = new Milestone.Smart(milestone);
try {
String tagVersion = version.version;
if (tagVersion.equals(milestoneTitle(smartMilestone))) {
log.info("Found a matching milestone - closing it");
smartMilestone.close();