{"action":"created","comment":{"url":"https://api.github.com/repos/venmo/DVR/pulls/comments/70022997","id":70022997,"diff_hunk":"@@ -6,32 +6,146 @@ struct Cassette {\n \n     let name: String\n     let interactions: [Interaction]\n-\n+    let cassetteOptions: CassetteOptions\n \n     // MARK: - Initializers\n \n-    init(name: String, interactions: [Interaction]) {\n+    init(name: String, interactions: [Interaction], cassetteOptions: CassetteOptions) {\n         self.name = name\n         self.interactions = interactions\n+        self.cassetteOptions = cassetteOptions\n     }\n \n-\n     // MARK: - Functions\n \n     func interactionForRequest(request: NSURLRequest) -> Interaction? {\n         for interaction in interactions {\n             let interactionRequest = interaction.request\n+            ","path":"DVR/Cassette.swift","position":22,"original_position":22,"commit_id":"1c78f4451b76baeb4055474c1620f90c5dddac9d","original_commit_id":"1c78f4451b76baeb4055474c1620f90c5dddac9d","user":{"login":"pnicholls","id":139051,"avatar_url":"https://avatars.githubusercontent.com/u/139051?v=3","gravatar_id":"","url":"https://api.github.com/users/pnicholls","html_url":"https://github.com/pnicholls","followers_url":"https://api.github.com/users/pnicholls/followers","following_url":"https://api.github.com/users/pnicholls/following{/other_user}","gists_url":"https://api.github.com/users/pnicholls/gists{/gist_id}","starred_url":"https://api.github.com/users/pnicholls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnicholls/subscriptions","organizations_url":"https://api.github.com/users/pnicholls/orgs","repos_url":"https://api.github.com/users/pnicholls/repos","events_url":"https://api.github.com/users/pnicholls/events{/privacy}","received_events_url":"https://api.github.com/users/pnicholls/received_events","type":"User","site_admin":false},"body":"This is ugly, anyone have a better method?","created_at":"2016-07-08T04:04:22Z","updated_at":"2016-07-08T04:04:22Z","html_url":"https://github.com/venmo/DVR/pull/53#discussion_r70022997","pull_request_url":"https://api.github.com/repos/venmo/DVR/pulls/53","_links":{"self":{"href":"https://api.github.com/repos/venmo/DVR/pulls/comments/70022997"},"html":{"href":"https://github.com/venmo/DVR/pull/53#discussion_r70022997"},"pull_request":{"href":"https://api.github.com/repos/venmo/DVR/pulls/53"}}},"pull_request":{"url":"https://api.github.com/repos/venmo/DVR/pulls/53","id":76699203,"html_url":"https://github.com/venmo/DVR/pull/53","diff_url":"https://github.com/venmo/DVR/pull/53.diff","patch_url":"https://github.com/venmo/DVR/pull/53.patch","issue_url":"https://api.github.com/repos/venmo/DVR/issues/53","number":53,"state":"open","locked":false,"title":"Added ability to set cassette request options [Tests Required]","user":{"login":"pnicholls","id":139051,"avatar_url":"https://avatars.githubusercontent.com/u/139051?v=3","gravatar_id":"","url":"https://api.github.com/users/pnicholls","html_url":"https://github.com/pnicholls","followers_url":"https://api.github.com/users/pnicholls/followers","following_url":"https://api.github.com/users/pnicholls/following{/other_user}","gists_url":"https://api.github.com/users/pnicholls/gists{/gist_id}","starred_url":"https://api.github.com/users/pnicholls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnicholls/subscriptions","organizations_url":"https://api.github.com/users/pnicholls/orgs","repos_url":"https://api.github.com/users/pnicholls/repos","events_url":"https://api.github.com/users/pnicholls/events{/privacy}","received_events_url":"https://api.github.com/users/pnicholls/received_events","type":"User","site_admin":false},"body":"The options added so far allow a user to select what attributes a request should be matched on.\r\n\r\nRequest matching options include URL, Path, HTTPMethod and HTTPBody.\r\n\r\nI have added one test but this really needs more, I will add more once I find some time.","created_at":"2016-07-08T04:03:59Z","updated_at":"2016-07-08T04:04:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b0cf8fa00c6b804f719b136b4f6e62d6ba0411e5","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/venmo/DVR/pulls/53/commits","review_comments_url":"https://api.github.com/repos/venmo/DVR/pulls/53/comments","review_comment_url":"https://api.github.com/repos/venmo/DVR/pulls/comments{/number}","comments_url":"https://api.github.com/repos/venmo/DVR/issues/53/comments","statuses_url":"https://api.github.com/repos/venmo/DVR/statuses/1c78f4451b76baeb4055474c1620f90c5dddac9d","head":{"label":"pnicholls:master","ref":"master","sha":"1c78f4451b76baeb4055474c1620f90c5dddac9d","user":{"login":"pnicholls","id":139051,"avatar_url":"https://avatars.githubusercontent.com/u/139051?v=3","gravatar_id":"","url":"https://api.github.com/users/pnicholls","html_url":"https://github.com/pnicholls","followers_url":"https://api.github.com/users/pnicholls/followers","following_url":"https://api.github.com/users/pnicholls/following{/other_user}","gists_url":"https://api.github.com/users/pnicholls/gists{/gist_id}","starred_url":"https://api.github.com/users/pnicholls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnicholls/subscriptions","organizations_url":"https://api.github.com/users/pnicholls/orgs","repos_url":"https://api.github.com/users/pnicholls/repos","events_url":"https://api.github.com/users/pnicholls/events{/privacy}","received_events_url":"https://api.github.com/users/pnicholls/received_events","type":"User","site_admin":false},"repo":{"id":62856955,"name":"DVR","full_name":"pnicholls/DVR","owner":{"login":"pnicholls","id":139051,"avatar_url":"https://avatars.githubusercontent.com/u/139051?v=3","gravatar_id":"","url":"https://api.github.com/users/pnicholls","html_url":"https://github.com/pnicholls","followers_url":"https://api.github.com/users/pnicholls/followers","following_url":"https://api.github.com/users/pnicholls/following{/other_user}","gists_url":"https://api.github.com/users/pnicholls/gists{/gist_id}","starred_url":"https://api.github.com/users/pnicholls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnicholls/subscriptions","organizations_url":"https://api.github.com/users/pnicholls/orgs","repos_url":"https://api.github.com/users/pnicholls/repos","events_url":"https://api.github.com/users/pnicholls/events{/privacy}","received_events_url":"https://api.github.com/users/pnicholls/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pnicholls/DVR","description":"Network testing for Swift","fork":true,"url":"https://api.github.com/repos/pnicholls/DVR","forks_url":"https://api.github.com/repos/pnicholls/DVR/forks","keys_url":"https://api.github.com/repos/pnicholls/DVR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pnicholls/DVR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pnicholls/DVR/teams","hooks_url":"https://api.github.com/repos/pnicholls/DVR/hooks","issue_events_url":"https://api.github.com/repos/pnicholls/DVR/issues/events{/number}","events_url":"https://api.github.com/repos/pnicholls/DVR/events","assignees_url":"https://api.github.com/repos/pnicholls/DVR/assignees{/user}","branches_url":"https://api.github.com/repos/pnicholls/DVR/branches{/branch}","tags_url":"https://api.github.com/repos/pnicholls/DVR/tags","blobs_url":"https://api.github.com/repos/pnicholls/DVR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pnicholls/DVR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pnicholls/DVR/git/refs{/sha}","trees_url":"https://api.github.com/repos/pnicholls/DVR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pnicholls/DVR/statuses/{sha}","languages_url":"https://api.github.com/repos/pnicholls/DVR/languages","stargazers_url":"https://api.github.com/repos/pnicholls/DVR/stargazers","contributors_url":"https://api.github.com/repos/pnicholls/DVR/contributors","subscribers_url":"https://api.github.com/repos/pnicholls/DVR/subscribers","subscription_url":"https://api.github.com/repos/pnicholls/DVR/subscription","commits_url":"https://api.github.com/repos/pnicholls/DVR/commits{/sha}","git_commits_url":"https://api.github.com/repos/pnicholls/DVR/git/commits{/sha}","comments_url":"https://api.github.com/repos/pnicholls/DVR/comments{/number}","issue_comment_url":"https://api.github.com/repos/pnicholls/DVR/issues/comments{/number}","contents_url":"https://api.github.com/repos/pnicholls/DVR/contents/{+path}","compare_url":"https://api.github.com/repos/pnicholls/DVR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pnicholls/DVR/merges","archive_url":"https://api.github.com/repos/pnicholls/DVR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pnicholls/DVR/downloads","issues_url":"https://api.github.com/repos/pnicholls/DVR/issues{/number}","pulls_url":"https://api.github.com/repos/pnicholls/DVR/pulls{/number}","milestones_url":"https://api.github.com/repos/pnicholls/DVR/milestones{/number}","notifications_url":"https://api.github.com/repos/pnicholls/DVR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pnicholls/DVR/labels{/name}","releases_url":"https://api.github.com/repos/pnicholls/DVR/releases{/id}","deployments_url":"https://api.github.com/repos/pnicholls/DVR/deployments","created_at":"2016-07-08T03:49:36Z","updated_at":"2016-07-08T03:49:39Z","pushed_at":"2016-07-08T04:02:06Z","git_url":"git://github.com/pnicholls/DVR.git","ssh_url":"git@github.com:pnicholls/DVR.git","clone_url":"https://github.com/pnicholls/DVR.git","svn_url":"https://github.com/pnicholls/DVR","homepage":"http://blog.soff.es/network-testing-in-swift-with-dvr","size":153,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"venmo:master","ref":"master","sha":"855bef6bd9158688233b25d858e1fe6d8796ebf3","user":{"login":"venmo","id":256998,"avatar_url":"https://avatars.githubusercontent.com/u/256998?v=3","gravatar_id":"","url":"https://api.github.com/users/venmo","html_url":"https://github.com/venmo","followers_url":"https://api.github.com/users/venmo/followers","following_url":"https://api.github.com/users/venmo/following{/other_user}","gists_url":"https://api.github.com/users/venmo/gists{/gist_id}","starred_url":"https://api.github.com/users/venmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venmo/subscriptions","organizations_url":"https://api.github.com/users/venmo/orgs","repos_url":"https://api.github.com/users/venmo/repos","events_url":"https://api.github.com/users/venmo/events{/privacy}","received_events_url":"https://api.github.com/users/venmo/received_events","type":"Organization","site_admin":false},"repo":{"id":37695433,"name":"DVR","full_name":"venmo/DVR","owner":{"login":"venmo","id":256998,"avatar_url":"https://avatars.githubusercontent.com/u/256998?v=3","gravatar_id":"","url":"https://api.github.com/users/venmo","html_url":"https://github.com/venmo","followers_url":"https://api.github.com/users/venmo/followers","following_url":"https://api.github.com/users/venmo/following{/other_user}","gists_url":"https://api.github.com/users/venmo/gists{/gist_id}","starred_url":"https://api.github.com/users/venmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/venmo/subscriptions","organizations_url":"https://api.github.com/users/venmo/orgs","repos_url":"https://api.github.com/users/venmo/repos","events_url":"https://api.github.com/users/venmo/events{/privacy}","received_events_url":"https://api.github.com/users/venmo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/venmo/DVR","description":"Network testing for Swift","fork":false,"url":"https://api.github.com/repos/venmo/DVR","forks_url":"https://api.github.com/repos/venmo/DVR/forks","keys_url":"https://api.github.com/repos/venmo/DVR/keys{/key_id}","collaborators_url":"https://api.github.com/repos/venmo/DVR/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/venmo/DVR/teams","hooks_url":"https://api.github.com/repos/venmo/DVR/hooks","issue_events_url":"https://api.github.com/repos/venmo/DVR/issues/events{/number}","events_url":"https://api.github.com/repos/venmo/DVR/events","assignees_url":"https://api.github.com/repos/venmo/DVR/assignees{/user}","branches_url":"https://api.github.com/repos/venmo/DVR/branches{/branch}","tags_url":"https://api.github.com/repos/venmo/DVR/tags","blobs_url":"https://api.github.com/repos/venmo/DVR/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/venmo/DVR/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/venmo/DVR/git/refs{/sha}","trees_url":"https://api.github.com/repos/venmo/DVR/git/trees{/sha}","statuses_url":"https://api.github.com/repos/venmo/DVR/statuses/{sha}","languages_url":"https://api.github.com/repos/venmo/DVR/languages","stargazers_url":"https://api.github.com/repos/venmo/DVR/stargazers","contributors_url":"https://api.github.com/repos/venmo/DVR/contributors","subscribers_url":"https://api.github.com/repos/venmo/DVR/subscribers","subscription_url":"https://api.github.com/repos/venmo/DVR/subscription","commits_url":"https://api.github.com/repos/venmo/DVR/commits{/sha}","git_commits_url":"https://api.github.com/repos/venmo/DVR/git/commits{/sha}","comments_url":"https://api.github.com/repos/venmo/DVR/comments{/number}","issue_comment_url":"https://api.github.com/repos/venmo/DVR/issues/comments{/number}","contents_url":"https://api.github.com/repos/venmo/DVR/contents/{+path}","compare_url":"https://api.github.com/repos/venmo/DVR/compare/{base}...{head}","merges_url":"https://api.github.com/repos/venmo/DVR/merges","archive_url":"https://api.github.com/repos/venmo/DVR/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/venmo/DVR/downloads","issues_url":"https://api.github.com/repos/venmo/DVR/issues{/number}","pulls_url":"https://api.github.com/repos/venmo/DVR/pulls{/number}","milestones_url":"https://api.github.com/repos/venmo/DVR/milestones{/number}","notifications_url":"https://api.github.com/repos/venmo/DVR/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/venmo/DVR/labels{/name}","releases_url":"https://api.github.com/repos/venmo/DVR/releases{/id}","deployments_url":"https://api.github.com/repos/venmo/DVR/deployments","created_at":"2015-06-19T01:43:16Z","updated_at":"2016-07-07T16:18:30Z","pushed_at":"2016-07-08T04:03:59Z","git_url":"git://github.com/venmo/DVR.git","ssh_url":"git@github.com:venmo/DVR.git","clone_url":"https://github.com/venmo/DVR.git","svn_url":"https://github.com/venmo/DVR","homepage":"http://blog.soff.es/network-testing-in-swift-with-dvr","size":153,"stargazers_count":415,"watchers_count":415,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":17,"forks":34,"open_issues":17,"watchers":415,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/venmo/DVR/pulls/53"},"html":{"href":"https://github.com/venmo/DVR/pull/53"},"issue":{"href":"https://api.github.com/repos/venmo/DVR/issues/53"},"comments":{"href":"https://api.github.com/repos/venmo/DVR/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/venmo/DVR/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/venmo/DVR/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/venmo/DVR/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/venmo/DVR/statuses/1c78f4451b76baeb4055474c1620f90c5dddac9d"}}}}
{"actor":{"display_login":"pnicholls"}}