Skip to content
Browse files

Automatically link issue numbers in the release notes.

  • Loading branch information...
1 parent e35bada commit eff73202afefe36168335c6f812e8c161a018a6f @alkemist alkemist committed Nov 6, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 subprojects/docs/release-notes-transform.gradle
View
8 subprojects/docs/release-notes-transform.gradle
@@ -211,4 +211,12 @@ decorateReleaseNotes {
body().prepend("<div class='text-container'/>")
body().children()[0].html(bodyContent.outerHtml())
}
+
+ // Turn Gradle issue numbers into issue links
+ transform {
+ def rewritten = body().html().replaceAll(~/GRADLE-\d+/) {
+ "<a href='http://issues.gradle.org/browse/${it}'>${it}</a>"
+ }
+ body().html(rewritten)
+ }
}

0 comments on commit eff7320

Please sign in to comment.
Something went wrong with that request. Please try again.