Fixed release notes generation; fixes #53
This commit is contained in:
@@ -96,7 +96,9 @@ class GithubMilestones {
|
||||
try {
|
||||
URL url = foundMilestoneUrl(foundMilestone);
|
||||
log.info("Found a matching milestone with issues URL [{}]", url);
|
||||
return url.toString().replace("https://api.github.com/repos", "https://github.com") + "?closed=1";
|
||||
return url.toString()
|
||||
.replace("https://api.github.com/repos", "https://github.com")
|
||||
.replace("milestones", "milestone")+ "?closed=1";
|
||||
}
|
||||
catch (IOException e) {
|
||||
throw new IllegalStateException(e);
|
||||
|
||||
@@ -2,5 +2,5 @@
|
||||
|
||||
{{ date }}
|
||||
|
||||
{{#each projects}} - {{name}} `{{version}}` ([issues]({{ closedMilestoneUrl }}))
|
||||
{{#each projects}} - {{name}} `{{version}}` {{#if closedMilestoneUrl}}([issues]({{ closedMilestoneUrl }})){{/if}}
|
||||
{{/each}}
|
||||
@@ -118,7 +118,7 @@ public class GithubMilestonesTests {
|
||||
|
||||
String url = milestones.milestoneUrl(gaSleuthProject());
|
||||
|
||||
then(url).isEqualTo("https://github.com/spring-cloud/spring-cloud-sleuth/milestones/33?closed=1");
|
||||
then(url).isEqualTo("https://github.com/spring-cloud/spring-cloud-sleuth/milestone/33?closed=1");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user