Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conditional trigger #2

Closed
tomasbjerre opened this issue Mar 12, 2017 · 0 comments
Closed

Conditional trigger #2

tomasbjerre opened this issue Mar 12, 2017 · 0 comments

Comments

@tomasbjerre
Copy link
Contributor

Trigger only if variable resolves to a specific value.

Usa case is to trigger only when object_kind is merge_request.

{"object_kind":"merge_request","user":{"name":"Administrator","username":"root","avatar_url":"http://www.gravatar.com/avatar/e64c7d89f26bd1972efa854d13d7dd61?s=80\u0026d=identicon"},"project":{"name":"violations-test","description":"","web_url":"http://a3dffa263a40/root/violations-test","avatar_url":null,"git_ssh_url":"git@a3dffa263a40:root/violations-test.git","git_http_url":"http://a3dffa263a40/root/violations-test.git","namespace":"root","visibility_level":20,"path_with_namespace":"root/violations-test","default_branch":"feature/addingcrap","homepage":"http://a3dffa263a40/root/violations-test","url":"git@a3dffa263a40:root/violations-test.git","ssh_url":"git@a3dffa263a40:root/violations-test.git","http_url":"http://a3dffa263a40/root/violations-test.git"},"object_attributes":{"id":1,"target_branch":"master","source_branch":"feature/addingcrap","source_project_id":1,"author_id":1,"assignee_id":null,"title":"some crap","created_at":"2017-02-20 19:54:06 UTC","updated_at":"2017-03-12 21:33:23 UTC","milestone_id":null,"state":"opened","merge_status":"unchecked","target_project_id":1,"iid":1,"description":"","position":0,"locked_at":null,"updated_by_id":null,"merge_error":null,"merge_params":{"force_remove_source_branch":null},"merge_when_build_succeeds":false,"merge_user_id":null,"merge_commit_sha":null,"deleted_at":null,"in_progress_merge_commit_sha":null,"lock_version":null,"time_estimate":0,"source":{"name":"violations-test","description":"","web_url":"http://a3dffa263a40/root/violations-test","avatar_url":null,"git_ssh_url":"git@a3dffa263a40:root/violations-test.git","git_http_url":"http://a3dffa263a40/root/violations-test.git","namespace":"root","visibility_level":20,"path_with_namespace":"root/violations-test","default_branch":"feature/addingcrap","homepage":"http://a3dffa263a40/root/violations-test","url":"git@a3dffa263a40:root/violations-test.git","ssh_url":"git@a3dffa263a40:root/violations-test.git","http_url":"http://a3dffa263a40/root/violations-test.git"},"target":{"name":"violations-test","description":"","web_url":"http://a3dffa263a40/root/violations-test","avatar_url":null,"git_ssh_url":"git@a3dffa263a40:root/violations-test.git","git_http_url":"http://a3dffa263a40/root/violations-test.git","namespace":"root","visibility_level":20,"path_with_namespace":"root/violations-test","default_branch":"feature/addingcrap","homepage":"http://a3dffa263a40/root/violations-test","url":"git@a3dffa263a40:root/violations-test.git","ssh_url":"git@a3dffa263a40:root/violations-test.git","http_url":"http://a3dffa263a40/root/violations-test.git"},"last_commit":{"id":"a7b8f8669a8cda51c3fc64ac20e3c32f8442a8c3","message":"asd\n","timestamp":"2017-03-12T22:33:19+01:00","url":"http://a3dffa263a40/root/violations-test/commit/a7b8f8669a8cda51c3fc64ac20e3c32f8442a8c3","author":{"name":"Tomas Bjerre","email":"tomas.bjerre85@gmail.com"}},"work_in_progress":false,"url":"http://a3dffa263a40/root/violations-test/merge_requests/1","action":"update","oldrev":"a17426aa8eacda851e3855f183ee244f5fd3a5c1"},"repository":{"name":"violations-test","url":"git@a3dffa263a40:root/violations-test.git","description":"","homepage":"http://a3dffa263a40/root/violations-test"}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant