-
Notifications
You must be signed in to change notification settings - Fork 619
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not build accepted merge requests unless specified so in the confi…
…guration. The combination of state and action upon approval is "updated" and "approved". Therefore such combination cannot be excluded by using logical or. Therefore the meaning of the arguments to MergeRequestHookTriggerHandlerImpl changed, and tests were adjusted properly.
- Loading branch information
Patrik Dudits
committed
Mar 13, 2018
1 parent
80c3786
commit cf2e15d
Showing
5 changed files
with
107 additions
and
6 deletions.
There are no files selected for viewing
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
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
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
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
77 changes: 77 additions & 0 deletions
77
...st/resources/com/dabsquared/gitlabjenkins/webhook/build/MergeRequestEvent_approvedMR.json
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,77 @@ | ||
{ | ||
"object_kind": "merge_request", | ||
"user": { | ||
"name": "Administrator", | ||
"username": "root", | ||
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40\u0026d=identicon" | ||
}, | ||
"object_attributes": { | ||
"id": 99, | ||
"target_branch": "master", | ||
"source_branch": "ms-viewport", | ||
"source_project_id": 14, | ||
"author_id": 51, | ||
"assignee_id": 6, | ||
"title": "MS-Viewport", | ||
"created_at": "2013-12-03T17:23:34.123Z", | ||
"updated_at": "2013-12-03T17:23:34.123Z", | ||
"st_commits": null, | ||
"st_diffs": null, | ||
"milestone_id": null, | ||
"state": "opened", | ||
"merge_status": "unchecked", | ||
"target_project_id": 14, | ||
"iid": 1, | ||
"description": "", | ||
"source": { | ||
"name": "Awesome Project", | ||
"description": "Aut reprehenderit ut est.", | ||
"web_url": "http://example.com/awesome_space/awesome_project", | ||
"avatar_url": null, | ||
"git_ssh_url": "git@example.com:awesome_space/awesome_project.git", | ||
"git_http_url": "http://example.com/awesome_space/awesome_project.git", | ||
"namespace": "Awesome Space", | ||
"visibility_level": 20, | ||
"path_with_namespace": "awesome_space/awesome_project", | ||
"default_branch": "master", | ||
"homepage": "http://example.com/awesome_space/awesome_project", | ||
"url": "http://example.com/awesome_space/awesome_project.git", | ||
"ssh_url": "git@example.com:awesome_space/awesome_project.git", | ||
"http_url": "http://example.com/awesome_space/awesome_project.git" | ||
}, | ||
"target": { | ||
"name": "Awesome Project", | ||
"description": "Aut reprehenderit ut est.", | ||
"web_url": "http://example.com/awesome_space/awesome_project", | ||
"avatar_url": null, | ||
"git_ssh_url": "git@example.com:awesome_space/awesome_project.git", | ||
"git_http_url": "http://example.com/awesome_space/awesome_project.git", | ||
"namespace": "Awesome Space", | ||
"visibility_level": 20, | ||
"path_with_namespace": "awesome_space/awesome_project", | ||
"default_branch": "master", | ||
"homepage": "http://example.com/awesome_space/awesome_project", | ||
"url": "http://example.com/awesome_space/awesome_project.git", | ||
"ssh_url": "git@example.com:awesome_space/awesome_project.git", | ||
"http_url": "http://example.com/awesome_space/awesome_project.git" | ||
}, | ||
"last_commit": { | ||
"id": "${commitSha1}", | ||
"message": "fixed readme", | ||
"timestamp": "2012-01-03T23:36:29+02:00", | ||
"url": "http://example.com/awesome_space/awesome_project/commits/da1560886d4f094c3e6c9ef40349f7d38b5d27d7", | ||
"author": { | ||
"name": "GitLab dev user", | ||
"email": "gitlabdev@dv6700.(none)" | ||
} | ||
}, | ||
"work_in_progress": false, | ||
"url": "http://example.com/diaspora/merge_requests/1", | ||
"action": "approved", | ||
"assignee": { | ||
"name": "User1", | ||
"username": "user1", | ||
"avatar_url": "http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=40\u0026d=identicon" | ||
} | ||
} | ||
} |