Skip to content

Commit 1ff5952

Browse files
timmywiljzaefferer
authored andcommitted
Changelog and Contributors: Use Release.tracMilestone() for the trac milestone
Closes jquerygh-17
1 parent e2dcfff commit 1ff5952

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ creating the tag.
7575
Defines the shell for the changelog. The changelog is created by concatenating
7676
the shell, the commit log, and the issue list.
7777

78+
#### tracMilestone()
79+
80+
If using Trac, return a different milestone to be used in the queries to
81+
generate a changelog and list of contributors. Defaults to `newVersion`.
82+
7883
#### issueTracker
7984

8085
Which type of issue tracker is being used for the project. Must be either

lib/changelog.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Release.define({
1717
return "";
1818
},
1919

20+
tracMilestone: function() {
21+
return Release.newVersion;
22+
},
23+
2024
_generateCommitChangelog: function() {
2125
var commits,
2226
commitRef = "[%h](http://github.com/jquery/" + Release.project + "/commit/%H)",
@@ -62,7 +66,7 @@ Release.define({
6266

6367
_generateTracChangelog: function() {
6468
console.log( "Adding Trac tickets..." );
65-
return Release.trac( "/query?milestone=" + Release.newVersion + "&resolution=fixed" +
69+
return Release.trac( "/query?milestone=" + Release.tracMilestone() + "&resolution=fixed" +
6670
"&col=id&col=component&col=summary&order=component" ) + "\n";
6771
},
6872

lib/contributors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Release.define({
4545

4646
_gatherTracContributors: function() {
4747
var url = "/report/" + Release.contributorReportId +
48-
"?V=" + Release.newVersion + "&max=-1";
48+
"?V=" + Release.tracMilestone() + "&max=-1";
4949

5050
return Release.trac( url )
5151
.split( /\r?\n/ )

0 commit comments

Comments
 (0)