File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11'use strict' ;
22
3- var githubReleaseNotes = require ( './lib/index' ) ;
3+ var GithubReleaseNotes = require ( './src/index' ) ;
4+ var gren = new GithubReleaseNotes ( ) ;
5+
6+ gren . release ( ) ;
Original file line number Diff line number Diff line change 22 "name" : " github-release-notes" ,
33 "version" : " 0.2.0" ,
44 "description" : " Node module to publish release notes based on commits between the last two tags." ,
5- "main" : " ./src/index .js" ,
5+ "main" : " ./github-release-notes .js" ,
66 "scripts" : {
77 "start" : " node github-release-notes.js" ,
88 "test" : " echo \" Error: no test specified\" && exit 1"
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ function createBody(message) {
4444/**
4545 * Transforms the commits to commit messages
4646 *
47- * @param {[ Object] } commits The array of object containing the commits
47+ * @param {Object[ ] } commits The array of object containing the commits
4848 *
49- * @return {Array }
49+ * @return {String[] }
5050 */
5151function commitMessages ( commits ) {
5252 return commits . map ( function ( commitObject ) {
@@ -204,7 +204,7 @@ function GithubReleaseNotes(options) {
204204/**
205205 * Get All the tags, get the dates, get the commits between those dates and prepeare the release
206206 */
207- GithubReleaseNotes . prototype . init = function ( ) {
207+ GithubReleaseNotes . prototype . release = function ( ) {
208208 var that = this ;
209209
210210 getLatestRelease ( that ) . then ( function ( releaseTagName ) {
@@ -224,7 +224,4 @@ GithubReleaseNotes.prototype.init = function() {
224224 } ) ;
225225} ;
226226
227- var gren = new GithubReleaseNotes ( ) ;
228- gren . init ( ) ;
229-
230227module . exports = GithubReleaseNotes ;
You can’t perform that action at this time.
0 commit comments