{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/imobile3/posh-svn/pulls/3","id":62582317,"html_url":"https://github.com/imobile3/posh-svn/pull/3","diff_url":"https://github.com/imobile3/posh-svn/pull/3.diff","patch_url":"https://github.com/imobile3/posh-svn/pull/3.patch","issue_url":"https://api.github.com/repos/imobile3/posh-svn/issues/3","number":3,"state":"open","locked":false,"title":"Use \"Relative URL:\" when detecting branch","user":{"login":"mbishopim3","id":1047258,"avatar_url":"https://avatars.githubusercontent.com/u/1047258?v=3","gravatar_id":"","url":"https://api.github.com/users/mbishopim3","html_url":"https://github.com/mbishopim3","followers_url":"https://api.github.com/users/mbishopim3/followers","following_url":"https://api.github.com/users/mbishopim3/following{/other_user}","gists_url":"https://api.github.com/users/mbishopim3/gists{/gist_id}","starred_url":"https://api.github.com/users/mbishopim3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbishopim3/subscriptions","organizations_url":"https://api.github.com/users/mbishopim3/orgs","repos_url":"https://api.github.com/users/mbishopim3/repos","events_url":"https://api.github.com/users/mbishopim3/events{/privacy}","received_events_url":"https://api.github.com/users/mbishopim3/received_events","type":"User","site_admin":false},"body":"The current approach of detecting the current branch doesn't work because 'svn info' has introduced new lines. Instead of looking for URL and root by index, look for relative url using select-string instead.","created_at":"2016-03-11T18:22:33Z","updated_at":"2016-03-11T18:22:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/imobile3/posh-svn/pulls/3/commits","review_comments_url":"https://api.github.com/repos/imobile3/posh-svn/pulls/3/comments","review_comment_url":"https://api.github.com/repos/imobile3/posh-svn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/imobile3/posh-svn/issues/3/comments","statuses_url":"https://api.github.com/repos/imobile3/posh-svn/statuses/f1da838140dcccd33d796746b8f792d26634a0a9","head":{"label":"mauve:patch-1","ref":"patch-1","sha":"f1da838140dcccd33d796746b8f792d26634a0a9","user":{"login":"mauve","id":795800,"avatar_url":"https://avatars.githubusercontent.com/u/795800?v=3","gravatar_id":"","url":"https://api.github.com/users/mauve","html_url":"https://github.com/mauve","followers_url":"https://api.github.com/users/mauve/followers","following_url":"https://api.github.com/users/mauve/following{/other_user}","gists_url":"https://api.github.com/users/mauve/gists{/gist_id}","starred_url":"https://api.github.com/users/mauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauve/subscriptions","organizations_url":"https://api.github.com/users/mauve/orgs","repos_url":"https://api.github.com/users/mauve/repos","events_url":"https://api.github.com/users/mauve/events{/privacy}","received_events_url":"https://api.github.com/users/mauve/received_events","type":"User","site_admin":false},"repo":{"id":14906090,"name":"posh-svn","full_name":"mauve/posh-svn","owner":{"login":"mauve","id":795800,"avatar_url":"https://avatars.githubusercontent.com/u/795800?v=3","gravatar_id":"","url":"https://api.github.com/users/mauve","html_url":"https://github.com/mauve","followers_url":"https://api.github.com/users/mauve/followers","following_url":"https://api.github.com/users/mauve/following{/other_user}","gists_url":"https://api.github.com/users/mauve/gists{/gist_id}","starred_url":"https://api.github.com/users/mauve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauve/subscriptions","organizations_url":"https://api.github.com/users/mauve/orgs","repos_url":"https://api.github.com/users/mauve/repos","events_url":"https://api.github.com/users/mauve/events{/privacy}","received_events_url":"https://api.github.com/users/mauve/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mauve/posh-svn","description":"SVN prompt/tab expansion for Windows PowerShell","fork":true,"url":"https://api.github.com/repos/mauve/posh-svn","forks_url":"https://api.github.com/repos/mauve/posh-svn/forks","keys_url":"https://api.github.com/repos/mauve/posh-svn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mauve/posh-svn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mauve/posh-svn/teams","hooks_url":"https://api.github.com/repos/mauve/posh-svn/hooks","issue_events_url":"https://api.github.com/repos/mauve/posh-svn/issues/events{/number}","events_url":"https://api.github.com/repos/mauve/posh-svn/events","assignees_url":"https://api.github.com/repos/mauve/posh-svn/assignees{/user}","branches_url":"https://api.github.com/repos/mauve/posh-svn/branches{/branch}","tags_url":"https://api.github.com/repos/mauve/posh-svn/tags","blobs_url":"https://api.github.com/repos/mauve/posh-svn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mauve/posh-svn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mauve/posh-svn/git/refs{/sha}","trees_url":"https://api.github.com/repos/mauve/posh-svn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mauve/posh-svn/statuses/{sha}","languages_url":"https://api.github.com/repos/mauve/posh-svn/languages","stargazers_url":"https://api.github.com/repos/mauve/posh-svn/stargazers","contributors_url":"https://api.github.com/repos/mauve/posh-svn/contributors","subscribers_url":"https://api.github.com/repos/mauve/posh-svn/subscribers","subscription_url":"https://api.github.com/repos/mauve/posh-svn/subscription","commits_url":"https://api.github.com/repos/mauve/posh-svn/commits{/sha}","git_commits_url":"https://api.github.com/repos/mauve/posh-svn/git/commits{/sha}","comments_url":"https://api.github.com/repos/mauve/posh-svn/comments{/number}","issue_comment_url":"https://api.github.com/repos/mauve/posh-svn/issues/comments{/number}","contents_url":"https://api.github.com/repos/mauve/posh-svn/contents/{+path}","compare_url":"https://api.github.com/repos/mauve/posh-svn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mauve/posh-svn/merges","archive_url":"https://api.github.com/repos/mauve/posh-svn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mauve/posh-svn/downloads","issues_url":"https://api.github.com/repos/mauve/posh-svn/issues{/number}","pulls_url":"https://api.github.com/repos/mauve/posh-svn/pulls{/number}","milestones_url":"https://api.github.com/repos/mauve/posh-svn/milestones{/number}","notifications_url":"https://api.github.com/repos/mauve/posh-svn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mauve/posh-svn/labels{/name}","releases_url":"https://api.github.com/repos/mauve/posh-svn/releases{/id}","deployments_url":"https://api.github.com/repos/mauve/posh-svn/deployments","created_at":"2013-12-03T21:18:06Z","updated_at":"2013-12-03T21:22:38Z","pushed_at":"2013-12-03T21:20:27Z","git_url":"git://github.com/mauve/posh-svn.git","ssh_url":"git@github.com:mauve/posh-svn.git","clone_url":"https://github.com/mauve/posh-svn.git","svn_url":"https://github.com/mauve/posh-svn","homepage":"http://www.jeremyskinner.co.uk","size":91,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"imobile3:master","ref":"master","sha":"fc08cc0b0ccb3e084c9301c9c23b6a2c493def7d","user":{"login":"imobile3","id":1047263,"avatar_url":"https://avatars.githubusercontent.com/u/1047263?v=3","gravatar_id":"","url":"https://api.github.com/users/imobile3","html_url":"https://github.com/imobile3","followers_url":"https://api.github.com/users/imobile3/followers","following_url":"https://api.github.com/users/imobile3/following{/other_user}","gists_url":"https://api.github.com/users/imobile3/gists{/gist_id}","starred_url":"https://api.github.com/users/imobile3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobile3/subscriptions","organizations_url":"https://api.github.com/users/imobile3/orgs","repos_url":"https://api.github.com/users/imobile3/repos","events_url":"https://api.github.com/users/imobile3/events{/privacy}","received_events_url":"https://api.github.com/users/imobile3/received_events","type":"Organization","site_admin":false},"repo":{"id":53686899,"name":"posh-svn","full_name":"imobile3/posh-svn","owner":{"login":"imobile3","id":1047263,"avatar_url":"https://avatars.githubusercontent.com/u/1047263?v=3","gravatar_id":"","url":"https://api.github.com/users/imobile3","html_url":"https://github.com/imobile3","followers_url":"https://api.github.com/users/imobile3/followers","following_url":"https://api.github.com/users/imobile3/following{/other_user}","gists_url":"https://api.github.com/users/imobile3/gists{/gist_id}","starred_url":"https://api.github.com/users/imobile3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imobile3/subscriptions","organizations_url":"https://api.github.com/users/imobile3/orgs","repos_url":"https://api.github.com/users/imobile3/repos","events_url":"https://api.github.com/users/imobile3/events{/privacy}","received_events_url":"https://api.github.com/users/imobile3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/imobile3/posh-svn","description":"SVN prompt/tab expansion for Windows PowerShell","fork":true,"url":"https://api.github.com/repos/imobile3/posh-svn","forks_url":"https://api.github.com/repos/imobile3/posh-svn/forks","keys_url":"https://api.github.com/repos/imobile3/posh-svn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imobile3/posh-svn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imobile3/posh-svn/teams","hooks_url":"https://api.github.com/repos/imobile3/posh-svn/hooks","issue_events_url":"https://api.github.com/repos/imobile3/posh-svn/issues/events{/number}","events_url":"https://api.github.com/repos/imobile3/posh-svn/events","assignees_url":"https://api.github.com/repos/imobile3/posh-svn/assignees{/user}","branches_url":"https://api.github.com/repos/imobile3/posh-svn/branches{/branch}","tags_url":"https://api.github.com/repos/imobile3/posh-svn/tags","blobs_url":"https://api.github.com/repos/imobile3/posh-svn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imobile3/posh-svn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imobile3/posh-svn/git/refs{/sha}","trees_url":"https://api.github.com/repos/imobile3/posh-svn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imobile3/posh-svn/statuses/{sha}","languages_url":"https://api.github.com/repos/imobile3/posh-svn/languages","stargazers_url":"https://api.github.com/repos/imobile3/posh-svn/stargazers","contributors_url":"https://api.github.com/repos/imobile3/posh-svn/contributors","subscribers_url":"https://api.github.com/repos/imobile3/posh-svn/subscribers","subscription_url":"https://api.github.com/repos/imobile3/posh-svn/subscription","commits_url":"https://api.github.com/repos/imobile3/posh-svn/commits{/sha}","git_commits_url":"https://api.github.com/repos/imobile3/posh-svn/git/commits{/sha}","comments_url":"https://api.github.com/repos/imobile3/posh-svn/comments{/number}","issue_comment_url":"https://api.github.com/repos/imobile3/posh-svn/issues/comments{/number}","contents_url":"https://api.github.com/repos/imobile3/posh-svn/contents/{+path}","compare_url":"https://api.github.com/repos/imobile3/posh-svn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imobile3/posh-svn/merges","archive_url":"https://api.github.com/repos/imobile3/posh-svn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imobile3/posh-svn/downloads","issues_url":"https://api.github.com/repos/imobile3/posh-svn/issues{/number}","pulls_url":"https://api.github.com/repos/imobile3/posh-svn/pulls{/number}","milestones_url":"https://api.github.com/repos/imobile3/posh-svn/milestones{/number}","notifications_url":"https://api.github.com/repos/imobile3/posh-svn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imobile3/posh-svn/labels{/name}","releases_url":"https://api.github.com/repos/imobile3/posh-svn/releases{/id}","deployments_url":"https://api.github.com/repos/imobile3/posh-svn/deployments","created_at":"2016-03-11T18:06:51Z","updated_at":"2016-03-11T18:06:52Z","pushed_at":"2016-03-11T18:18:51Z","git_url":"git://github.com/imobile3/posh-svn.git","ssh_url":"git@github.com:imobile3/posh-svn.git","clone_url":"https://github.com/imobile3/posh-svn.git","svn_url":"https://github.com/imobile3/posh-svn","homepage":"http://www.jeremyskinner.co.uk","size":8,"stargazers_count":0,"watchers_count":0,"language":"PowerShell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/imobile3/posh-svn/pulls/3"},"html":{"href":"https://github.com/imobile3/posh-svn/pull/3"},"issue":{"href":"https://api.github.com/repos/imobile3/posh-svn/issues/3"},"comments":{"href":"https://api.github.com/repos/imobile3/posh-svn/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/imobile3/posh-svn/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/imobile3/posh-svn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/imobile3/posh-svn/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/imobile3/posh-svn/statuses/f1da838140dcccd33d796746b8f792d26634a0a9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":5,"changed_files":1}}