{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments/214725565","pull_request_review_id":151839160,"id":214725565,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDcyNTU2NQ==","diff_hunk":"@@ -680,7 +691,18 @@ def _do_create_prod_build(self, git_uri, git_ref,\n         )\n         build_request.set_openshift_required_version(self.os_conf.get_openshift_required_version())\n         build_request.set_repo_info(repo_info)\n-        if build_request.scratch:\n+\n+        build_response = None\n+        builds_for_koji_task = []\n+        if koji_task_id and not is_auto:\n+            #try to find build for koji_task which isn't canceled and use that one","path":"osbs/api.py","position":27,"original_position":27,"commit_id":"44075fab9ace50e88878de27f64daf04a2a4b5dd","original_commit_id":"44075fab9ace50e88878de27f64daf04a2a4b5dd","user":{"login":"stickler-ci","id":16011037,"node_id":"MDQ6VXNlcjE2MDExMDM3","avatar_url":"https://avatars3.githubusercontent.com/u/16011037?v=4","gravatar_id":"","url":"https://api.github.com/users/stickler-ci","html_url":"https://github.com/stickler-ci","followers_url":"https://api.github.com/users/stickler-ci/followers","following_url":"https://api.github.com/users/stickler-ci/following{/other_user}","gists_url":"https://api.github.com/users/stickler-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/stickler-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stickler-ci/subscriptions","organizations_url":"https://api.github.com/users/stickler-ci/orgs","repos_url":"https://api.github.com/users/stickler-ci/repos","events_url":"https://api.github.com/users/stickler-ci/events{/privacy}","received_events_url":"https://api.github.com/users/stickler-ci/received_events","type":"User","site_admin":false},"body":"E265 block comment should start with '# '","created_at":"2018-09-03T15:46:04Z","updated_at":"2018-09-03T15:46:05Z","html_url":"https://github.com/projectatomic/osbs-client/pull/802#discussion_r214725565","pull_request_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments/214725565"},"html":{"href":"https://github.com/projectatomic/osbs-client/pull/802#discussion_r214725565"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802","id":212783296,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyNzgzMjk2","html_url":"https://github.com/projectatomic/osbs-client/pull/802","diff_url":"https://github.com/projectatomic/osbs-client/pull/802.diff","patch_url":"https://github.com/projectatomic/osbs-client/pull/802.patch","issue_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/802","number":802,"state":"open","locked":false,"title":"use build for koji id, if already exists","user":{"login":"rcerven","id":23337371,"node_id":"MDQ6VXNlcjIzMzM3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/23337371?v=4","gravatar_id":"","url":"https://api.github.com/users/rcerven","html_url":"https://github.com/rcerven","followers_url":"https://api.github.com/users/rcerven/followers","following_url":"https://api.github.com/users/rcerven/following{/other_user}","gists_url":"https://api.github.com/users/rcerven/gists{/gist_id}","starred_url":"https://api.github.com/users/rcerven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcerven/subscriptions","organizations_url":"https://api.github.com/users/rcerven/orgs","repos_url":"https://api.github.com/users/rcerven/repos","events_url":"https://api.github.com/users/rcerven/events{/privacy}","received_events_url":"https://api.github.com/users/rcerven/received_events","type":"User","site_admin":false},"body":"Signed-off-by: Robert Cerven <rcerven@redhat.com>","created_at":"2018-09-03T15:45:50Z","updated_at":"2018-09-03T15:46:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af2d3f217b097673d6a93d60520e825054c5bf52","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802/commits","review_comments_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802/comments","review_comment_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/802/comments","statuses_url":"https://api.github.com/repos/projectatomic/osbs-client/statuses/44075fab9ace50e88878de27f64daf04a2a4b5dd","head":{"label":"rcerven:find_build_before_creating_new","ref":"find_build_before_creating_new","sha":"44075fab9ace50e88878de27f64daf04a2a4b5dd","user":{"login":"rcerven","id":23337371,"node_id":"MDQ6VXNlcjIzMzM3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/23337371?v=4","gravatar_id":"","url":"https://api.github.com/users/rcerven","html_url":"https://github.com/rcerven","followers_url":"https://api.github.com/users/rcerven/followers","following_url":"https://api.github.com/users/rcerven/following{/other_user}","gists_url":"https://api.github.com/users/rcerven/gists{/gist_id}","starred_url":"https://api.github.com/users/rcerven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcerven/subscriptions","organizations_url":"https://api.github.com/users/rcerven/orgs","repos_url":"https://api.github.com/users/rcerven/repos","events_url":"https://api.github.com/users/rcerven/events{/privacy}","received_events_url":"https://api.github.com/users/rcerven/received_events","type":"User","site_admin":false},"repo":{"id":74348283,"node_id":"MDEwOlJlcG9zaXRvcnk3NDM0ODI4Mw==","name":"osbs-client","full_name":"rcerven/osbs-client","owner":{"login":"rcerven","id":23337371,"node_id":"MDQ6VXNlcjIzMzM3Mzcx","avatar_url":"https://avatars0.githubusercontent.com/u/23337371?v=4","gravatar_id":"","url":"https://api.github.com/users/rcerven","html_url":"https://github.com/rcerven","followers_url":"https://api.github.com/users/rcerven/followers","following_url":"https://api.github.com/users/rcerven/following{/other_user}","gists_url":"https://api.github.com/users/rcerven/gists{/gist_id}","starred_url":"https://api.github.com/users/rcerven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcerven/subscriptions","organizations_url":"https://api.github.com/users/rcerven/orgs","repos_url":"https://api.github.com/users/rcerven/repos","events_url":"https://api.github.com/users/rcerven/events{/privacy}","received_events_url":"https://api.github.com/users/rcerven/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rcerven/osbs-client","description":"client for OpenShift Build Service","fork":true,"url":"https://api.github.com/repos/rcerven/osbs-client","forks_url":"https://api.github.com/repos/rcerven/osbs-client/forks","keys_url":"https://api.github.com/repos/rcerven/osbs-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rcerven/osbs-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rcerven/osbs-client/teams","hooks_url":"https://api.github.com/repos/rcerven/osbs-client/hooks","issue_events_url":"https://api.github.com/repos/rcerven/osbs-client/issues/events{/number}","events_url":"https://api.github.com/repos/rcerven/osbs-client/events","assignees_url":"https://api.github.com/repos/rcerven/osbs-client/assignees{/user}","branches_url":"https://api.github.com/repos/rcerven/osbs-client/branches{/branch}","tags_url":"https://api.github.com/repos/rcerven/osbs-client/tags","blobs_url":"https://api.github.com/repos/rcerven/osbs-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rcerven/osbs-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rcerven/osbs-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/rcerven/osbs-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rcerven/osbs-client/statuses/{sha}","languages_url":"https://api.github.com/repos/rcerven/osbs-client/languages","stargazers_url":"https://api.github.com/repos/rcerven/osbs-client/stargazers","contributors_url":"https://api.github.com/repos/rcerven/osbs-client/contributors","subscribers_url":"https://api.github.com/repos/rcerven/osbs-client/subscribers","subscription_url":"https://api.github.com/repos/rcerven/osbs-client/subscription","commits_url":"https://api.github.com/repos/rcerven/osbs-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/rcerven/osbs-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/rcerven/osbs-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/rcerven/osbs-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/rcerven/osbs-client/contents/{+path}","compare_url":"https://api.github.com/repos/rcerven/osbs-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rcerven/osbs-client/merges","archive_url":"https://api.github.com/repos/rcerven/osbs-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rcerven/osbs-client/downloads","issues_url":"https://api.github.com/repos/rcerven/osbs-client/issues{/number}","pulls_url":"https://api.github.com/repos/rcerven/osbs-client/pulls{/number}","milestones_url":"https://api.github.com/repos/rcerven/osbs-client/milestones{/number}","notifications_url":"https://api.github.com/repos/rcerven/osbs-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rcerven/osbs-client/labels{/name}","releases_url":"https://api.github.com/repos/rcerven/osbs-client/releases{/id}","deployments_url":"https://api.github.com/repos/rcerven/osbs-client/deployments","created_at":"2016-11-21T09:39:12Z","updated_at":"2016-11-21T09:39:14Z","pushed_at":"2018-09-03T15:44:48Z","git_url":"git://github.com/rcerven/osbs-client.git","ssh_url":"git@github.com:rcerven/osbs-client.git","clone_url":"https://github.com/rcerven/osbs-client.git","svn_url":"https://github.com/rcerven/osbs-client","homepage":null,"size":2893,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectatomic:master","ref":"master","sha":"fe9a5ee381932cf80bdfab8b6c6e2cb92fe54ef8","user":{"login":"projectatomic","id":6852258,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":31409916,"node_id":"MDEwOlJlcG9zaXRvcnkzMTQwOTkxNg==","name":"osbs-client","full_name":"projectatomic/osbs-client","owner":{"login":"projectatomic","id":6852258,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY4NTIyNTg=","avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/osbs-client","description":"client for OpenShift Build Service","fork":false,"url":"https://api.github.com/repos/projectatomic/osbs-client","forks_url":"https://api.github.com/repos/projectatomic/osbs-client/forks","keys_url":"https://api.github.com/repos/projectatomic/osbs-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/osbs-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/osbs-client/teams","hooks_url":"https://api.github.com/repos/projectatomic/osbs-client/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/osbs-client/events","assignees_url":"https://api.github.com/repos/projectatomic/osbs-client/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/osbs-client/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/osbs-client/tags","blobs_url":"https://api.github.com/repos/projectatomic/osbs-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/osbs-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/osbs-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/osbs-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/osbs-client/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/osbs-client/languages","stargazers_url":"https://api.github.com/repos/projectatomic/osbs-client/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/osbs-client/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/osbs-client/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/osbs-client/subscription","commits_url":"https://api.github.com/repos/projectatomic/osbs-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/osbs-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/osbs-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/osbs-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/osbs-client/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/osbs-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/osbs-client/merges","archive_url":"https://api.github.com/repos/projectatomic/osbs-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/osbs-client/downloads","issues_url":"https://api.github.com/repos/projectatomic/osbs-client/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/osbs-client/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/osbs-client/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/osbs-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/osbs-client/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/osbs-client/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/osbs-client/deployments","created_at":"2015-02-27T08:20:07Z","updated_at":"2018-08-24T16:46:15Z","pushed_at":"2018-09-03T15:45:50Z","git_url":"git://github.com/projectatomic/osbs-client.git","ssh_url":"git@github.com:projectatomic/osbs-client.git","clone_url":"https://github.com/projectatomic/osbs-client.git","svn_url":"https://github.com/projectatomic/osbs-client","homepage":null,"size":2947,"stargazers_count":32,"watchers_count":32,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":32,"open_issues":37,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802"},"html":{"href":"https://github.com/projectatomic/osbs-client/pull/802"},"issue":{"href":"https://api.github.com/repos/projectatomic/osbs-client/issues/802"},"comments":{"href":"https://api.github.com/repos/projectatomic/osbs-client/issues/802/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/osbs-client/pulls/802/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/osbs-client/statuses/44075fab9ace50e88878de27f64daf04a2a4b5dd"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"stickler-ci"}}