{"action":"created","issue":{"url":"https://api.github.com/repos/zeke/github-url-to-object/issues/9","labels_url":"https://api.github.com/repos/zeke/github-url-to-object/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/zeke/github-url-to-object/issues/9/comments","events_url":"https://api.github.com/repos/zeke/github-url-to-object/issues/9/events","html_url":"https://github.com/zeke/github-url-to-object/issues/9","id":79560208,"number":9,"title":"Git url reports a wrong branch","user":{"login":"vladikoff","id":128755,"avatar_url":"https://avatars.githubusercontent.com/u/128755?v=3","gravatar_id":"","url":"https://api.github.com/users/vladikoff","html_url":"https://github.com/vladikoff","followers_url":"https://api.github.com/users/vladikoff/followers","following_url":"https://api.github.com/users/vladikoff/following{/other_user}","gists_url":"https://api.github.com/users/vladikoff/gists{/gist_id}","starred_url":"https://api.github.com/users/vladikoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladikoff/subscriptions","organizations_url":"https://api.github.com/users/vladikoff/orgs","repos_url":"https://api.github.com/users/vladikoff/repos","events_url":"https://api.github.com/users/vladikoff/events{/privacy}","received_events_url":"https://api.github.com/users/vladikoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-22T18:29:13Z","updated_at":"2015-11-03T20:09:54Z","closed_at":"2015-11-03T20:06:49Z","body":"Given a git url: `git://github.com/vladikoff/fxa-content-experiments.git#mailcheck` the branch is not parsed correctly.\r\n\r\n### Failing test case:\r\n\r\n```\r\nit('parses branch properly with a git:// url', function () {\r\n  var obj = gh('git://github.com/vladikoff/fxa-content-experiments.git#mailcheck')\r\n  console.log(obj)\r\n  assert.equal(obj.branch, 'mailcheck')\r\n})\r\n```\r\n\r\n### Result\r\n```\r\n{ user: 'vladikoff',\r\n  repo: 'fxa-content-experiments',\r\n  branch: 'master',\r\n  tarball_url: 'https://api.github.com/repos/vladikoff/fxa-content-experiments/tarball/master',\r\n  https_url: 'https://github.com/vladikoff/fxa-content-experiments',\r\n  travis_url: 'https://travis-ci.org/vladikoff/fxa-content-experiments',\r\n  api_url: 'https://api.github.com/repos/vladikoff/fxa-content-experiments' }\r\n```\r\n```\r\n AssertionError: \"master\" == \"mailcheck\"\r\n```"},"comment":{"url":"https://api.github.com/repos/zeke/github-url-to-object/issues/comments/153473006","html_url":"https://github.com/zeke/github-url-to-object/issues/9#issuecomment-153473006","issue_url":"https://api.github.com/repos/zeke/github-url-to-object/issues/9","id":153473006,"user":{"login":"zeke","id":2289,"avatar_url":"https://avatars.githubusercontent.com/u/2289?v=3","gravatar_id":"","url":"https://api.github.com/users/zeke","html_url":"https://github.com/zeke","followers_url":"https://api.github.com/users/zeke/followers","following_url":"https://api.github.com/users/zeke/following{/other_user}","gists_url":"https://api.github.com/users/zeke/gists{/gist_id}","starred_url":"https://api.github.com/users/zeke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeke/subscriptions","organizations_url":"https://api.github.com/users/zeke/orgs","repos_url":"https://api.github.com/users/zeke/repos","events_url":"https://api.github.com/users/zeke/events{/privacy}","received_events_url":"https://api.github.com/users/zeke/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T20:09:54Z","updated_at":"2015-11-03T20:09:54Z","body":"Ah I didn't know that. I will accept a patch if you want to implement it."}}