payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mysociety/docker-consul/pulls/comments/259411437","pull_request_review_id":206906237,"id":259411437,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI1OTQxMTQzNw==","diff_hunk":"@@ -42,7 +42,8 @@ Rails.application.configure do\n   # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX\n \n   # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.\n-  config.force_ssl = false\n+  # Can be overriden by setting CONFIG_FORCE_SSL to anything accept \"true\" in the environment.\n+  config.force_ssl = ENV['CONFIG_FORCE_SSL'].nil? || ENV['CONFIG_FORCE_SSL'] == \"true\" ? true : false","path":"config/environments/production.rb.deploy","position":6,"original_position":6,"commit_id":"c2d4463b51b908c98363cc02566c3ba01f7032a8","original_commit_id":"c2d4463b51b908c98363cc02566c3ba01f7032a8","user":{"login":"gbp","id":5426,"node_id":"MDQ6VXNlcjU0MjY=","avatar_url":"https://avatars1.githubusercontent.com/u/5426?v=4","gravatar_id":"","url":"https://api.github.com/users/gbp","html_url":"https://github.com/gbp","followers_url":"https://api.github.com/users/gbp/followers","following_url":"https://api.github.com/users/gbp/following{/other_user}","gists_url":"https://api.github.com/users/gbp/gists{/gist_id}","starred_url":"https://api.github.com/users/gbp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbp/subscriptions","organizations_url":"https://api.github.com/users/gbp/orgs","repos_url":"https://api.github.com/users/gbp/repos","events_url":"https://api.github.com/users/gbp/events{/privacy}","received_events_url":"https://api.github.com/users/gbp/received_events","type":"User","site_admin":false},"body":"Ternary operation isn't required as this is equivalent:\r\n\r\n```suggestion\r\n  config.force_ssl = ENV['CONFIG_FORCE_SSL'].nil? || ENV['CONFIG_FORCE_SSL'] == \"true\"\r\n```","created_at":"2019-02-22T16:22:54Z","updated_at":"2019-02-22T16:36:43Z","html_url":"https://github.com/mysociety/docker-consul/pull/7#discussion_r259411437","pull_request_url":"https://api.github.com/repos/mysociety/docker-consul/pulls/7","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/mysociety/docker-consul/pulls/comments/259411437"},"html":{"href":"https://github.com/mysociety/docker-consul/pull/7#discussion_r259411437"},"pull_request":{"href":"https://api.github.com/repos/mysociety/docker-consul/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/mysociety/docker-consul/pulls/7","id":255445438,"node_id":"MDExOlB1bGxSZXF1ZXN0MjU1NDQ1NDM4","html_url":"https://github.com/mysociety/docker-consul/pull/7","diff_url":"https://github.com/mysociety/docker-consul/pull/7.diff","patch_url":"https://github.com/mysociety/docker-consul/pull/7.patch","issue_url":"https://api.github.com/repos/mysociety/docker-consul/issues/7","number":7,"state":"open","locked":false,"title":"Make `confg.force_ssl` configurable (fixes #1)","user":{"login":"sagepe","id":1951880,"node_id":"MDQ6VXNlcjE5NTE4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1951880?v=4","gravatar_id":"","url":"https://api.github.com/users/sagepe","html_url":"https://github.com/sagepe","followers_url":"https://api.github.com/users/sagepe/followers","following_url":"https://api.github.com/users/sagepe/following{/other_user}","gists_url":"https://api.github.com/users/sagepe/gists{/gist_id}","starred_url":"https://api.github.com/users/sagepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagepe/subscriptions","organizations_url":"https://api.github.com/users/sagepe/orgs","repos_url":"https://api.github.com/users/sagepe/repos","events_url":"https://api.github.com/users/sagepe/events{/privacy}","received_events_url":"https://api.github.com/users/sagepe/received_events","type":"User","site_admin":false},"body":"This checks for `CONFIG_FORCE_SSL` in the environment. This should be the default for a production stack, so if it's not present or set to \"true\" set `config.force_ssl` to boolean `true`, otherwise set to boolean `false`.","created_at":"2019-02-22T16:00:13Z","updated_at":"2019-02-22T16:36:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"37dd4d956cefcbd9339de5003c75208fd5a17f57","assignee":{"login":"sagepe","id":1951880,"node_id":"MDQ6VXNlcjE5NTE4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1951880?v=4","gravatar_id":"","url":"https://api.github.com/users/sagepe","html_url":"https://github.com/sagepe","followers_url":"https://api.github.com/users/sagepe/followers","following_url":"https://api.github.com/users/sagepe/following{/other_user}","gists_url":"https://api.github.com/users/sagepe/gists{/gist_id}","starred_url":"https://api.github.com/users/sagepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagepe/subscriptions","organizations_url":"https://api.github.com/users/sagepe/orgs","repos_url":"https://api.github.com/users/sagepe/repos","events_url":"https://api.github.com/users/sagepe/events{/privacy}","received_events_url":"https://api.github.com/users/sagepe/received_events","type":"User","site_admin":false},"assignees":[{"login":"sagepe","id":1951880,"node_id":"MDQ6VXNlcjE5NTE4ODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1951880?v=4","gravatar_id":"","url":"https://api.github.com/users/sagepe","html_url":"https://github.com/sagepe","followers_url":"https://api.github.com/users/sagepe/followers","following_url":"https://api.github.com/users/sagepe/following{/other_user}","gists_url":"https://api.github.com/users/sagepe/gists{/gist_id}","starred_url":"https://api.github.com/users/sagepe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagepe/subscriptions","organizations_url":"https://api.github.com/users/sagepe/orgs","repos_url":"https://api.github.com/users/sagepe/repos","events_url":"https://api.github.com/users/sagepe/events{/privacy}","received_events_url":"https://api.github.com/users/sagepe/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mysociety/docker-consul/pulls/7/commits","review_comments_url":"https://api.github.com/repos/mysociety/docker-consul/pulls/7/comments","review_comment_url":"https://api.github.com/repos/mysociety/docker-consul/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mysociety/docker-consul/issues/7/comments","statuses_url":"https://api.github.com/repos/mysociety/docker-consul/statuses/c2d4463b51b908c98363cc02566c3ba01f7032a8","head":{"label":"mysociety:configure-force-ssl","ref":"configure-force-ssl","sha":"c2d4463b51b908c98363cc02566c3ba01f7032a8","user":{"login":"mysociety","id":141338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTMzOA==","avatar_url":"https://avatars1.githubusercontent.com/u/141338?v=4","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":172074160,"node_id":"MDEwOlJlcG9zaXRvcnkxNzIwNzQxNjA=","name":"docker-consul","full_name":"mysociety/docker-consul","private":false,"owner":{"login":"mysociety","id":141338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTMzOA==","avatar_url":"https://avatars1.githubusercontent.com/u/141338?v=4","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mysociety/docker-consul","description":"Prodcution-ready Docker deployments for CONSUL","fork":false,"url":"https://api.github.com/repos/mysociety/docker-consul","forks_url":"https://api.github.com/repos/mysociety/docker-consul/forks","keys_url":"https://api.github.com/repos/mysociety/docker-consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/docker-consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/docker-consul/teams","hooks_url":"https://api.github.com/repos/mysociety/docker-consul/hooks","issue_events_url":"https://api.github.com/repos/mysociety/docker-consul/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/docker-consul/events","assignees_url":"https://api.github.com/repos/mysociety/docker-consul/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/docker-consul/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/docker-consul/tags","blobs_url":"https://api.github.com/repos/mysociety/docker-consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/docker-consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/docker-consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/docker-consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/docker-consul/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/docker-consul/languages","stargazers_url":"https://api.github.com/repos/mysociety/docker-consul/stargazers","contributors_url":"https://api.github.com/repos/mysociety/docker-consul/contributors","subscribers_url":"https://api.github.com/repos/mysociety/docker-consul/subscribers","subscription_url":"https://api.github.com/repos/mysociety/docker-consul/subscription","commits_url":"https://api.github.com/repos/mysociety/docker-consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/docker-consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/docker-consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/docker-consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/docker-consul/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/docker-consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/docker-consul/merges","archive_url":"https://api.github.com/repos/mysociety/docker-consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/docker-consul/downloads","issues_url":"https://api.github.com/repos/mysociety/docker-consul/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/docker-consul/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/docker-consul/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/docker-consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/docker-consul/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/docker-consul/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/docker-consul/deployments","created_at":"2019-02-22T13:50:20Z","updated_at":"2019-02-22T14:32:29Z","pushed_at":"2019-02-22T16:00:14Z","git_url":"git://github.com/mysociety/docker-consul.git","ssh_url":"git@github.com:mysociety/docker-consul.git","clone_url":"https://github.com/mysociety/docker-consul.git","svn_url":"https://github.com/mysociety/docker-consul","homepage":"https://www.mysociety.org/","size":24,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"mysociety:master","ref":"master","sha":"9a80b97eff40bffacabcffaf21d8d5393cbb8a84","user":{"login":"mysociety","id":141338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTMzOA==","avatar_url":"https://avatars1.githubusercontent.com/u/141338?v=4","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"repo":{"id":172074160,"node_id":"MDEwOlJlcG9zaXRvcnkxNzIwNzQxNjA=","name":"docker-consul","full_name":"mysociety/docker-consul","private":false,"owner":{"login":"mysociety","id":141338,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTMzOA==","avatar_url":"https://avatars1.githubusercontent.com/u/141338?v=4","gravatar_id":"","url":"https://api.github.com/users/mysociety","html_url":"https://github.com/mysociety","followers_url":"https://api.github.com/users/mysociety/followers","following_url":"https://api.github.com/users/mysociety/following{/other_user}","gists_url":"https://api.github.com/users/mysociety/gists{/gist_id}","starred_url":"https://api.github.com/users/mysociety/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mysociety/subscriptions","organizations_url":"https://api.github.com/users/mysociety/orgs","repos_url":"https://api.github.com/users/mysociety/repos","events_url":"https://api.github.com/users/mysociety/events{/privacy}","received_events_url":"https://api.github.com/users/mysociety/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/mysociety/docker-consul","description":"Prodcution-ready Docker deployments for CONSUL","fork":false,"url":"https://api.github.com/repos/mysociety/docker-consul","forks_url":"https://api.github.com/repos/mysociety/docker-consul/forks","keys_url":"https://api.github.com/repos/mysociety/docker-consul/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mysociety/docker-consul/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mysociety/docker-consul/teams","hooks_url":"https://api.github.com/repos/mysociety/docker-consul/hooks","issue_events_url":"https://api.github.com/repos/mysociety/docker-consul/issues/events{/number}","events_url":"https://api.github.com/repos/mysociety/docker-consul/events","assignees_url":"https://api.github.com/repos/mysociety/docker-consul/assignees{/user}","branches_url":"https://api.github.com/repos/mysociety/docker-consul/branches{/branch}","tags_url":"https://api.github.com/repos/mysociety/docker-consul/tags","blobs_url":"https://api.github.com/repos/mysociety/docker-consul/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mysociety/docker-consul/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mysociety/docker-consul/git/refs{/sha}","trees_url":"https://api.github.com/repos/mysociety/docker-consul/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mysociety/docker-consul/statuses/{sha}","languages_url":"https://api.github.com/repos/mysociety/docker-consul/languages","stargazers_url":"https://api.github.com/repos/mysociety/docker-consul/stargazers","contributors_url":"https://api.github.com/repos/mysociety/docker-consul/contributors","subscribers_url":"https://api.github.com/repos/mysociety/docker-consul/subscribers","subscription_url":"https://api.github.com/repos/mysociety/docker-consul/subscription","commits_url":"https://api.github.com/repos/mysociety/docker-consul/commits{/sha}","git_commits_url":"https://api.github.com/repos/mysociety/docker-consul/git/commits{/sha}","comments_url":"https://api.github.com/repos/mysociety/docker-consul/comments{/number}","issue_comment_url":"https://api.github.com/repos/mysociety/docker-consul/issues/comments{/number}","contents_url":"https://api.github.com/repos/mysociety/docker-consul/contents/{+path}","compare_url":"https://api.github.com/repos/mysociety/docker-consul/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mysociety/docker-consul/merges","archive_url":"https://api.github.com/repos/mysociety/docker-consul/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mysociety/docker-consul/downloads","issues_url":"https://api.github.com/repos/mysociety/docker-consul/issues{/number}","pulls_url":"https://api.github.com/repos/mysociety/docker-consul/pulls{/number}","milestones_url":"https://api.github.com/repos/mysociety/docker-consul/milestones{/number}","notifications_url":"https://api.github.com/repos/mysociety/docker-consul/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mysociety/docker-consul/labels{/name}","releases_url":"https://api.github.com/repos/mysociety/docker-consul/releases{/id}","deployments_url":"https://api.github.com/repos/mysociety/docker-consul/deployments","created_at":"2019-02-22T13:50:20Z","updated_at":"2019-02-22T14:32:29Z","pushed_at":"2019-02-22T16:00:14Z","git_url":"git://github.com/mysociety/docker-consul.git","ssh_url":"git@github.com:mysociety/docker-consul.git","clone_url":"https://github.com/mysociety/docker-consul.git","svn_url":"https://github.com/mysociety/docker-consul","homepage":"https://www.mysociety.org/","size":24,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mysociety/docker-consul/pulls/7"},"html":{"href":"https://github.com/mysociety/docker-consul/pull/7"},"issue":{"href":"https://api.github.com/repos/mysociety/docker-consul/issues/7"},"comments":{"href":"https://api.github.com/repos/mysociety/docker-consul/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/mysociety/docker-consul/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/mysociety/docker-consul/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mysociety/docker-consul/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/mysociety/docker-consul/statuses/c2d4463b51b908c98363cc02566c3ba01f7032a8"}},"author_association":"MEMBER"}}
other: {"actor":{"display_login":"gbp"}}