Installing dependencies.
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
function prNumber(pr) {
|
||||
return (/\d+(?!.*\d+)/.exec(pr) || [])[0];
|
||||
}
|
||||
|
||||
function parseBranch(branch) {
|
||||
return branch ? /^(?:refs\/heads\/)?(?<branch>.+)$/i.exec(branch)[1] : undefined;
|
||||
}
|
||||
|
||||
module.exports = {prNumber, parseBranch};
|
||||
Reference in New Issue
Block a user