{"action":"created","comment":{"url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/comments/126540819","pull_request_review_id":49035562,"id":126540819,"diff_hunk":"@@ -104,5 +109,10 @@ def reset_to_latest_from_origin\n     def repo_path\n       @repo_path ||= \"#{local_directory}/#{org_repo}\"\n     end\n+\n+    def valid_protocol(protocol)\n+      raise InvalidProtocol, \"Protocol must be either HTTPS or SSH.\" unless [\"SSH\", \"HTTPS\"].include?(protocol)","path":"lib/git_local/repository.rb","position":38,"original_position":38,"commit_id":"bc230585bc4cdf4811baa3f9db40df3b424b0766","original_commit_id":"bc230585bc4cdf4811baa3f9db40df3b424b0766","user":{"login":"erisfully","id":6994973,"avatar_url":"https://avatars3.githubusercontent.com/u/6994973?v=3","gravatar_id":"","url":"https://api.github.com/users/erisfully","html_url":"https://github.com/erisfully","followers_url":"https://api.github.com/users/erisfully/followers","following_url":"https://api.github.com/users/erisfully/following{/other_user}","gists_url":"https://api.github.com/users/erisfully/gists{/gist_id}","starred_url":"https://api.github.com/users/erisfully/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erisfully/subscriptions","organizations_url":"https://api.github.com/users/erisfully/orgs","repos_url":"https://api.github.com/users/erisfully/repos","events_url":"https://api.github.com/users/erisfully/events{/privacy}","received_events_url":"https://api.github.com/users/erisfully/received_events","type":"User","site_admin":false},"body":"\"SSH\" and \"HTTPS\" might be better expressed in a constant like:\r\n\r\n```ruby\r\nVALID_PROTOCOLS = {\r\n  ssh: \"SSH\",\r\n  https: \"HTTPS\"\r\n}.freeze\r\n```\r\n\r\nThen we would use `VALID_PROTOCOLS[:ssh]` etc.","created_at":"2017-07-10T21:23:25Z","updated_at":"2017-07-10T21:27:30Z","html_url":"https://github.com/GalvanizeOpenSource/git_local/pull/10#discussion_r126540819","pull_request_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/comments/126540819"},"html":{"href":"https://github.com/GalvanizeOpenSource/git_local/pull/10#discussion_r126540819"},"pull_request":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10","id":129774932,"html_url":"https://github.com/GalvanizeOpenSource/git_local/pull/10","diff_url":"https://github.com/GalvanizeOpenSource/git_local/pull/10.diff","patch_url":"https://github.com/GalvanizeOpenSource/git_local/pull/10.patch","issue_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/10","number":10,"state":"open","locked":false,"title":"[Finishes #148622189] Allow protocol override with HTTPS","user":{"login":"jchang2014","id":11041031,"avatar_url":"https://avatars0.githubusercontent.com/u/11041031?v=3","gravatar_id":"","url":"https://api.github.com/users/jchang2014","html_url":"https://github.com/jchang2014","followers_url":"https://api.github.com/users/jchang2014/followers","following_url":"https://api.github.com/users/jchang2014/following{/other_user}","gists_url":"https://api.github.com/users/jchang2014/gists{/gist_id}","starred_url":"https://api.github.com/users/jchang2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchang2014/subscriptions","organizations_url":"https://api.github.com/users/jchang2014/orgs","repos_url":"https://api.github.com/users/jchang2014/repos","events_url":"https://api.github.com/users/jchang2014/events{/privacy}","received_events_url":"https://api.github.com/users/jchang2014/received_events","type":"User","site_admin":false},"body":"https://www.pivotaltracker.com/story/show/148622189","created_at":"2017-07-10T21:12:10Z","updated_at":"2017-07-10T21:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f759dce86cb110674921371b616c3e113c206298","assignee":{"login":"joelhawksley","id":1940294,"avatar_url":"https://avatars3.githubusercontent.com/u/1940294?v=3","gravatar_id":"","url":"https://api.github.com/users/joelhawksley","html_url":"https://github.com/joelhawksley","followers_url":"https://api.github.com/users/joelhawksley/followers","following_url":"https://api.github.com/users/joelhawksley/following{/other_user}","gists_url":"https://api.github.com/users/joelhawksley/gists{/gist_id}","starred_url":"https://api.github.com/users/joelhawksley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelhawksley/subscriptions","organizations_url":"https://api.github.com/users/joelhawksley/orgs","repos_url":"https://api.github.com/users/joelhawksley/repos","events_url":"https://api.github.com/users/joelhawksley/events{/privacy}","received_events_url":"https://api.github.com/users/joelhawksley/received_events","type":"User","site_admin":false},"assignees":[{"login":"joelhawksley","id":1940294,"avatar_url":"https://avatars3.githubusercontent.com/u/1940294?v=3","gravatar_id":"","url":"https://api.github.com/users/joelhawksley","html_url":"https://github.com/joelhawksley","followers_url":"https://api.github.com/users/joelhawksley/followers","following_url":"https://api.github.com/users/joelhawksley/following{/other_user}","gists_url":"https://api.github.com/users/joelhawksley/gists{/gist_id}","starred_url":"https://api.github.com/users/joelhawksley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelhawksley/subscriptions","organizations_url":"https://api.github.com/users/joelhawksley/orgs","repos_url":"https://api.github.com/users/joelhawksley/repos","events_url":"https://api.github.com/users/joelhawksley/events{/privacy}","received_events_url":"https://api.github.com/users/joelhawksley/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10/commits","review_comments_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10/comments","review_comment_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/10/comments","statuses_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/statuses/bc230585bc4cdf4811baa3f9db40df3b424b0766","head":{"label":"GalvanizeOpenSource:add-protocol-override#148622189","ref":"add-protocol-override#148622189","sha":"bc230585bc4cdf4811baa3f9db40df3b424b0766","user":{"login":"GalvanizeOpenSource","id":13786146,"avatar_url":"https://avatars1.githubusercontent.com/u/13786146?v=3","gravatar_id":"","url":"https://api.github.com/users/GalvanizeOpenSource","html_url":"https://github.com/GalvanizeOpenSource","followers_url":"https://api.github.com/users/GalvanizeOpenSource/followers","following_url":"https://api.github.com/users/GalvanizeOpenSource/following{/other_user}","gists_url":"https://api.github.com/users/GalvanizeOpenSource/gists{/gist_id}","starred_url":"https://api.github.com/users/GalvanizeOpenSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GalvanizeOpenSource/subscriptions","organizations_url":"https://api.github.com/users/GalvanizeOpenSource/orgs","repos_url":"https://api.github.com/users/GalvanizeOpenSource/repos","events_url":"https://api.github.com/users/GalvanizeOpenSource/events{/privacy}","received_events_url":"https://api.github.com/users/GalvanizeOpenSource/received_events","type":"Organization","site_admin":false},"repo":{"id":88100581,"name":"git_local","full_name":"GalvanizeOpenSource/git_local","owner":{"login":"GalvanizeOpenSource","id":13786146,"avatar_url":"https://avatars1.githubusercontent.com/u/13786146?v=3","gravatar_id":"","url":"https://api.github.com/users/GalvanizeOpenSource","html_url":"https://github.com/GalvanizeOpenSource","followers_url":"https://api.github.com/users/GalvanizeOpenSource/followers","following_url":"https://api.github.com/users/GalvanizeOpenSource/following{/other_user}","gists_url":"https://api.github.com/users/GalvanizeOpenSource/gists{/gist_id}","starred_url":"https://api.github.com/users/GalvanizeOpenSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GalvanizeOpenSource/subscriptions","organizations_url":"https://api.github.com/users/GalvanizeOpenSource/orgs","repos_url":"https://api.github.com/users/GalvanizeOpenSource/repos","events_url":"https://api.github.com/users/GalvanizeOpenSource/events{/privacy}","received_events_url":"https://api.github.com/users/GalvanizeOpenSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GalvanizeOpenSource/git_local","description":"A lightweight git command line wrapper in Ruby","fork":false,"url":"https://api.github.com/repos/GalvanizeOpenSource/git_local","forks_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/forks","keys_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/teams","hooks_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/hooks","issue_events_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/events{/number}","events_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/events","assignees_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/assignees{/user}","branches_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/branches{/branch}","tags_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/tags","blobs_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/refs{/sha}","trees_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/statuses/{sha}","languages_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/languages","stargazers_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/stargazers","contributors_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/contributors","subscribers_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/subscribers","subscription_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/subscription","commits_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/commits{/sha}","git_commits_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/commits{/sha}","comments_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/comments{/number}","issue_comment_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/comments{/number}","contents_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/contents/{+path}","compare_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/merges","archive_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/downloads","issues_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues{/number}","pulls_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls{/number}","milestones_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/milestones{/number}","notifications_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/labels{/name}","releases_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/releases{/id}","deployments_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/deployments","created_at":"2017-04-12T22:11:19Z","updated_at":"2017-07-07T19:58:06Z","pushed_at":"2017-07-10T21:18:22Z","git_url":"git://github.com/GalvanizeOpenSource/git_local.git","ssh_url":"git@github.com:GalvanizeOpenSource/git_local.git","clone_url":"https://github.com/GalvanizeOpenSource/git_local.git","svn_url":"https://github.com/GalvanizeOpenSource/git_local","homepage":null,"size":25,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"GalvanizeOpenSource:master","ref":"master","sha":"fae236d2226ae07e218bc4be574f49f4a3a70a4a","user":{"login":"GalvanizeOpenSource","id":13786146,"avatar_url":"https://avatars1.githubusercontent.com/u/13786146?v=3","gravatar_id":"","url":"https://api.github.com/users/GalvanizeOpenSource","html_url":"https://github.com/GalvanizeOpenSource","followers_url":"https://api.github.com/users/GalvanizeOpenSource/followers","following_url":"https://api.github.com/users/GalvanizeOpenSource/following{/other_user}","gists_url":"https://api.github.com/users/GalvanizeOpenSource/gists{/gist_id}","starred_url":"https://api.github.com/users/GalvanizeOpenSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GalvanizeOpenSource/subscriptions","organizations_url":"https://api.github.com/users/GalvanizeOpenSource/orgs","repos_url":"https://api.github.com/users/GalvanizeOpenSource/repos","events_url":"https://api.github.com/users/GalvanizeOpenSource/events{/privacy}","received_events_url":"https://api.github.com/users/GalvanizeOpenSource/received_events","type":"Organization","site_admin":false},"repo":{"id":88100581,"name":"git_local","full_name":"GalvanizeOpenSource/git_local","owner":{"login":"GalvanizeOpenSource","id":13786146,"avatar_url":"https://avatars1.githubusercontent.com/u/13786146?v=3","gravatar_id":"","url":"https://api.github.com/users/GalvanizeOpenSource","html_url":"https://github.com/GalvanizeOpenSource","followers_url":"https://api.github.com/users/GalvanizeOpenSource/followers","following_url":"https://api.github.com/users/GalvanizeOpenSource/following{/other_user}","gists_url":"https://api.github.com/users/GalvanizeOpenSource/gists{/gist_id}","starred_url":"https://api.github.com/users/GalvanizeOpenSource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GalvanizeOpenSource/subscriptions","organizations_url":"https://api.github.com/users/GalvanizeOpenSource/orgs","repos_url":"https://api.github.com/users/GalvanizeOpenSource/repos","events_url":"https://api.github.com/users/GalvanizeOpenSource/events{/privacy}","received_events_url":"https://api.github.com/users/GalvanizeOpenSource/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GalvanizeOpenSource/git_local","description":"A lightweight git command line wrapper in Ruby","fork":false,"url":"https://api.github.com/repos/GalvanizeOpenSource/git_local","forks_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/forks","keys_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/teams","hooks_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/hooks","issue_events_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/events{/number}","events_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/events","assignees_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/assignees{/user}","branches_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/branches{/branch}","tags_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/tags","blobs_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/refs{/sha}","trees_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/statuses/{sha}","languages_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/languages","stargazers_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/stargazers","contributors_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/contributors","subscribers_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/subscribers","subscription_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/subscription","commits_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/commits{/sha}","git_commits_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/git/commits{/sha}","comments_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/comments{/number}","issue_comment_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/comments{/number}","contents_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/contents/{+path}","compare_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/merges","archive_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/downloads","issues_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues{/number}","pulls_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls{/number}","milestones_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/milestones{/number}","notifications_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/labels{/name}","releases_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/releases{/id}","deployments_url":"https://api.github.com/repos/GalvanizeOpenSource/git_local/deployments","created_at":"2017-04-12T22:11:19Z","updated_at":"2017-07-07T19:58:06Z","pushed_at":"2017-07-10T21:18:22Z","git_url":"git://github.com/GalvanizeOpenSource/git_local.git","ssh_url":"git@github.com:GalvanizeOpenSource/git_local.git","clone_url":"https://github.com/GalvanizeOpenSource/git_local.git","svn_url":"https://github.com/GalvanizeOpenSource/git_local","homepage":null,"size":25,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10"},"html":{"href":"https://github.com/GalvanizeOpenSource/git_local/pull/10"},"issue":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/10"},"comments":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/GalvanizeOpenSource/git_local/statuses/bc230585bc4cdf4811baa3f9db40df3b424b0766"}}}}
{"actor":{"display_login":"erisfully"}}