{"action":"opened","issue":{"url":"https://api.github.com/repos/Ricky54326/Github-Auto-Issue-Creator/issues/228","labels_url":"https://api.github.com/repos/Ricky54326/Github-Auto-Issue-Creator/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/Ricky54326/Github-Auto-Issue-Creator/issues/228/comments","events_url":"https://api.github.com/repos/Ricky54326/Github-Auto-Issue-Creator/issues/228/events","html_url":"https://github.com/Ricky54326/Github-Auto-Issue-Creator/issues/228","id":113250980,"number":228,"title":"Issues when multiple remotes exist","user":{"login":"jmklonowski","id":2397404,"avatar_url":"https://avatars.githubusercontent.com/u/2397404?v=3","gravatar_id":"","url":"https://api.github.com/users/jmklonowski","html_url":"https://github.com/jmklonowski","followers_url":"https://api.github.com/users/jmklonowski/followers","following_url":"https://api.github.com/users/jmklonowski/following{/other_user}","gists_url":"https://api.github.com/users/jmklonowski/gists{/gist_id}","starred_url":"https://api.github.com/users/jmklonowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jmklonowski/subscriptions","organizations_url":"https://api.github.com/users/jmklonowski/orgs","repos_url":"https://api.github.com/users/jmklonowski/repos","events_url":"https://api.github.com/users/jmklonowski/events{/privacy}","received_events_url":"https://api.github.com/users/jmklonowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-25T20:44:14Z","updated_at":"2015-10-25T20:44:14Z","closed_at":null,"body":"Some remotes are added to the .git/config file in the following format:\r\n\r\n[remote \"username\"]\r\n\turl = git@github.com:username/Project-name.git\r\n\tfetch = +refs/heads/*:refs/remotes/username/*\r\n\r\nWhich breaks the getRepo and getOwner methods since they require the format to be: \r\n\r\n[remote \"username\"]\r\n\turl = https://github.com/username/Project-name.git\r\n\tfetch = +refs/heads/*:refs/remotes/username/*\r\n\r\nAlso, since it loops through, it will always use the last remote which may or may not be the origin"}}