File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,11 @@ creating the tag.
7575Defines the shell for the changelog. The changelog is created by concatenating
7676the 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
8085Which type of issue tracker is being used for the project. Must be either
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 / )
You can’t perform that action at this time.
0 commit comments