-
Notifications
You must be signed in to change notification settings - Fork 237
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from rutvijmehta-harness/gitlab_comment
Support parsing Gitlab Note Hook event
- Loading branch information
Showing
6 changed files
with
279 additions
and
101 deletions.
There are no files selected for viewing
File renamed without changes.
94 changes: 94 additions & 0 deletions
94
scm/driver/gitlab/testdata/webhooks/merge_request_comment_create.json.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
{ | ||
"Action": "created", | ||
"Repo": { | ||
"ID": "4861503", | ||
"Namespace": "gitlab-org", | ||
"Name": "hello-world", | ||
"Perm": null, | ||
"Branch": "master", | ||
"Archived": false, | ||
"Private": false, | ||
"Visibility": 0, | ||
"Clone": "https://gitlab.com/gitlab-org/hello-world.git", | ||
"CloneSSH": "git@gitlab.com:gitlab-org/hello-world.git", | ||
"Link": "https://gitlab.com/gitlab-org/hello-world", | ||
"Created": "0001-01-01T00:00:00Z", | ||
"Updated": "0001-01-01T00:00:00Z" | ||
}, | ||
"Issue": { | ||
"Number": 1, | ||
"Title": "update readme", | ||
"Body": "update readme", | ||
"Link": "https://gitlab.com/gitlab-org/hello-world", | ||
"Labels": null, | ||
"Closed": false, | ||
"Locked": false, | ||
"Author": { | ||
"Login": "sytses", | ||
"Name": "Sid Sijbrandij", | ||
"Email": "", | ||
"Avatar": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87?s=80\u0026d=identicon", | ||
"Created": "0001-01-01T00:00:00Z", | ||
"Updated": "0001-01-01T00:00:00Z" | ||
}, | ||
"PullRequest": { | ||
"Number": 1, | ||
"Title": "update readme", | ||
"Body": "adding build instructions to readme", | ||
"Sha": "c4c79227ed610f1151f05bbc5be33b4f340d39c8", | ||
"Ref": "refs/merge-requests/1/head", | ||
"Source": "feature", | ||
"Target": "master", | ||
"Fork": "", | ||
"Link": "https://gitlab.com/gitlab-org/hello-world", | ||
"Diff": "", | ||
"Closed": false, | ||
"Merged": false, | ||
"Base": { | ||
"Name": "", | ||
"Path": "", | ||
"Sha": "" | ||
}, | ||
"Head": { | ||
"Name": "", | ||
"Path": "", | ||
"Sha": "" | ||
}, | ||
"Author": { | ||
"Login": "sytses", | ||
"Name": "Sid Sijbrandij", | ||
"Email": "", | ||
"Avatar": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87?s=80\u0026d=identicon", | ||
"Created": "0001-01-01T00:00:00Z", | ||
"Updated": "0001-01-01T00:00:00Z" | ||
}, | ||
"Created": "2017-12-10T17:01:11Z", | ||
"Updated": "2017-12-10T17:05:14Z", | ||
"Labels": null | ||
}, | ||
"Created": "2017-12-10T17:05:14Z", | ||
"Updated": "2017-12-10T17:05:14Z" | ||
}, | ||
"Comment": { | ||
"ID": 50772616, | ||
"Body": "lgtm", | ||
"Author": { | ||
"Login": "sytses", | ||
"Name": "Sid Sijbrandij", | ||
"Email": "", | ||
"Avatar": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87?s=80\u0026d=identicon", | ||
"Created": "0001-01-01T00:00:00Z", | ||
"Updated": "0001-01-01T00:00:00Z" | ||
}, | ||
"Created": "2017-12-10T17:05:14Z", | ||
"Updated": "2017-12-10T17:05:14Z" | ||
}, | ||
"Sender": { | ||
"Login": "sytses", | ||
"Name": "Sid Sijbrandij", | ||
"Email": "", | ||
"Avatar": "https://secure.gravatar.com/avatar/8c58a0be77ee441bb8f8595b7f1b4e87?s=80\u0026d=identicon", | ||
"Created": "0001-01-01T00:00:00Z", | ||
"Updated": "0001-01-01T00:00:00Z" | ||
} | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.