{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/comments/99107662","pull_request_review_id":19771170,"id":99107662,"diff_hunk":"@@ -0,0 +1,23 @@\n+module GovukAbTesting\n+  class AbTest\n+    attr_reader :experiment_name\n+\n+    def initialize(experiment_name)\n+      @experiment_name = experiment_name\n+    end\n+\n+    # Internal name of the header\n+    def request_header\n+      \"HTTP_GOVUK_ABTEST_#{experiment_name.upcase}\"\n+    end\n+\n+    def response_header\n+      \"GOVUK-ABTest-#{cookie_name}\"\n+    end\n+\n+    # `example` -> `Example`\n+    def cookie_name\n+      experiment_name.capitalize","path":"lib/govuk_ab_testing/ab_test.rb","position":null,"original_position":20,"commit_id":"4f0e1843e725bd07aeedca0b1067e71e1aaa8477","original_commit_id":"165c574a457d3eeedad20795962a21e4f6f0153b","user":{"login":"tijmenb","id":233676,"avatar_url":"https://avatars.githubusercontent.com/u/233676?v=3","gravatar_id":"","url":"https://api.github.com/users/tijmenb","html_url":"https://github.com/tijmenb","followers_url":"https://api.github.com/users/tijmenb/followers","following_url":"https://api.github.com/users/tijmenb/following{/other_user}","gists_url":"https://api.github.com/users/tijmenb/gists{/gist_id}","starred_url":"https://api.github.com/users/tijmenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijmenb/subscriptions","organizations_url":"https://api.github.com/users/tijmenb/orgs","repos_url":"https://api.github.com/users/tijmenb/repos","events_url":"https://api.github.com/users/tijmenb/events{/privacy}","received_events_url":"https://api.github.com/users/tijmenb/received_events","type":"User","site_admin":false},"body":"Feels like we're missing something with the naming - is https://github.com/alphagov/govuk-cdn-config/pull/17 correct?\r\n\r\nhttps://github.com/alphagov/govuk-cdn-config/blob/f8f3cae5cb06570499e7f58e95b4f72df7e7d0cb/vcl_templates/www.vcl.erb#L212","created_at":"2017-02-02T12:16:26Z","updated_at":"2017-02-02T12:16:26Z","html_url":"https://github.com/alphagov/govuk_ab_testing/pull/1#discussion_r99107662","pull_request_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/comments/99107662"},"html":{"href":"https://github.com/alphagov/govuk_ab_testing/pull/1#discussion_r99107662"},"pull_request":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1","id":103968669,"html_url":"https://github.com/alphagov/govuk_ab_testing/pull/1","diff_url":"https://github.com/alphagov/govuk_ab_testing/pull/1.diff","patch_url":"https://github.com/alphagov/govuk_ab_testing/pull/1.patch","issue_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/1","number":1,"state":"open","locked":false,"title":"Add A/B testing library","user":{"login":"tijmenb","id":233676,"avatar_url":"https://avatars.githubusercontent.com/u/233676?v=3","gravatar_id":"","url":"https://api.github.com/users/tijmenb","html_url":"https://github.com/tijmenb","followers_url":"https://api.github.com/users/tijmenb/followers","following_url":"https://api.github.com/users/tijmenb/following{/other_user}","gists_url":"https://api.github.com/users/tijmenb/gists{/gist_id}","starred_url":"https://api.github.com/users/tijmenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tijmenb/subscriptions","organizations_url":"https://api.github.com/users/tijmenb/orgs","repos_url":"https://api.github.com/users/tijmenb/repos","events_url":"https://api.github.com/users/tijmenb/events{/privacy}","received_events_url":"https://api.github.com/users/tijmenb/received_events","type":"User","site_admin":false},"body":"This is a work in progress. I'll use this branch to gather feedback on the API and to test it out in one of the client apps.\r\n\r\nhttps://trello.com/c/bh7iFV7G","created_at":"2017-01-31T16:16:29Z","updated_at":"2017-02-02T12:16:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"444f484240cbc706b5d54500c70e97ed2728b244","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1/commits","review_comments_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1/comments","review_comment_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/1/comments","statuses_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/statuses/4f0e1843e725bd07aeedca0b1067e71e1aaa8477","head":{"label":"alphagov:enable-ab-testing","ref":"enable-ab-testing","sha":"4f0e1843e725bd07aeedca0b1067e71e1aaa8477","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":80531423,"name":"govuk_ab_testing","full_name":"alphagov/govuk_ab_testing","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_ab_testing","description":"Gem to help with A/B testing on the GOV.UK platform","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_ab_testing","forks_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/deployments","created_at":"2017-01-31T15:10:29Z","updated_at":"2017-01-31T15:12:48Z","pushed_at":"2017-02-02T12:13:38Z","git_url":"git://github.com/alphagov/govuk_ab_testing.git","ssh_url":"git@github.com:alphagov/govuk_ab_testing.git","clone_url":"https://github.com/alphagov/govuk_ab_testing.git","svn_url":"https://github.com/alphagov/govuk_ab_testing","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"129a89303b898e661e915573dee6f35f5419a01b","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":80531423,"name":"govuk_ab_testing","full_name":"alphagov/govuk_ab_testing","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/govuk_ab_testing","description":"Gem to help with A/B testing on the GOV.UK platform","fork":false,"url":"https://api.github.com/repos/alphagov/govuk_ab_testing","forks_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/forks","keys_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/teams","hooks_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/hooks","issue_events_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/events","assignees_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/tags","blobs_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/languages","stargazers_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/stargazers","contributors_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/contributors","subscribers_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/subscribers","subscription_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/subscription","commits_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/merges","archive_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/downloads","issues_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/govuk_ab_testing/deployments","created_at":"2017-01-31T15:10:29Z","updated_at":"2017-01-31T15:12:48Z","pushed_at":"2017-02-02T12:13:38Z","git_url":"git://github.com/alphagov/govuk_ab_testing.git","ssh_url":"git@github.com:alphagov/govuk_ab_testing.git","clone_url":"https://github.com/alphagov/govuk_ab_testing.git","svn_url":"https://github.com/alphagov/govuk_ab_testing","homepage":null,"size":8,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1"},"html":{"href":"https://github.com/alphagov/govuk_ab_testing/pull/1"},"issue":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/1"},"comments":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/govuk_ab_testing/statuses/4f0e1843e725bd07aeedca0b1067e71e1aaa8477"}}}}
{"actor":{"display_login":"tijmenb"}}