{"action":"created","comment":{"url":"https://api.github.com/repos/cvra/robot-software/pulls/comments/187071360","pull_request_review_id":118776982,"id":187071360,"diff_hunk":"@@ -875,10 +893,11 @@ struct FireBallGunIntoWasteWaterTreatmentPlant : actions::FireBallGunIntoWasteWa\n             return false;\n         }\n \n+        ball_sense_reset_count();\n         strat_fill_wastewater_treatment_plant();\n \n         state.ballgun_state = BallgunState::IS_EMPTY;\n-        state.balls_in_wastewater_treatment_plant += 4;\n+        state.balls_in_wastewater_treatment_plant += ball_sense_count() / 2;","path":"master-firmware/src/strategy.cpp","position":74,"original_position":74,"commit_id":"f2b0fc40b6f2c91f3fe8edf2ca73a216812b596b","original_commit_id":"7b234f4878b72c0052a361e28e0f82d216be4ba2","user":{"login":"SyrianSpock","id":6131403,"avatar_url":"https://avatars2.githubusercontent.com/u/6131403?v=4","gravatar_id":"","url":"https://api.github.com/users/SyrianSpock","html_url":"https://github.com/SyrianSpock","followers_url":"https://api.github.com/users/SyrianSpock/followers","following_url":"https://api.github.com/users/SyrianSpock/following{/other_user}","gists_url":"https://api.github.com/users/SyrianSpock/gists{/gist_id}","starred_url":"https://api.github.com/users/SyrianSpock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SyrianSpock/subscriptions","organizations_url":"https://api.github.com/users/SyrianSpock/orgs","repos_url":"https://api.github.com/users/SyrianSpock/repos","events_url":"https://api.github.com/users/SyrianSpock/events{/privacy}","received_events_url":"https://api.github.com/users/SyrianSpock/received_events","type":"User","site_admin":false},"body":"only one color counts for this ;)","created_at":"2018-05-09T15:03:54Z","updated_at":"2018-05-09T15:03:54Z","html_url":"https://github.com/cvra/robot-software/pull/138#discussion_r187071360","pull_request_url":"https://api.github.com/repos/cvra/robot-software/pulls/138","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/cvra/robot-software/pulls/comments/187071360"},"html":{"href":"https://github.com/cvra/robot-software/pull/138#discussion_r187071360"},"pull_request":{"href":"https://api.github.com/repos/cvra/robot-software/pulls/138"}},"in_reply_to_id":187063413},"pull_request":{"url":"https://api.github.com/repos/cvra/robot-software/pulls/138","id":186940895,"html_url":"https://github.com/cvra/robot-software/pull/138","diff_url":"https://github.com/cvra/robot-software/pull/138.diff","patch_url":"https://github.com/cvra/robot-software/pull/138.patch","issue_url":"https://api.github.com/repos/cvra/robot-software/issues/138","number":138,"state":"open","locked":false,"title":"Count balls using Sick light sensor","user":{"login":"SyrianSpock","id":6131403,"avatar_url":"https://avatars2.githubusercontent.com/u/6131403?v=4","gravatar_id":"","url":"https://api.github.com/users/SyrianSpock","html_url":"https://github.com/SyrianSpock","followers_url":"https://api.github.com/users/SyrianSpock/followers","following_url":"https://api.github.com/users/SyrianSpock/following{/other_user}","gists_url":"https://api.github.com/users/SyrianSpock/gists{/gist_id}","starred_url":"https://api.github.com/users/SyrianSpock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SyrianSpock/subscriptions","organizations_url":"https://api.github.com/users/SyrianSpock/orgs","repos_url":"https://api.github.com/users/SyrianSpock/repos","events_url":"https://api.github.com/users/SyrianSpock/events{/privacy}","received_events_url":"https://api.github.com/users/SyrianSpock/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-09T14:32:26Z","updated_at":"2018-05-09T15:03:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"42489fd07231befe786968d4b754a150a8b31697","assignee":null,"assignees":[],"requested_reviewers":[{"login":"nuft","id":7102039,"avatar_url":"https://avatars0.githubusercontent.com/u/7102039?v=4","gravatar_id":"","url":"https://api.github.com/users/nuft","html_url":"https://github.com/nuft","followers_url":"https://api.github.com/users/nuft/followers","following_url":"https://api.github.com/users/nuft/following{/other_user}","gists_url":"https://api.github.com/users/nuft/gists{/gist_id}","starred_url":"https://api.github.com/users/nuft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuft/subscriptions","organizations_url":"https://api.github.com/users/nuft/orgs","repos_url":"https://api.github.com/users/nuft/repos","events_url":"https://api.github.com/users/nuft/events{/privacy}","received_events_url":"https://api.github.com/users/nuft/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cvra/robot-software/pulls/138/commits","review_comments_url":"https://api.github.com/repos/cvra/robot-software/pulls/138/comments","review_comment_url":"https://api.github.com/repos/cvra/robot-software/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cvra/robot-software/issues/138/comments","statuses_url":"https://api.github.com/repos/cvra/robot-software/statuses/f2b0fc40b6f2c91f3fe8edf2ca73a216812b596b","head":{"label":"cvra:feature-count-balls","ref":"feature-count-balls","sha":"f2b0fc40b6f2c91f3fe8edf2ca73a216812b596b","user":{"login":"cvra","id":5530328,"avatar_url":"https://avatars3.githubusercontent.com/u/5530328?v=4","gravatar_id":"","url":"https://api.github.com/users/cvra","html_url":"https://github.com/cvra","followers_url":"https://api.github.com/users/cvra/followers","following_url":"https://api.github.com/users/cvra/following{/other_user}","gists_url":"https://api.github.com/users/cvra/gists{/gist_id}","starred_url":"https://api.github.com/users/cvra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvra/subscriptions","organizations_url":"https://api.github.com/users/cvra/orgs","repos_url":"https://api.github.com/users/cvra/repos","events_url":"https://api.github.com/users/cvra/events{/privacy}","received_events_url":"https://api.github.com/users/cvra/received_events","type":"Organization","site_admin":false},"repo":{"id":68636610,"name":"robot-software","full_name":"cvra/robot-software","owner":{"login":"cvra","id":5530328,"avatar_url":"https://avatars3.githubusercontent.com/u/5530328?v=4","gravatar_id":"","url":"https://api.github.com/users/cvra","html_url":"https://github.com/cvra","followers_url":"https://api.github.com/users/cvra/followers","following_url":"https://api.github.com/users/cvra/following{/other_user}","gists_url":"https://api.github.com/users/cvra/gists{/gist_id}","starred_url":"https://api.github.com/users/cvra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvra/subscriptions","organizations_url":"https://api.github.com/users/cvra/orgs","repos_url":"https://api.github.com/users/cvra/repos","events_url":"https://api.github.com/users/cvra/events{/privacy}","received_events_url":"https://api.github.com/users/cvra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvra/robot-software","description":"Eurobot 2017-2018 robot software stack","fork":false,"url":"https://api.github.com/repos/cvra/robot-software","forks_url":"https://api.github.com/repos/cvra/robot-software/forks","keys_url":"https://api.github.com/repos/cvra/robot-software/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvra/robot-software/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvra/robot-software/teams","hooks_url":"https://api.github.com/repos/cvra/robot-software/hooks","issue_events_url":"https://api.github.com/repos/cvra/robot-software/issues/events{/number}","events_url":"https://api.github.com/repos/cvra/robot-software/events","assignees_url":"https://api.github.com/repos/cvra/robot-software/assignees{/user}","branches_url":"https://api.github.com/repos/cvra/robot-software/branches{/branch}","tags_url":"https://api.github.com/repos/cvra/robot-software/tags","blobs_url":"https://api.github.com/repos/cvra/robot-software/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvra/robot-software/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvra/robot-software/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvra/robot-software/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvra/robot-software/statuses/{sha}","languages_url":"https://api.github.com/repos/cvra/robot-software/languages","stargazers_url":"https://api.github.com/repos/cvra/robot-software/stargazers","contributors_url":"https://api.github.com/repos/cvra/robot-software/contributors","subscribers_url":"https://api.github.com/repos/cvra/robot-software/subscribers","subscription_url":"https://api.github.com/repos/cvra/robot-software/subscription","commits_url":"https://api.github.com/repos/cvra/robot-software/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvra/robot-software/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvra/robot-software/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvra/robot-software/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvra/robot-software/contents/{+path}","compare_url":"https://api.github.com/repos/cvra/robot-software/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvra/robot-software/merges","archive_url":"https://api.github.com/repos/cvra/robot-software/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvra/robot-software/downloads","issues_url":"https://api.github.com/repos/cvra/robot-software/issues{/number}","pulls_url":"https://api.github.com/repos/cvra/robot-software/pulls{/number}","milestones_url":"https://api.github.com/repos/cvra/robot-software/milestones{/number}","notifications_url":"https://api.github.com/repos/cvra/robot-software/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvra/robot-software/labels{/name}","releases_url":"https://api.github.com/repos/cvra/robot-software/releases{/id}","deployments_url":"https://api.github.com/repos/cvra/robot-software/deployments","created_at":"2016-09-19T19:00:32Z","updated_at":"2018-05-09T14:30:29Z","pushed_at":"2018-05-09T15:03:11Z","git_url":"git://github.com/cvra/robot-software.git","ssh_url":"git@github.com:cvra/robot-software.git","clone_url":"https://github.com/cvra/robot-software.git","svn_url":"https://github.com/cvra/robot-software","homepage":"","size":11178,"stargazers_count":12,"watchers_count":12,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":18,"license":null,"forks":4,"open_issues":18,"watchers":12,"default_branch":"master"}},"base":{"label":"cvra:master","ref":"master","sha":"557aa2d149ad20d08db2375f875eb2a0670f6c47","user":{"login":"cvra","id":5530328,"avatar_url":"https://avatars3.githubusercontent.com/u/5530328?v=4","gravatar_id":"","url":"https://api.github.com/users/cvra","html_url":"https://github.com/cvra","followers_url":"https://api.github.com/users/cvra/followers","following_url":"https://api.github.com/users/cvra/following{/other_user}","gists_url":"https://api.github.com/users/cvra/gists{/gist_id}","starred_url":"https://api.github.com/users/cvra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvra/subscriptions","organizations_url":"https://api.github.com/users/cvra/orgs","repos_url":"https://api.github.com/users/cvra/repos","events_url":"https://api.github.com/users/cvra/events{/privacy}","received_events_url":"https://api.github.com/users/cvra/received_events","type":"Organization","site_admin":false},"repo":{"id":68636610,"name":"robot-software","full_name":"cvra/robot-software","owner":{"login":"cvra","id":5530328,"avatar_url":"https://avatars3.githubusercontent.com/u/5530328?v=4","gravatar_id":"","url":"https://api.github.com/users/cvra","html_url":"https://github.com/cvra","followers_url":"https://api.github.com/users/cvra/followers","following_url":"https://api.github.com/users/cvra/following{/other_user}","gists_url":"https://api.github.com/users/cvra/gists{/gist_id}","starred_url":"https://api.github.com/users/cvra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvra/subscriptions","organizations_url":"https://api.github.com/users/cvra/orgs","repos_url":"https://api.github.com/users/cvra/repos","events_url":"https://api.github.com/users/cvra/events{/privacy}","received_events_url":"https://api.github.com/users/cvra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvra/robot-software","description":"Eurobot 2017-2018 robot software stack","fork":false,"url":"https://api.github.com/repos/cvra/robot-software","forks_url":"https://api.github.com/repos/cvra/robot-software/forks","keys_url":"https://api.github.com/repos/cvra/robot-software/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvra/robot-software/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvra/robot-software/teams","hooks_url":"https://api.github.com/repos/cvra/robot-software/hooks","issue_events_url":"https://api.github.com/repos/cvra/robot-software/issues/events{/number}","events_url":"https://api.github.com/repos/cvra/robot-software/events","assignees_url":"https://api.github.com/repos/cvra/robot-software/assignees{/user}","branches_url":"https://api.github.com/repos/cvra/robot-software/branches{/branch}","tags_url":"https://api.github.com/repos/cvra/robot-software/tags","blobs_url":"https://api.github.com/repos/cvra/robot-software/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvra/robot-software/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvra/robot-software/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvra/robot-software/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvra/robot-software/statuses/{sha}","languages_url":"https://api.github.com/repos/cvra/robot-software/languages","stargazers_url":"https://api.github.com/repos/cvra/robot-software/stargazers","contributors_url":"https://api.github.com/repos/cvra/robot-software/contributors","subscribers_url":"https://api.github.com/repos/cvra/robot-software/subscribers","subscription_url":"https://api.github.com/repos/cvra/robot-software/subscription","commits_url":"https://api.github.com/repos/cvra/robot-software/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvra/robot-software/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvra/robot-software/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvra/robot-software/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvra/robot-software/contents/{+path}","compare_url":"https://api.github.com/repos/cvra/robot-software/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvra/robot-software/merges","archive_url":"https://api.github.com/repos/cvra/robot-software/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvra/robot-software/downloads","issues_url":"https://api.github.com/repos/cvra/robot-software/issues{/number}","pulls_url":"https://api.github.com/repos/cvra/robot-software/pulls{/number}","milestones_url":"https://api.github.com/repos/cvra/robot-software/milestones{/number}","notifications_url":"https://api.github.com/repos/cvra/robot-software/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvra/robot-software/labels{/name}","releases_url":"https://api.github.com/repos/cvra/robot-software/releases{/id}","deployments_url":"https://api.github.com/repos/cvra/robot-software/deployments","created_at":"2016-09-19T19:00:32Z","updated_at":"2018-05-09T14:30:29Z","pushed_at":"2018-05-09T15:03:11Z","git_url":"git://github.com/cvra/robot-software.git","ssh_url":"git@github.com:cvra/robot-software.git","clone_url":"https://github.com/cvra/robot-software.git","svn_url":"https://github.com/cvra/robot-software","homepage":"","size":11178,"stargazers_count":12,"watchers_count":12,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":18,"license":null,"forks":4,"open_issues":18,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cvra/robot-software/pulls/138"},"html":{"href":"https://github.com/cvra/robot-software/pull/138"},"issue":{"href":"https://api.github.com/repos/cvra/robot-software/issues/138"},"comments":{"href":"https://api.github.com/repos/cvra/robot-software/issues/138/comments"},"review_comments":{"href":"https://api.github.com/repos/cvra/robot-software/pulls/138/comments"},"review_comment":{"href":"https://api.github.com/repos/cvra/robot-software/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cvra/robot-software/pulls/138/commits"},"statuses":{"href":"https://api.github.com/repos/cvra/robot-software/statuses/f2b0fc40b6f2c91f3fe8edf2ca73a216812b596b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"SyrianSpock"}}