Skip to content

Commit a14cf74

Browse files
committed
Build: Remove summary from changelog.
1 parent 1827b39 commit a14cf74

File tree

2 files changed

+2
-37
lines changed

2 files changed

+2
-37
lines changed

build/release/changelog-shell

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ DELETE EVERYTHING ABOVE THE FOLLOWING LINE
2222
"title": "{title}"
2323
}</script>
2424

25-
## Summary
26-
{summary}
27-
2825
## Build
2926

3027
## Core &amp; Utilities

build/release/release.js

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env node
22

3-
var baseDir, repoDir, majorMinorVersion, patchVersion, prevVersion, newVersion,
4-
nextVersion, tagTime,
3+
var baseDir, repoDir, prevVersion, newVersion, nextVersion, tagTime,
54
fs = require( "fs" ),
65
path = require( "path" ),
76
// support: node <0.8
@@ -110,8 +109,6 @@ function getVersions() {
110109
abort( "This script is not smart enough to handle the 2.0.0 release." );
111110
}
112111

113-
majorMinorVersion = [ major, minor ].join( "." );
114-
patchVersion = patch;
115112
prevVersion = patch === 0 ?
116113
[ major, minor - 1, 0 ].join( "." ) :
117114
[ major, minor, patch - 1 ].join( "." );
@@ -197,12 +194,7 @@ function generateChangelog() {
197194
changelog = cat( "build/release/changelog-shell" ) + "\n",
198195
fullFormat = "* %s (TICKETREF, [%h](http://github.com/jquery/jquery-ui/commit/%H))";
199196

200-
changelog = changelog
201-
.replace( "{title}", "jQuery UI " + newVersion + " Changelog" )
202-
.replace( "{summary}", patchVersion === 0 ?
203-
"This is the final release of jQuery UI " + majorMinorVersion + "." :
204-
"This is the " + ordinal( patchVersion ) + " maintenance release for " +
205-
"[jQuery UI " + majorMinorVersion + "](/changelog/" + majorMinorVersion + ")." );
197+
changelog = changelog.replace( "{title}", "jQuery UI " + newVersion + " Changelog" );
206198

207199
echo ( "Adding commits..." );
208200
commits = gitLog( fullFormat );
@@ -330,30 +322,6 @@ function writePackage( pkg ) {
330322
JSON.stringify( pkg, null, "\t" ) + "\n" );
331323
}
332324

333-
function ordinal( number ) {
334-
return number === 1 ? "first" :
335-
number === 2 ? "second" :
336-
number === 3 ? "third" :
337-
number === 4 ? "fourth" :
338-
number === 5 ? "fifth" :
339-
number === 6 ? "sixth" :
340-
number === 7 ? "seventh" :
341-
number === 8 ? "eighth" :
342-
number === 9 ? "ninth" :
343-
number === 10 ? "tenth" :
344-
number === 11 ? "eleventh" :
345-
number === 12 ? "twelfth" :
346-
number === 13 ? "thirteenth" :
347-
number === 14 ? "fourteenth" :
348-
number === 15 ? "fifteenth" :
349-
number === 16 ? "sixteenth" :
350-
number === 17 ? "seventeenth" :
351-
number === 18 ? "eighteenth" :
352-
number === 19 ? "nineteenth" :
353-
number === 20 ? "twentieth" :
354-
"twenty " + ordinal( number - 20 );
355-
}
356-
357325
function bootstrap( fn ) {
358326
console.log( "Determining directories..." );
359327
baseDir = process.cwd() + "/__release";

0 commit comments

Comments
 (0)