{"action":"closed","number":51,"pull_request":{"url":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/51","id":28541841,"html_url":"https://github.com/DABSquared/gitlab-plugin/pull/51","diff_url":"https://github.com/DABSquared/gitlab-plugin/pull/51.diff","patch_url":"https://github.com/DABSquared/gitlab-plugin/pull/51.patch","issue_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/issues/51","number":51,"state":"closed","locked":false,"title":"Only build merge request when SHA1 has not been build before.","user":{"login":"kasper-f","id":2758723,"avatar_url":"https://avatars.githubusercontent.com/u/2758723?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper-f","html_url":"https://github.com/kasper-f","followers_url":"https://api.github.com/users/kasper-f/followers","following_url":"https://api.github.com/users/kasper-f/following{/other_user}","gists_url":"https://api.github.com/users/kasper-f/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper-f/subscriptions","organizations_url":"https://api.github.com/users/kasper-f/orgs","repos_url":"https://api.github.com/users/kasper-f/repos","events_url":"https://api.github.com/users/kasper-f/events{/privacy}","received_events_url":"https://api.github.com/users/kasper-f/received_events","type":"User","site_admin":false},"body":"Added more fields to the merge request in order to get data about the source and target branch. and tha last commit.\r\n\r\nBefore a new build is scheduled for a merge request we will lookup if we already has build this merge request.\r\n\r\nthis should fix #50","created_at":"2015-02-03T10:37:32Z","updated_at":"2015-02-03T18:08:57Z","closed_at":"2015-02-03T18:08:57Z","merged_at":"2015-02-03T18:08:57Z","merge_commit_sha":"cb75308e47130bd2efe1fff72ce89d4518a0ff03","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/51/commits","review_comments_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/51/comments","review_comment_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/comments/{number}","comments_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/issues/51/comments","statuses_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/statuses/675bd8a2683b23d3c716f2220325d4de8bd12e87","head":{"label":"kasper-f:lookupMergeBuildFromSHA1","ref":"lookupMergeBuildFromSHA1","sha":"675bd8a2683b23d3c716f2220325d4de8bd12e87","user":{"login":"kasper-f","id":2758723,"avatar_url":"https://avatars.githubusercontent.com/u/2758723?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper-f","html_url":"https://github.com/kasper-f","followers_url":"https://api.github.com/users/kasper-f/followers","following_url":"https://api.github.com/users/kasper-f/following{/other_user}","gists_url":"https://api.github.com/users/kasper-f/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper-f/subscriptions","organizations_url":"https://api.github.com/users/kasper-f/orgs","repos_url":"https://api.github.com/users/kasper-f/repos","events_url":"https://api.github.com/users/kasper-f/events{/privacy}","received_events_url":"https://api.github.com/users/kasper-f/received_events","type":"User","site_admin":false},"repo":{"id":27382232,"name":"gitlab-plugin","full_name":"kasper-f/gitlab-plugin","owner":{"login":"kasper-f","id":2758723,"avatar_url":"https://avatars.githubusercontent.com/u/2758723?v=3","gravatar_id":"","url":"https://api.github.com/users/kasper-f","html_url":"https://github.com/kasper-f","followers_url":"https://api.github.com/users/kasper-f/followers","following_url":"https://api.github.com/users/kasper-f/following{/other_user}","gists_url":"https://api.github.com/users/kasper-f/gists{/gist_id}","starred_url":"https://api.github.com/users/kasper-f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kasper-f/subscriptions","organizations_url":"https://api.github.com/users/kasper-f/orgs","repos_url":"https://api.github.com/users/kasper-f/repos","events_url":"https://api.github.com/users/kasper-f/events{/privacy}","received_events_url":"https://api.github.com/users/kasper-f/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kasper-f/gitlab-plugin","description":"This plugin emulates Jenkins as a Gitlab CI Web Service","fork":true,"url":"https://api.github.com/repos/kasper-f/gitlab-plugin","forks_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/forks","keys_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/teams","hooks_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/hooks","issue_events_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/events","assignees_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/tags","blobs_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/languages","stargazers_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/stargazers","contributors_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/contributors","subscribers_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/subscribers","subscription_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/subscription","commits_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/merges","archive_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/downloads","issues_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/labels{/name}","releases_url":"https://api.github.com/repos/kasper-f/gitlab-plugin/releases{/id}","created_at":"2014-12-01T14:08:54Z","updated_at":"2015-01-28T08:25:18Z","pushed_at":"2015-02-03T10:36:51Z","git_url":"git://github.com/kasper-f/gitlab-plugin.git","ssh_url":"git@github.com:kasper-f/gitlab-plugin.git","clone_url":"https://github.com/kasper-f/gitlab-plugin.git","svn_url":"https://github.com/kasper-f/gitlab-plugin","homepage":null,"size":4227,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DABSquared:master","ref":"master","sha":"3669870aee4a099e262630976996691093d383f9","user":{"login":"DABSquared","id":3453230,"avatar_url":"https://avatars.githubusercontent.com/u/3453230?v=3","gravatar_id":"","url":"https://api.github.com/users/DABSquared","html_url":"https://github.com/DABSquared","followers_url":"https://api.github.com/users/DABSquared/followers","following_url":"https://api.github.com/users/DABSquared/following{/other_user}","gists_url":"https://api.github.com/users/DABSquared/gists{/gist_id}","starred_url":"https://api.github.com/users/DABSquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DABSquared/subscriptions","organizations_url":"https://api.github.com/users/DABSquared/orgs","repos_url":"https://api.github.com/users/DABSquared/repos","events_url":"https://api.github.com/users/DABSquared/events{/privacy}","received_events_url":"https://api.github.com/users/DABSquared/received_events","type":"Organization","site_admin":false},"repo":{"id":19989121,"name":"gitlab-plugin","full_name":"DABSquared/gitlab-plugin","owner":{"login":"DABSquared","id":3453230,"avatar_url":"https://avatars.githubusercontent.com/u/3453230?v=3","gravatar_id":"","url":"https://api.github.com/users/DABSquared","html_url":"https://github.com/DABSquared","followers_url":"https://api.github.com/users/DABSquared/followers","following_url":"https://api.github.com/users/DABSquared/following{/other_user}","gists_url":"https://api.github.com/users/DABSquared/gists{/gist_id}","starred_url":"https://api.github.com/users/DABSquared/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DABSquared/subscriptions","organizations_url":"https://api.github.com/users/DABSquared/orgs","repos_url":"https://api.github.com/users/DABSquared/repos","events_url":"https://api.github.com/users/DABSquared/events{/privacy}","received_events_url":"https://api.github.com/users/DABSquared/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DABSquared/gitlab-plugin","description":"This plugin emulates Jenkins as a Gitlab CI Web Service","fork":false,"url":"https://api.github.com/repos/DABSquared/gitlab-plugin","forks_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/forks","keys_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/teams","hooks_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/hooks","issue_events_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/issues/events{/number}","events_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/events","assignees_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/assignees{/user}","branches_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/branches{/branch}","tags_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/tags","blobs_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/git/refs{/sha}","trees_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/statuses/{sha}","languages_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/languages","stargazers_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/stargazers","contributors_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/contributors","subscribers_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/subscribers","subscription_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/subscription","commits_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/commits{/sha}","git_commits_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/git/commits{/sha}","comments_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/comments{/number}","issue_comment_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/issues/comments/{number}","contents_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/contents/{+path}","compare_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/merges","archive_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/downloads","issues_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/issues{/number}","pulls_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls{/number}","milestones_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/milestones{/number}","notifications_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/labels{/name}","releases_url":"https://api.github.com/repos/DABSquared/gitlab-plugin/releases{/id}","created_at":"2014-05-20T16:50:12Z","updated_at":"2015-02-02T21:54:37Z","pushed_at":"2015-02-03T18:08:57Z","git_url":"git://github.com/DABSquared/gitlab-plugin.git","ssh_url":"git@github.com:DABSquared/gitlab-plugin.git","clone_url":"https://github.com/DABSquared/gitlab-plugin.git","svn_url":"https://github.com/DABSquared/gitlab-plugin","homepage":null,"size":4709,"stargazers_count":38,"watchers_count":38,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":5,"forks":27,"open_issues":5,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/51"},"html":{"href":"https://github.com/DABSquared/gitlab-plugin/pull/51"},"issue":{"href":"https://api.github.com/repos/DABSquared/gitlab-plugin/issues/51"},"comments":{"href":"https://api.github.com/repos/DABSquared/gitlab-plugin/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/DABSquared/gitlab-plugin/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/DABSquared/gitlab-plugin/statuses/675bd8a2683b23d3c716f2220325d4de8bd12e87"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bassrock","id":1010384,"avatar_url":"https://avatars.githubusercontent.com/u/1010384?v=3","gravatar_id":"","url":"https://api.github.com/users/bassrock","html_url":"https://github.com/bassrock","followers_url":"https://api.github.com/users/bassrock/followers","following_url":"https://api.github.com/users/bassrock/following{/other_user}","gists_url":"https://api.github.com/users/bassrock/gists{/gist_id}","starred_url":"https://api.github.com/users/bassrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bassrock/subscriptions","organizations_url":"https://api.github.com/users/bassrock/orgs","repos_url":"https://api.github.com/users/bassrock/repos","events_url":"https://api.github.com/users/bassrock/events{/privacy}","received_events_url":"https://api.github.com/users/bassrock/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":110,"deletions":1,"changed_files":2}}