Fixed notes milestones link; fixes #55

This commit is contained in:
Marcin Grzejszczak
2017-10-31 17:18:32 +01:00
parent 5ff0d3e099
commit 1c786e25e9
2 changed files with 4 additions and 4 deletions

View File

@@ -2,5 +2,5 @@
{{ date }}
{{#each projects}} - {{name}} `{{version}}` {{#if closedMilestoneUrl}}([issues]({{ closedMilestoneUrl }})){{/if}}
{{#each projects}} - {{name}} `{{version}}` {{#if closedMilestoneUrl}}([issues]({{{ closedMilestoneUrl }}})){{/if}}
{{/each}}

View File

@@ -256,7 +256,7 @@ public class TemplateGeneratorTests {
throws IOException {
ProjectGitHandler handler = new ProjectGitHandler(this.props) {
@Override public String milestoneUrl(ProjectVersion releaseVersion) {
return "http://foo.bar.com";
return "http://foo.bar.com?closed=1";
}
};
this.props.getPom().setBranch("Dalston.RC1");
@@ -272,8 +272,8 @@ public class TemplateGeneratorTests {
then(content(generatedOutput))
.contains("# Dalston.RC1")
.contains("Spring Cloud Sleuth `1.0.0.RC1` ([issues](http://foo.bar.com))")
.contains("Spring Cloud Consul `1.0.1.RC1` ([issues](http://foo.bar.com))")
.contains("Spring Cloud Sleuth `1.0.0.RC1` ([issues](http://foo.bar.com?closed=1))")
.contains("Spring Cloud Consul `1.0.1.RC1` ([issues](http://foo.bar.com?closed=1))")
.doesNotContain("Boot");
}