We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b243c5 commit 2a52636Copy full SHA for 2a52636
index.js
@@ -2,13 +2,14 @@ var fs = require('fs')
2
3
var releaseMessage = require('./lib/release-message.js')
4
var GithubClient = require('./lib/github-client.js')
5
+var path = require('path')
6
7
module.exports = function createReleasePR (config) {
8
var client = new GithubClient(config)
9
10
return client.prepareReleasePR().then(function (releasePR) {
11
return client.collectReleasePRs(releasePR).then(function (prs) {
- var templatePath = config.template || __dirname + '/release.mustache'
12
+ var templatePath = config.template || path.join(__dirname, 'release.mustache')
13
var template = fs.readFileSync(templatePath, 'utf8')
14
var message = releaseMessage(template, prs)
15
0 commit comments