Skip to content

Commit b77288b

Browse files
committed
fix(parser): fix parsing of get_urly
1 parent 1b0876b commit b77288b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Build.prototype.getter = function (repo, branch, cb) {
132132
output: self.build_manager.config.processing,
133133
repo: repo,
134134
branch: branch,
135-
url: self.ui.get_url ? self.ui.get_url : ''
135+
url: self.ui.data.get_url
136136
});
137137

138138
self.run_command(command, cb);

parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ var GitLab = (function () {
8484
slug: slug,
8585
branch: this.payload.ref.replace(/^refs\/heads\//, ''),
8686
url: this.payload.repository.homepage,
87-
get_url: this.payload.repository.git_ssh_url,
87+
get_url: this.payload.repository.git_ssh_url.split(':')[0],
8888
commit: this.payload.total_commits_count > 0 ? this.payload.commits.slice(-1).message : undefined
8989
});
9090
};

0 commit comments

Comments
 (0)