Skip to content

Commit 2a52636

Browse files
committed
npm audit fix
1 parent 2b243c5 commit 2a52636

File tree

3 files changed

+1310
-1993
lines changed

3 files changed

+1310
-1993
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ var fs = require('fs')
22

33
var releaseMessage = require('./lib/release-message.js')
44
var GithubClient = require('./lib/github-client.js')
5+
var path = require('path')
56

67
module.exports = function createReleasePR (config) {
78
var client = new GithubClient(config)
89

910
return client.prepareReleasePR().then(function (releasePR) {
1011
return client.collectReleasePRs(releasePR).then(function (prs) {
11-
var templatePath = config.template || __dirname + '/release.mustache'
12+
var templatePath = config.template || path.join(__dirname, 'release.mustache')
1213
var template = fs.readFileSync(templatePath, 'utf8')
1314
var message = releaseMessage(template, prs)
1415

0 commit comments

Comments
 (0)