Skip to content

Commit

Permalink
fix(gitlab): fix repo using input and not parsed output
Browse files Browse the repository at this point in the history
  • Loading branch information
dsevillamartin committed Feb 17, 2018
1 parent 101ab7a commit 7797844
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Gitlab/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@ module.exports = (str) => {
const domain = url && url[2];
const parsed = regex.exec(str.replace(urlRegex, ''));

const repo = `${parsed[1]}/${parsed[3]}`;

return parsed ? {
repo,
host: domain,
isGitlab: !domain || domain === 'gitlab.com',
repo: parsed[0],
repository: parsed[0],
repository: repo,
owner: parsed[1],
group: parsed[2],
name: parsed[3],
Expand Down

0 comments on commit 7797844

Please sign in to comment.