Commit 4c1c569f authored by Lasse Schuirmann's avatar Lasse Schuirmann

GitLab.handle_webhook: Use right members

Another bug sneaked in.
parent f6f2fb2a
Pipeline #10651924 passed with stages
in 3 minutes and 15 seconds
......@@ -170,17 +170,17 @@ class GitLab(Hoster):
if comment_type == CommentType.MERGE_REQUEST:
iid = data['merge_request']['iid']
iss = GitLabMergeRequest(self._token,
repository['full_name'], iid)
repository['path_with_namespace'], iid)
action = MergeRequestActions.COMMENTED
elif comment_type == CommentType.ISSUE:
iid = data['issue']['iid']
iss = GitLabIssue(self._token, repository['full_name'], iid)
iss = GitLabIssue(self._token, repository['path_with_namespace'], iid)
action = IssueActions.COMMENTED
else:
raise NotImplementedError
return action, [iss, GitLabComment(
self._token, repository['full_name'], iid,
self._token, repository['path_with_namespace'], iid,
comment_type, comment['id']
)]
......
......@@ -51,7 +51,6 @@ class TestGitLabWebhook(unittest.TestCase):
self.default_data = {
'project': {
'path_with_namespace': 'test/test',
'full_name': 'test/test',
},
'object_attributes': {
'id': 12,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment