Skip to content

Commit 9bb8fa2

Browse files
committed
code style lint 💄
1 parent 332aec9 commit 9bb8fa2

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

lib/plugins/issues.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ module.exports = class Issues extends Plugin {
6060
const titleTemplate = handlebars.compile(content.title)(context.payload)
6161
const bodyTemplate = handlebars.compile(body)(context.payload)
6262

63-
return context.github.issues.create(context.repo({title: titleTemplate, body: bodyTemplate, assignees: content.assignees, labels: content.labels}))
63+
return context.github.issues.create(context.repo({
64+
title: titleTemplate,
65+
body: bodyTemplate,
66+
assignees: content.assignees,
67+
labels: content.labels
68+
}))
6469
})
6570
}
6671
}

lib/util/github-url.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
const REGEX = /^(?:([\w-]+)\/([\w-]+):)?([^#]*)(?:#(.*))?$/
22

3-
// Parses paths in the form of `owner/repo:path/to/file#ref`
3+
/**
4+
* Parses paths
5+
*
6+
* @param url in the form of `owner/repo:path/to/file#ref`
7+
* @param source to merge
8+
* @returns {Object}
9+
*/
410
module.exports = function (url, source) {
511
const [, owner, repo, path, ref] = url.match(REGEX)
612
return Object.assign({}, source, {path}, owner && {owner, repo}, ref && {ref})

0 commit comments

Comments
 (0)