{"action":"created","issue":{"url":"https://api.github.com/repos/chaosbot/Chaos/issues/318","repository_url":"https://api.github.com/repos/chaosbot/Chaos","labels_url":"https://api.github.com/repos/chaosbot/Chaos/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/chaosbot/Chaos/issues/318/comments","events_url":"https://api.github.com/repos/chaosbot/Chaos/issues/318/events","html_url":"https://github.com/chaosbot/Chaos/pull/318","id":231823202,"number":318,"title":"[WIP] Make chaosbot tolerate some chaos","user":{"login":"mark-i-m","id":8827840,"avatar_url":"https://avatars3.githubusercontent.com/u/8827840?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-i-m","html_url":"https://github.com/mark-i-m","followers_url":"https://api.github.com/users/mark-i-m/followers","following_url":"https://api.github.com/users/mark-i-m/following{/other_user}","gists_url":"https://api.github.com/users/mark-i-m/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-i-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-i-m/subscriptions","organizations_url":"https://api.github.com/users/mark-i-m/orgs","repos_url":"https://api.github.com/users/mark-i-m/repos","events_url":"https://api.github.com/users/mark-i-m/events{/privacy}","received_events_url":"https://api.github.com/users/mark-i-m/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2017-05-27T19:35:24Z","updated_at":"2017-05-29T17:07:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chaosbot/Chaos/pulls/318","html_url":"https://github.com/chaosbot/Chaos/pull/318","diff_url":"https://github.com/chaosbot/Chaos/pull/318.diff","patch_url":"https://github.com/chaosbot/Chaos/pull/318.patch"},"body":"- If chaosbot crashes within the first 60s of starting, it is restarted by supervisord up to 10 times before supervisord finally gives up. This gives chaosbot a chance to go through at least one poll/merge cycle.\r\n\r\n- Every time chaosbot crashes it reverts to an older commit in the git history in the hope that this resolves the issue. To prevent attackers from hiding malicious code in their PRs and getting chaosbot to rollback to them, we only rollback to commits by chaosbot itself (i.e. merges).\r\n\r\n- Meanwhile, if there is a pull request for it to pull and merge, it does so after checking out master, so chaosbot will never get stuck in the past.\r\n\r\n- Throw in a few typo and minor bug fixes, too...\r\n\r\nEDIT: updated rollback stuff"},"comment":{"url":"https://api.github.com/repos/chaosbot/Chaos/issues/comments/304702122","html_url":"https://github.com/chaosbot/Chaos/pull/318#issuecomment-304702122","issue_url":"https://api.github.com/repos/chaosbot/Chaos/issues/318","id":304702122,"user":{"login":"mark-i-m","id":8827840,"avatar_url":"https://avatars3.githubusercontent.com/u/8827840?v=3","gravatar_id":"","url":"https://api.github.com/users/mark-i-m","html_url":"https://github.com/mark-i-m","followers_url":"https://api.github.com/users/mark-i-m/followers","following_url":"https://api.github.com/users/mark-i-m/following{/other_user}","gists_url":"https://api.github.com/users/mark-i-m/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-i-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-i-m/subscriptions","organizations_url":"https://api.github.com/users/mark-i-m/orgs","repos_url":"https://api.github.com/users/mark-i-m/repos","events_url":"https://api.github.com/users/mark-i-m/events{/privacy}","received_events_url":"https://api.github.com/users/mark-i-m/received_events","type":"User","site_admin":false},"created_at":"2017-05-29T17:07:57Z","updated_at":"2017-05-29T17:07:57Z","body":"@amoffat Is there a way to set an environment variable in production that isn't set in the dev environment?"}}
{"actor":{"display_login":"mark-i-m"}}