{"action":"created","comment":{"url":"https://api.github.com/repos/ismop/hypgen/pulls/comments/23216551","id":23216551,"diff_hunk":"@@ -22,7 +22,13 @@ def execute\n           set_id = start_as(setup)\n           workflow.set_set_id(set_id)\n \n-          audit('Running workflow') { workflow.run! }\n+          return_code = audit('Running workflow') { workflow.run! }\n+          if return_code == 0\n+            Hypgen.dap.update_exp(id, status: :finished)\n+          else\n+            Hypgen.dap.update_exp(id, status: :error,\n+                                  status_message: \"Non zero return code!\")","path":"lib/hypgen/worker/runner.rb","position":10,"original_position":10,"commit_id":"7bfcfb8026cf6cfb4193e19b047b7917e7788423","original_commit_id":"7bfcfb8026cf6cfb4193e19b047b7917e7788423","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Align the elements of a hash literal if they span more than one line.<br>Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2015-01-20T11:41:23Z","updated_at":"2015-01-20T11:41:23Z","html_url":"https://github.com/ismop/hypgen/pull/9#discussion_r23216551","pull_request_url":"https://api.github.com/repos/ismop/hypgen/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/ismop/hypgen/pulls/comments/23216551"},"html":{"href":"https://github.com/ismop/hypgen/pull/9#discussion_r23216551"},"pull_request":{"href":"https://api.github.com/repos/ismop/hypgen/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/ismop/hypgen/pulls/9","id":27671215,"html_url":"https://github.com/ismop/hypgen/pull/9","diff_url":"https://github.com/ismop/hypgen/pull/9.diff","patch_url":"https://github.com/ismop/hypgen/pull/9.patch","issue_url":"https://api.github.com/repos/ismop/hypgen/issues/9","number":9,"state":"open","locked":false,"title":"Experiment status is now updated after HF finishes.","user":{"login":"mpawlik","id":3808920,"avatar_url":"https://avatars.githubusercontent.com/u/3808920?v=3","gravatar_id":"","url":"https://api.github.com/users/mpawlik","html_url":"https://github.com/mpawlik","followers_url":"https://api.github.com/users/mpawlik/followers","following_url":"https://api.github.com/users/mpawlik/following{/other_user}","gists_url":"https://api.github.com/users/mpawlik/gists{/gist_id}","starred_url":"https://api.github.com/users/mpawlik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpawlik/subscriptions","organizations_url":"https://api.github.com/users/mpawlik/orgs","repos_url":"https://api.github.com/users/mpawlik/repos","events_url":"https://api.github.com/users/mpawlik/events{/privacy}","received_events_url":"https://api.github.com/users/mpawlik/received_events","type":"User","site_admin":false},"body":"Marek, could you confirm that audit returns audited code result?:)","created_at":"2015-01-20T11:39:33Z","updated_at":"2015-01-20T11:41:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0aa883a36e4189a13d7ce0a64c8d290ee42271d3","assignee":{"login":"mkasztelnik","id":1265430,"avatar_url":"https://avatars.githubusercontent.com/u/1265430?v=3","gravatar_id":"","url":"https://api.github.com/users/mkasztelnik","html_url":"https://github.com/mkasztelnik","followers_url":"https://api.github.com/users/mkasztelnik/followers","following_url":"https://api.github.com/users/mkasztelnik/following{/other_user}","gists_url":"https://api.github.com/users/mkasztelnik/gists{/gist_id}","starred_url":"https://api.github.com/users/mkasztelnik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkasztelnik/subscriptions","organizations_url":"https://api.github.com/users/mkasztelnik/orgs","repos_url":"https://api.github.com/users/mkasztelnik/repos","events_url":"https://api.github.com/users/mkasztelnik/events{/privacy}","received_events_url":"https://api.github.com/users/mkasztelnik/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/ismop/hypgen/pulls/9/commits","review_comments_url":"https://api.github.com/repos/ismop/hypgen/pulls/9/comments","review_comment_url":"https://api.github.com/repos/ismop/hypgen/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ismop/hypgen/issues/9/comments","statuses_url":"https://api.github.com/repos/ismop/hypgen/statuses/7bfcfb8026cf6cfb4193e19b047b7917e7788423","head":{"label":"ismop:experiment_completion","ref":"experiment_completion","sha":"7bfcfb8026cf6cfb4193e19b047b7917e7788423","user":{"login":"ismop","id":9445172,"avatar_url":"https://avatars.githubusercontent.com/u/9445172?v=3","gravatar_id":"","url":"https://api.github.com/users/ismop","html_url":"https://github.com/ismop","followers_url":"https://api.github.com/users/ismop/followers","following_url":"https://api.github.com/users/ismop/following{/other_user}","gists_url":"https://api.github.com/users/ismop/gists{/gist_id}","starred_url":"https://api.github.com/users/ismop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismop/subscriptions","organizations_url":"https://api.github.com/users/ismop/orgs","repos_url":"https://api.github.com/users/ismop/repos","events_url":"https://api.github.com/users/ismop/events{/privacy}","received_events_url":"https://api.github.com/users/ismop/received_events","type":"Organization","site_admin":false},"repo":{"id":25921433,"name":"hypgen","full_name":"ismop/hypgen","owner":{"login":"ismop","id":9445172,"avatar_url":"https://avatars.githubusercontent.com/u/9445172?v=3","gravatar_id":"","url":"https://api.github.com/users/ismop","html_url":"https://github.com/ismop","followers_url":"https://api.github.com/users/ismop/followers","following_url":"https://api.github.com/users/ismop/following{/other_user}","gists_url":"https://api.github.com/users/ismop/gists{/gist_id}","starred_url":"https://api.github.com/users/ismop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismop/subscriptions","organizations_url":"https://api.github.com/users/ismop/orgs","repos_url":"https://api.github.com/users/ismop/repos","events_url":"https://api.github.com/users/ismop/events{/privacy}","received_events_url":"https://api.github.com/users/ismop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ismop/hypgen","description":"tool for generating ISMOP experiments","fork":false,"url":"https://api.github.com/repos/ismop/hypgen","forks_url":"https://api.github.com/repos/ismop/hypgen/forks","keys_url":"https://api.github.com/repos/ismop/hypgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ismop/hypgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ismop/hypgen/teams","hooks_url":"https://api.github.com/repos/ismop/hypgen/hooks","issue_events_url":"https://api.github.com/repos/ismop/hypgen/issues/events{/number}","events_url":"https://api.github.com/repos/ismop/hypgen/events","assignees_url":"https://api.github.com/repos/ismop/hypgen/assignees{/user}","branches_url":"https://api.github.com/repos/ismop/hypgen/branches{/branch}","tags_url":"https://api.github.com/repos/ismop/hypgen/tags","blobs_url":"https://api.github.com/repos/ismop/hypgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ismop/hypgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ismop/hypgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/ismop/hypgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ismop/hypgen/statuses/{sha}","languages_url":"https://api.github.com/repos/ismop/hypgen/languages","stargazers_url":"https://api.github.com/repos/ismop/hypgen/stargazers","contributors_url":"https://api.github.com/repos/ismop/hypgen/contributors","subscribers_url":"https://api.github.com/repos/ismop/hypgen/subscribers","subscription_url":"https://api.github.com/repos/ismop/hypgen/subscription","commits_url":"https://api.github.com/repos/ismop/hypgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/ismop/hypgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/ismop/hypgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/ismop/hypgen/issues/comments/{number}","contents_url":"https://api.github.com/repos/ismop/hypgen/contents/{+path}","compare_url":"https://api.github.com/repos/ismop/hypgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ismop/hypgen/merges","archive_url":"https://api.github.com/repos/ismop/hypgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ismop/hypgen/downloads","issues_url":"https://api.github.com/repos/ismop/hypgen/issues{/number}","pulls_url":"https://api.github.com/repos/ismop/hypgen/pulls{/number}","milestones_url":"https://api.github.com/repos/ismop/hypgen/milestones{/number}","notifications_url":"https://api.github.com/repos/ismop/hypgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ismop/hypgen/labels{/name}","releases_url":"https://api.github.com/repos/ismop/hypgen/releases{/id}","created_at":"2014-10-29T13:11:45Z","updated_at":"2015-01-19T16:33:44Z","pushed_at":"2015-01-20T11:41:21Z","git_url":"git://github.com/ismop/hypgen.git","ssh_url":"git@github.com:ismop/hypgen.git","clone_url":"https://github.com/ismop/hypgen.git","svn_url":"https://github.com/ismop/hypgen","homepage":"http://www.ismop.edu.pl/en","size":584,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ismop:master","ref":"master","sha":"a4692b258a7b1c5aa1add2dfc4465490a431007c","user":{"login":"ismop","id":9445172,"avatar_url":"https://avatars.githubusercontent.com/u/9445172?v=3","gravatar_id":"","url":"https://api.github.com/users/ismop","html_url":"https://github.com/ismop","followers_url":"https://api.github.com/users/ismop/followers","following_url":"https://api.github.com/users/ismop/following{/other_user}","gists_url":"https://api.github.com/users/ismop/gists{/gist_id}","starred_url":"https://api.github.com/users/ismop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismop/subscriptions","organizations_url":"https://api.github.com/users/ismop/orgs","repos_url":"https://api.github.com/users/ismop/repos","events_url":"https://api.github.com/users/ismop/events{/privacy}","received_events_url":"https://api.github.com/users/ismop/received_events","type":"Organization","site_admin":false},"repo":{"id":25921433,"name":"hypgen","full_name":"ismop/hypgen","owner":{"login":"ismop","id":9445172,"avatar_url":"https://avatars.githubusercontent.com/u/9445172?v=3","gravatar_id":"","url":"https://api.github.com/users/ismop","html_url":"https://github.com/ismop","followers_url":"https://api.github.com/users/ismop/followers","following_url":"https://api.github.com/users/ismop/following{/other_user}","gists_url":"https://api.github.com/users/ismop/gists{/gist_id}","starred_url":"https://api.github.com/users/ismop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismop/subscriptions","organizations_url":"https://api.github.com/users/ismop/orgs","repos_url":"https://api.github.com/users/ismop/repos","events_url":"https://api.github.com/users/ismop/events{/privacy}","received_events_url":"https://api.github.com/users/ismop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ismop/hypgen","description":"tool for generating ISMOP experiments","fork":false,"url":"https://api.github.com/repos/ismop/hypgen","forks_url":"https://api.github.com/repos/ismop/hypgen/forks","keys_url":"https://api.github.com/repos/ismop/hypgen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ismop/hypgen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ismop/hypgen/teams","hooks_url":"https://api.github.com/repos/ismop/hypgen/hooks","issue_events_url":"https://api.github.com/repos/ismop/hypgen/issues/events{/number}","events_url":"https://api.github.com/repos/ismop/hypgen/events","assignees_url":"https://api.github.com/repos/ismop/hypgen/assignees{/user}","branches_url":"https://api.github.com/repos/ismop/hypgen/branches{/branch}","tags_url":"https://api.github.com/repos/ismop/hypgen/tags","blobs_url":"https://api.github.com/repos/ismop/hypgen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ismop/hypgen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ismop/hypgen/git/refs{/sha}","trees_url":"https://api.github.com/repos/ismop/hypgen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ismop/hypgen/statuses/{sha}","languages_url":"https://api.github.com/repos/ismop/hypgen/languages","stargazers_url":"https://api.github.com/repos/ismop/hypgen/stargazers","contributors_url":"https://api.github.com/repos/ismop/hypgen/contributors","subscribers_url":"https://api.github.com/repos/ismop/hypgen/subscribers","subscription_url":"https://api.github.com/repos/ismop/hypgen/subscription","commits_url":"https://api.github.com/repos/ismop/hypgen/commits{/sha}","git_commits_url":"https://api.github.com/repos/ismop/hypgen/git/commits{/sha}","comments_url":"https://api.github.com/repos/ismop/hypgen/comments{/number}","issue_comment_url":"https://api.github.com/repos/ismop/hypgen/issues/comments/{number}","contents_url":"https://api.github.com/repos/ismop/hypgen/contents/{+path}","compare_url":"https://api.github.com/repos/ismop/hypgen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ismop/hypgen/merges","archive_url":"https://api.github.com/repos/ismop/hypgen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ismop/hypgen/downloads","issues_url":"https://api.github.com/repos/ismop/hypgen/issues{/number}","pulls_url":"https://api.github.com/repos/ismop/hypgen/pulls{/number}","milestones_url":"https://api.github.com/repos/ismop/hypgen/milestones{/number}","notifications_url":"https://api.github.com/repos/ismop/hypgen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ismop/hypgen/labels{/name}","releases_url":"https://api.github.com/repos/ismop/hypgen/releases{/id}","created_at":"2014-10-29T13:11:45Z","updated_at":"2015-01-19T16:33:44Z","pushed_at":"2015-01-20T11:41:21Z","git_url":"git://github.com/ismop/hypgen.git","ssh_url":"git@github.com:ismop/hypgen.git","clone_url":"https://github.com/ismop/hypgen.git","svn_url":"https://github.com/ismop/hypgen","homepage":"http://www.ismop.edu.pl/en","size":584,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ismop/hypgen/pulls/9"},"html":{"href":"https://github.com/ismop/hypgen/pull/9"},"issue":{"href":"https://api.github.com/repos/ismop/hypgen/issues/9"},"comments":{"href":"https://api.github.com/repos/ismop/hypgen/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/ismop/hypgen/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/ismop/hypgen/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ismop/hypgen/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/ismop/hypgen/statuses/7bfcfb8026cf6cfb4193e19b047b7917e7788423"}}}}