{"action":"opened","number":6,"pull_request":{"url":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/6","id":78605579,"html_url":"https://github.com/jelmersnoeck/experiment/pull/6","diff_url":"https://github.com/jelmersnoeck/experiment/pull/6.diff","patch_url":"https://github.com/jelmersnoeck/experiment/pull/6.patch","issue_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues/6","number":6,"state":"open","locked":false,"title":"Experiment: inject context at runtime.","user":{"login":"jelmersnoeck","id":815655,"avatar_url":"https://avatars.githubusercontent.com/u/815655?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmersnoeck","html_url":"https://github.com/jelmersnoeck","followers_url":"https://api.github.com/users/jelmersnoeck/followers","following_url":"https://api.github.com/users/jelmersnoeck/following{/other_user}","gists_url":"https://api.github.com/users/jelmersnoeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmersnoeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmersnoeck/subscriptions","organizations_url":"https://api.github.com/users/jelmersnoeck/orgs","repos_url":"https://api.github.com/users/jelmersnoeck/repos","events_url":"https://api.github.com/users/jelmersnoeck/events{/privacy}","received_events_url":"https://api.github.com/users/jelmersnoeck/received_events","type":"User","site_admin":false},"body":"By injecting the context when we create the experiment, it meant that\nthe experiment was always in a \"fresh\" state. This means that the\ncounter would always have been reset for the percentage option.\n\nWe now inject the context - and this also adds the posibility to add\n`nil` - at runtime, which makes it possible to setup the experiment\noutside of the concurrency scope but still use it concurrently.","created_at":"2016-07-24T18:38:19Z","updated_at":"2016-07-24T18:38:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/6/commits","review_comments_url":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/6/comments","review_comment_url":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues/6/comments","statuses_url":"https://api.github.com/repos/jelmersnoeck/experiment/statuses/a5e41040aaf83fee6851e2ec259aa873b2558397","head":{"label":"jelmersnoeck:jelmer/context-at-runtime","ref":"jelmer/context-at-runtime","sha":"a5e41040aaf83fee6851e2ec259aa873b2558397","user":{"login":"jelmersnoeck","id":815655,"avatar_url":"https://avatars.githubusercontent.com/u/815655?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmersnoeck","html_url":"https://github.com/jelmersnoeck","followers_url":"https://api.github.com/users/jelmersnoeck/followers","following_url":"https://api.github.com/users/jelmersnoeck/following{/other_user}","gists_url":"https://api.github.com/users/jelmersnoeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmersnoeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmersnoeck/subscriptions","organizations_url":"https://api.github.com/users/jelmersnoeck/orgs","repos_url":"https://api.github.com/users/jelmersnoeck/repos","events_url":"https://api.github.com/users/jelmersnoeck/events{/privacy}","received_events_url":"https://api.github.com/users/jelmersnoeck/received_events","type":"User","site_admin":false},"repo":{"id":55893459,"name":"experiment","full_name":"jelmersnoeck/experiment","owner":{"login":"jelmersnoeck","id":815655,"avatar_url":"https://avatars.githubusercontent.com/u/815655?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmersnoeck","html_url":"https://github.com/jelmersnoeck","followers_url":"https://api.github.com/users/jelmersnoeck/followers","following_url":"https://api.github.com/users/jelmersnoeck/following{/other_user}","gists_url":"https://api.github.com/users/jelmersnoeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmersnoeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmersnoeck/subscriptions","organizations_url":"https://api.github.com/users/jelmersnoeck/orgs","repos_url":"https://api.github.com/users/jelmersnoeck/repos","events_url":"https://api.github.com/users/jelmersnoeck/events{/privacy}","received_events_url":"https://api.github.com/users/jelmersnoeck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jelmersnoeck/experiment","description":"A Go package for experimenting with and evaluating new code paths.","fork":false,"url":"https://api.github.com/repos/jelmersnoeck/experiment","forks_url":"https://api.github.com/repos/jelmersnoeck/experiment/forks","keys_url":"https://api.github.com/repos/jelmersnoeck/experiment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jelmersnoeck/experiment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jelmersnoeck/experiment/teams","hooks_url":"https://api.github.com/repos/jelmersnoeck/experiment/hooks","issue_events_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues/events{/number}","events_url":"https://api.github.com/repos/jelmersnoeck/experiment/events","assignees_url":"https://api.github.com/repos/jelmersnoeck/experiment/assignees{/user}","branches_url":"https://api.github.com/repos/jelmersnoeck/experiment/branches{/branch}","tags_url":"https://api.github.com/repos/jelmersnoeck/experiment/tags","blobs_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/refs{/sha}","trees_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jelmersnoeck/experiment/statuses/{sha}","languages_url":"https://api.github.com/repos/jelmersnoeck/experiment/languages","stargazers_url":"https://api.github.com/repos/jelmersnoeck/experiment/stargazers","contributors_url":"https://api.github.com/repos/jelmersnoeck/experiment/contributors","subscribers_url":"https://api.github.com/repos/jelmersnoeck/experiment/subscribers","subscription_url":"https://api.github.com/repos/jelmersnoeck/experiment/subscription","commits_url":"https://api.github.com/repos/jelmersnoeck/experiment/commits{/sha}","git_commits_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/commits{/sha}","comments_url":"https://api.github.com/repos/jelmersnoeck/experiment/comments{/number}","issue_comment_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues/comments{/number}","contents_url":"https://api.github.com/repos/jelmersnoeck/experiment/contents/{+path}","compare_url":"https://api.github.com/repos/jelmersnoeck/experiment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jelmersnoeck/experiment/merges","archive_url":"https://api.github.com/repos/jelmersnoeck/experiment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jelmersnoeck/experiment/downloads","issues_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues{/number}","pulls_url":"https://api.github.com/repos/jelmersnoeck/experiment/pulls{/number}","milestones_url":"https://api.github.com/repos/jelmersnoeck/experiment/milestones{/number}","notifications_url":"https://api.github.com/repos/jelmersnoeck/experiment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jelmersnoeck/experiment/labels{/name}","releases_url":"https://api.github.com/repos/jelmersnoeck/experiment/releases{/id}","deployments_url":"https://api.github.com/repos/jelmersnoeck/experiment/deployments","created_at":"2016-04-10T10:43:18Z","updated_at":"2016-06-28T11:56:07Z","pushed_at":"2016-07-24T18:38:18Z","git_url":"git://github.com/jelmersnoeck/experiment.git","ssh_url":"git@github.com:jelmersnoeck/experiment.git","clone_url":"https://github.com/jelmersnoeck/experiment.git","svn_url":"https://github.com/jelmersnoeck/experiment","homepage":null,"size":35,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"base":{"label":"jelmersnoeck:master","ref":"master","sha":"b269d8787c9c8abdde0ddddaedd80a99cb1b65d4","user":{"login":"jelmersnoeck","id":815655,"avatar_url":"https://avatars.githubusercontent.com/u/815655?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmersnoeck","html_url":"https://github.com/jelmersnoeck","followers_url":"https://api.github.com/users/jelmersnoeck/followers","following_url":"https://api.github.com/users/jelmersnoeck/following{/other_user}","gists_url":"https://api.github.com/users/jelmersnoeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmersnoeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmersnoeck/subscriptions","organizations_url":"https://api.github.com/users/jelmersnoeck/orgs","repos_url":"https://api.github.com/users/jelmersnoeck/repos","events_url":"https://api.github.com/users/jelmersnoeck/events{/privacy}","received_events_url":"https://api.github.com/users/jelmersnoeck/received_events","type":"User","site_admin":false},"repo":{"id":55893459,"name":"experiment","full_name":"jelmersnoeck/experiment","owner":{"login":"jelmersnoeck","id":815655,"avatar_url":"https://avatars.githubusercontent.com/u/815655?v=3","gravatar_id":"","url":"https://api.github.com/users/jelmersnoeck","html_url":"https://github.com/jelmersnoeck","followers_url":"https://api.github.com/users/jelmersnoeck/followers","following_url":"https://api.github.com/users/jelmersnoeck/following{/other_user}","gists_url":"https://api.github.com/users/jelmersnoeck/gists{/gist_id}","starred_url":"https://api.github.com/users/jelmersnoeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jelmersnoeck/subscriptions","organizations_url":"https://api.github.com/users/jelmersnoeck/orgs","repos_url":"https://api.github.com/users/jelmersnoeck/repos","events_url":"https://api.github.com/users/jelmersnoeck/events{/privacy}","received_events_url":"https://api.github.com/users/jelmersnoeck/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jelmersnoeck/experiment","description":"A Go package for experimenting with and evaluating new code paths.","fork":false,"url":"https://api.github.com/repos/jelmersnoeck/experiment","forks_url":"https://api.github.com/repos/jelmersnoeck/experiment/forks","keys_url":"https://api.github.com/repos/jelmersnoeck/experiment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jelmersnoeck/experiment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jelmersnoeck/experiment/teams","hooks_url":"https://api.github.com/repos/jelmersnoeck/experiment/hooks","issue_events_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues/events{/number}","events_url":"https://api.github.com/repos/jelmersnoeck/experiment/events","assignees_url":"https://api.github.com/repos/jelmersnoeck/experiment/assignees{/user}","branches_url":"https://api.github.com/repos/jelmersnoeck/experiment/branches{/branch}","tags_url":"https://api.github.com/repos/jelmersnoeck/experiment/tags","blobs_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/refs{/sha}","trees_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jelmersnoeck/experiment/statuses/{sha}","languages_url":"https://api.github.com/repos/jelmersnoeck/experiment/languages","stargazers_url":"https://api.github.com/repos/jelmersnoeck/experiment/stargazers","contributors_url":"https://api.github.com/repos/jelmersnoeck/experiment/contributors","subscribers_url":"https://api.github.com/repos/jelmersnoeck/experiment/subscribers","subscription_url":"https://api.github.com/repos/jelmersnoeck/experiment/subscription","commits_url":"https://api.github.com/repos/jelmersnoeck/experiment/commits{/sha}","git_commits_url":"https://api.github.com/repos/jelmersnoeck/experiment/git/commits{/sha}","comments_url":"https://api.github.com/repos/jelmersnoeck/experiment/comments{/number}","issue_comment_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues/comments{/number}","contents_url":"https://api.github.com/repos/jelmersnoeck/experiment/contents/{+path}","compare_url":"https://api.github.com/repos/jelmersnoeck/experiment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jelmersnoeck/experiment/merges","archive_url":"https://api.github.com/repos/jelmersnoeck/experiment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jelmersnoeck/experiment/downloads","issues_url":"https://api.github.com/repos/jelmersnoeck/experiment/issues{/number}","pulls_url":"https://api.github.com/repos/jelmersnoeck/experiment/pulls{/number}","milestones_url":"https://api.github.com/repos/jelmersnoeck/experiment/milestones{/number}","notifications_url":"https://api.github.com/repos/jelmersnoeck/experiment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jelmersnoeck/experiment/labels{/name}","releases_url":"https://api.github.com/repos/jelmersnoeck/experiment/releases{/id}","deployments_url":"https://api.github.com/repos/jelmersnoeck/experiment/deployments","created_at":"2016-04-10T10:43:18Z","updated_at":"2016-06-28T11:56:07Z","pushed_at":"2016-07-24T18:38:18Z","git_url":"git://github.com/jelmersnoeck/experiment.git","ssh_url":"git@github.com:jelmersnoeck/experiment.git","clone_url":"https://github.com/jelmersnoeck/experiment.git","svn_url":"https://github.com/jelmersnoeck/experiment","homepage":null,"size":35,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/6"},"html":{"href":"https://github.com/jelmersnoeck/experiment/pull/6"},"issue":{"href":"https://api.github.com/repos/jelmersnoeck/experiment/issues/6"},"comments":{"href":"https://api.github.com/repos/jelmersnoeck/experiment/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jelmersnoeck/experiment/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/jelmersnoeck/experiment/statuses/a5e41040aaf83fee6851e2ec259aa873b2558397"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":64,"deletions":72,"changed_files":6}}
{"actor":{"display_login":"jelmersnoeck"}}