{"action":"opened","number":750,"pull_request":{"url":"https://api.github.com/repos/genome/genome/pulls/750","id":35555189,"html_url":"https://github.com/genome/genome/pull/750","diff_url":"https://github.com/genome/genome/pull/750.diff","patch_url":"https://github.com/genome/genome/pull/750.patch","issue_url":"https://api.github.com/repos/genome/genome/issues/750","number":750,"state":"open","locked":false,"title":"acquire build_requested lock before creating builds to start","user":{"login":"nnutter","id":207011,"avatar_url":"https://avatars.githubusercontent.com/u/207011?v=3","gravatar_id":"","url":"https://api.github.com/users/nnutter","html_url":"https://github.com/nnutter","followers_url":"https://api.github.com/users/nnutter/followers","following_url":"https://api.github.com/users/nnutter/following{/other_user}","gists_url":"https://api.github.com/users/nnutter/gists{/gist_id}","starred_url":"https://api.github.com/users/nnutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnutter/subscriptions","organizations_url":"https://api.github.com/users/nnutter/orgs","repos_url":"https://api.github.com/users/nnutter/repos","events_url":"https://api.github.com/users/nnutter/events{/privacy}","received_events_url":"https://api.github.com/users/nnutter/received_events","type":"User","site_admin":false},"body":"@tmooney pointed out that if something else were updating the model between\nwhen we created the build and turned off `build_requested` then we would turn\noff `build_requested` prematurely.  This changes it so we disable\n`build_requested` (within a transaction) prior to even creating the build so\nthat the `build_requested` locking prevents this race.","created_at":"2015-05-15T22:06:30Z","updated_at":"2015-05-15T22:06:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/genome/genome/pulls/750/commits","review_comments_url":"https://api.github.com/repos/genome/genome/pulls/750/comments","review_comment_url":"https://api.github.com/repos/genome/genome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/genome/genome/issues/750/comments","statuses_url":"https://api.github.com/repos/genome/genome/statuses/d124949620a29ce48eb34cc1d67581949666f806","head":{"label":"nnutter:start","ref":"start","sha":"d124949620a29ce48eb34cc1d67581949666f806","user":{"login":"nnutter","id":207011,"avatar_url":"https://avatars.githubusercontent.com/u/207011?v=3","gravatar_id":"","url":"https://api.github.com/users/nnutter","html_url":"https://github.com/nnutter","followers_url":"https://api.github.com/users/nnutter/followers","following_url":"https://api.github.com/users/nnutter/following{/other_user}","gists_url":"https://api.github.com/users/nnutter/gists{/gist_id}","starred_url":"https://api.github.com/users/nnutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnutter/subscriptions","organizations_url":"https://api.github.com/users/nnutter/orgs","repos_url":"https://api.github.com/users/nnutter/repos","events_url":"https://api.github.com/users/nnutter/events{/privacy}","received_events_url":"https://api.github.com/users/nnutter/received_events","type":"User","site_admin":false},"repo":{"id":24504192,"name":"genome","full_name":"nnutter/genome","owner":{"login":"nnutter","id":207011,"avatar_url":"https://avatars.githubusercontent.com/u/207011?v=3","gravatar_id":"","url":"https://api.github.com/users/nnutter","html_url":"https://github.com/nnutter","followers_url":"https://api.github.com/users/nnutter/followers","following_url":"https://api.github.com/users/nnutter/following{/other_user}","gists_url":"https://api.github.com/users/nnutter/gists{/gist_id}","starred_url":"https://api.github.com/users/nnutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nnutter/subscriptions","organizations_url":"https://api.github.com/users/nnutter/orgs","repos_url":"https://api.github.com/users/nnutter/repos","events_url":"https://api.github.com/users/nnutter/events{/privacy}","received_events_url":"https://api.github.com/users/nnutter/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nnutter/genome","description":"","fork":true,"url":"https://api.github.com/repos/nnutter/genome","forks_url":"https://api.github.com/repos/nnutter/genome/forks","keys_url":"https://api.github.com/repos/nnutter/genome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nnutter/genome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nnutter/genome/teams","hooks_url":"https://api.github.com/repos/nnutter/genome/hooks","issue_events_url":"https://api.github.com/repos/nnutter/genome/issues/events{/number}","events_url":"https://api.github.com/repos/nnutter/genome/events","assignees_url":"https://api.github.com/repos/nnutter/genome/assignees{/user}","branches_url":"https://api.github.com/repos/nnutter/genome/branches{/branch}","tags_url":"https://api.github.com/repos/nnutter/genome/tags","blobs_url":"https://api.github.com/repos/nnutter/genome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nnutter/genome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nnutter/genome/git/refs{/sha}","trees_url":"https://api.github.com/repos/nnutter/genome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nnutter/genome/statuses/{sha}","languages_url":"https://api.github.com/repos/nnutter/genome/languages","stargazers_url":"https://api.github.com/repos/nnutter/genome/stargazers","contributors_url":"https://api.github.com/repos/nnutter/genome/contributors","subscribers_url":"https://api.github.com/repos/nnutter/genome/subscribers","subscription_url":"https://api.github.com/repos/nnutter/genome/subscription","commits_url":"https://api.github.com/repos/nnutter/genome/commits{/sha}","git_commits_url":"https://api.github.com/repos/nnutter/genome/git/commits{/sha}","comments_url":"https://api.github.com/repos/nnutter/genome/comments{/number}","issue_comment_url":"https://api.github.com/repos/nnutter/genome/issues/comments{/number}","contents_url":"https://api.github.com/repos/nnutter/genome/contents/{+path}","compare_url":"https://api.github.com/repos/nnutter/genome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nnutter/genome/merges","archive_url":"https://api.github.com/repos/nnutter/genome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nnutter/genome/downloads","issues_url":"https://api.github.com/repos/nnutter/genome/issues{/number}","pulls_url":"https://api.github.com/repos/nnutter/genome/pulls{/number}","milestones_url":"https://api.github.com/repos/nnutter/genome/milestones{/number}","notifications_url":"https://api.github.com/repos/nnutter/genome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nnutter/genome/labels{/name}","releases_url":"https://api.github.com/repos/nnutter/genome/releases{/id}","created_at":"2014-09-26T15:11:30Z","updated_at":"2015-04-29T20:22:21Z","pushed_at":"2015-05-15T22:06:24Z","git_url":"git://github.com/nnutter/genome.git","ssh_url":"git@github.com:nnutter/genome.git","clone_url":"https://github.com/nnutter/genome.git","svn_url":"https://github.com/nnutter/genome","homepage":"","size":119076,"stargazers_count":0,"watchers_count":0,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"genome:master","ref":"master","sha":"cca6030c491ad718d3074bea822ebd4d2da52715","user":{"login":"genome","id":318108,"avatar_url":"https://avatars.githubusercontent.com/u/318108?v=3","gravatar_id":"","url":"https://api.github.com/users/genome","html_url":"https://github.com/genome","followers_url":"https://api.github.com/users/genome/followers","following_url":"https://api.github.com/users/genome/following{/other_user}","gists_url":"https://api.github.com/users/genome/gists{/gist_id}","starred_url":"https://api.github.com/users/genome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genome/subscriptions","organizations_url":"https://api.github.com/users/genome/orgs","repos_url":"https://api.github.com/users/genome/repos","events_url":"https://api.github.com/users/genome/events{/privacy}","received_events_url":"https://api.github.com/users/genome/received_events","type":"Organization","site_admin":false},"repo":{"id":23442737,"name":"genome","full_name":"genome/genome","owner":{"login":"genome","id":318108,"avatar_url":"https://avatars.githubusercontent.com/u/318108?v=3","gravatar_id":"","url":"https://api.github.com/users/genome","html_url":"https://github.com/genome","followers_url":"https://api.github.com/users/genome/followers","following_url":"https://api.github.com/users/genome/following{/other_user}","gists_url":"https://api.github.com/users/genome/gists{/gist_id}","starred_url":"https://api.github.com/users/genome/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genome/subscriptions","organizations_url":"https://api.github.com/users/genome/orgs","repos_url":"https://api.github.com/users/genome/repos","events_url":"https://api.github.com/users/genome/events{/privacy}","received_events_url":"https://api.github.com/users/genome/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/genome/genome","description":"Core modules used by the GMS","fork":false,"url":"https://api.github.com/repos/genome/genome","forks_url":"https://api.github.com/repos/genome/genome/forks","keys_url":"https://api.github.com/repos/genome/genome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/genome/genome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/genome/genome/teams","hooks_url":"https://api.github.com/repos/genome/genome/hooks","issue_events_url":"https://api.github.com/repos/genome/genome/issues/events{/number}","events_url":"https://api.github.com/repos/genome/genome/events","assignees_url":"https://api.github.com/repos/genome/genome/assignees{/user}","branches_url":"https://api.github.com/repos/genome/genome/branches{/branch}","tags_url":"https://api.github.com/repos/genome/genome/tags","blobs_url":"https://api.github.com/repos/genome/genome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/genome/genome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/genome/genome/git/refs{/sha}","trees_url":"https://api.github.com/repos/genome/genome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/genome/genome/statuses/{sha}","languages_url":"https://api.github.com/repos/genome/genome/languages","stargazers_url":"https://api.github.com/repos/genome/genome/stargazers","contributors_url":"https://api.github.com/repos/genome/genome/contributors","subscribers_url":"https://api.github.com/repos/genome/genome/subscribers","subscription_url":"https://api.github.com/repos/genome/genome/subscription","commits_url":"https://api.github.com/repos/genome/genome/commits{/sha}","git_commits_url":"https://api.github.com/repos/genome/genome/git/commits{/sha}","comments_url":"https://api.github.com/repos/genome/genome/comments{/number}","issue_comment_url":"https://api.github.com/repos/genome/genome/issues/comments{/number}","contents_url":"https://api.github.com/repos/genome/genome/contents/{+path}","compare_url":"https://api.github.com/repos/genome/genome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/genome/genome/merges","archive_url":"https://api.github.com/repos/genome/genome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/genome/genome/downloads","issues_url":"https://api.github.com/repos/genome/genome/issues{/number}","pulls_url":"https://api.github.com/repos/genome/genome/pulls{/number}","milestones_url":"https://api.github.com/repos/genome/genome/milestones{/number}","notifications_url":"https://api.github.com/repos/genome/genome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/genome/genome/labels{/name}","releases_url":"https://api.github.com/repos/genome/genome/releases{/id}","created_at":"2014-08-28T20:59:19Z","updated_at":"2015-05-08T18:43:25Z","pushed_at":"2015-05-15T22:05:51Z","git_url":"git://github.com/genome/genome.git","ssh_url":"git@github.com:genome/genome.git","clone_url":"https://github.com/genome/genome.git","svn_url":"https://github.com/genome/genome","homepage":"","size":187323,"stargazers_count":8,"watchers_count":8,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":11,"forks":36,"open_issues":11,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/genome/genome/pulls/750"},"html":{"href":"https://github.com/genome/genome/pull/750"},"issue":{"href":"https://api.github.com/repos/genome/genome/issues/750"},"comments":{"href":"https://api.github.com/repos/genome/genome/issues/750/comments"},"review_comments":{"href":"https://api.github.com/repos/genome/genome/pulls/750/comments"},"review_comment":{"href":"https://api.github.com/repos/genome/genome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/genome/genome/pulls/750/commits"},"statuses":{"href":"https://api.github.com/repos/genome/genome/statuses/d124949620a29ce48eb34cc1d67581949666f806"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":8,"deletions":2,"changed_files":1}}