{"action":"opened","number":15,"pull_request":{"url":"https://api.github.com/repos/paulirish/git-open/pulls/15","id":28538347,"html_url":"https://github.com/paulirish/git-open/pull/15","diff_url":"https://github.com/paulirish/git-open/pull/15.diff","patch_url":"https://github.com/paulirish/git-open/pull/15.patch","issue_url":"https://api.github.com/repos/paulirish/git-open/issues/15","number":15,"state":"open","locked":false,"title":"Added support for Atlassian Stash.","user":{"login":"nwinkler","id":907063,"avatar_url":"https://avatars.githubusercontent.com/u/907063?v=3","gravatar_id":"","url":"https://api.github.com/users/nwinkler","html_url":"https://github.com/nwinkler","followers_url":"https://api.github.com/users/nwinkler/followers","following_url":"https://api.github.com/users/nwinkler/following{/other_user}","gists_url":"https://api.github.com/users/nwinkler/gists{/gist_id}","starred_url":"https://api.github.com/users/nwinkler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwinkler/subscriptions","organizations_url":"https://api.github.com/users/nwinkler/orgs","repos_url":"https://api.github.com/users/nwinkler/repos","events_url":"https://api.github.com/users/nwinkler/events{/privacy}","received_events_url":"https://api.github.com/users/nwinkler/received_events","type":"User","site_admin":false},"body":"Stash remote URLs always contain \"/scm/\", I'm using that to detect a repo hosted on Stash. The web URL for Stash repos is using a different format, where it inserts \"projects\" and \"repos\" to separate the project and the repo.\r\n\r\nI had to move the branch detection to the top, since Stash is using a different format for selecting the branch.\r\n\r\nI've only tried this with HTTPS URLs, not with git: URLs - there's probably some more code needed for this.","created_at":"2015-02-03T09:43:44Z","updated_at":"2015-02-03T09:43:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paulirish/git-open/pulls/15/commits","review_comments_url":"https://api.github.com/repos/paulirish/git-open/pulls/15/comments","review_comment_url":"https://api.github.com/repos/paulirish/git-open/pulls/comments/{number}","comments_url":"https://api.github.com/repos/paulirish/git-open/issues/15/comments","statuses_url":"https://api.github.com/repos/paulirish/git-open/statuses/b7e9c1f791237d137ddf2b7f837bca2cae357c97","head":{"label":"nwinkler:stash","ref":"stash","sha":"b7e9c1f791237d137ddf2b7f837bca2cae357c97","user":{"login":"nwinkler","id":907063,"avatar_url":"https://avatars.githubusercontent.com/u/907063?v=3","gravatar_id":"","url":"https://api.github.com/users/nwinkler","html_url":"https://github.com/nwinkler","followers_url":"https://api.github.com/users/nwinkler/followers","following_url":"https://api.github.com/users/nwinkler/following{/other_user}","gists_url":"https://api.github.com/users/nwinkler/gists{/gist_id}","starred_url":"https://api.github.com/users/nwinkler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwinkler/subscriptions","organizations_url":"https://api.github.com/users/nwinkler/orgs","repos_url":"https://api.github.com/users/nwinkler/repos","events_url":"https://api.github.com/users/nwinkler/events{/privacy}","received_events_url":"https://api.github.com/users/nwinkler/received_events","type":"User","site_admin":false},"repo":{"id":30231640,"name":"git-open","full_name":"nwinkler/git-open","owner":{"login":"nwinkler","id":907063,"avatar_url":"https://avatars.githubusercontent.com/u/907063?v=3","gravatar_id":"","url":"https://api.github.com/users/nwinkler","html_url":"https://github.com/nwinkler","followers_url":"https://api.github.com/users/nwinkler/followers","following_url":"https://api.github.com/users/nwinkler/following{/other_user}","gists_url":"https://api.github.com/users/nwinkler/gists{/gist_id}","starred_url":"https://api.github.com/users/nwinkler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwinkler/subscriptions","organizations_url":"https://api.github.com/users/nwinkler/orgs","repos_url":"https://api.github.com/users/nwinkler/repos","events_url":"https://api.github.com/users/nwinkler/events{/privacy}","received_events_url":"https://api.github.com/users/nwinkler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nwinkler/git-open","description":"git command to open the github page for the repo","fork":true,"url":"https://api.github.com/repos/nwinkler/git-open","forks_url":"https://api.github.com/repos/nwinkler/git-open/forks","keys_url":"https://api.github.com/repos/nwinkler/git-open/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nwinkler/git-open/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nwinkler/git-open/teams","hooks_url":"https://api.github.com/repos/nwinkler/git-open/hooks","issue_events_url":"https://api.github.com/repos/nwinkler/git-open/issues/events{/number}","events_url":"https://api.github.com/repos/nwinkler/git-open/events","assignees_url":"https://api.github.com/repos/nwinkler/git-open/assignees{/user}","branches_url":"https://api.github.com/repos/nwinkler/git-open/branches{/branch}","tags_url":"https://api.github.com/repos/nwinkler/git-open/tags","blobs_url":"https://api.github.com/repos/nwinkler/git-open/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nwinkler/git-open/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nwinkler/git-open/git/refs{/sha}","trees_url":"https://api.github.com/repos/nwinkler/git-open/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nwinkler/git-open/statuses/{sha}","languages_url":"https://api.github.com/repos/nwinkler/git-open/languages","stargazers_url":"https://api.github.com/repos/nwinkler/git-open/stargazers","contributors_url":"https://api.github.com/repos/nwinkler/git-open/contributors","subscribers_url":"https://api.github.com/repos/nwinkler/git-open/subscribers","subscription_url":"https://api.github.com/repos/nwinkler/git-open/subscription","commits_url":"https://api.github.com/repos/nwinkler/git-open/commits{/sha}","git_commits_url":"https://api.github.com/repos/nwinkler/git-open/git/commits{/sha}","comments_url":"https://api.github.com/repos/nwinkler/git-open/comments{/number}","issue_comment_url":"https://api.github.com/repos/nwinkler/git-open/issues/comments/{number}","contents_url":"https://api.github.com/repos/nwinkler/git-open/contents/{+path}","compare_url":"https://api.github.com/repos/nwinkler/git-open/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nwinkler/git-open/merges","archive_url":"https://api.github.com/repos/nwinkler/git-open/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nwinkler/git-open/downloads","issues_url":"https://api.github.com/repos/nwinkler/git-open/issues{/number}","pulls_url":"https://api.github.com/repos/nwinkler/git-open/pulls{/number}","milestones_url":"https://api.github.com/repos/nwinkler/git-open/milestones{/number}","notifications_url":"https://api.github.com/repos/nwinkler/git-open/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nwinkler/git-open/labels{/name}","releases_url":"https://api.github.com/repos/nwinkler/git-open/releases{/id}","created_at":"2015-02-03T07:56:42Z","updated_at":"2015-02-03T07:56:42Z","pushed_at":"2015-02-03T09:15:34Z","git_url":"git://github.com/nwinkler/git-open.git","ssh_url":"git@github.com:nwinkler/git-open.git","clone_url":"https://github.com/nwinkler/git-open.git","svn_url":"https://github.com/nwinkler/git-open","homepage":"","size":144,"stargazers_count":0,"watchers_count":0,"language":"Shell","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":"paulirish:master","ref":"master","sha":"5fd2b37e9e877674b3b3fc77b641f884b9004347","user":{"login":"paulirish","id":39191,"avatar_url":"https://avatars.githubusercontent.com/u/39191?v=3","gravatar_id":"","url":"https://api.github.com/users/paulirish","html_url":"https://github.com/paulirish","followers_url":"https://api.github.com/users/paulirish/followers","following_url":"https://api.github.com/users/paulirish/following{/other_user}","gists_url":"https://api.github.com/users/paulirish/gists{/gist_id}","starred_url":"https://api.github.com/users/paulirish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulirish/subscriptions","organizations_url":"https://api.github.com/users/paulirish/orgs","repos_url":"https://api.github.com/users/paulirish/repos","events_url":"https://api.github.com/users/paulirish/events{/privacy}","received_events_url":"https://api.github.com/users/paulirish/received_events","type":"User","site_admin":false},"repo":{"id":29791986,"name":"git-open","full_name":"paulirish/git-open","owner":{"login":"paulirish","id":39191,"avatar_url":"https://avatars.githubusercontent.com/u/39191?v=3","gravatar_id":"","url":"https://api.github.com/users/paulirish","html_url":"https://github.com/paulirish","followers_url":"https://api.github.com/users/paulirish/followers","following_url":"https://api.github.com/users/paulirish/following{/other_user}","gists_url":"https://api.github.com/users/paulirish/gists{/gist_id}","starred_url":"https://api.github.com/users/paulirish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulirish/subscriptions","organizations_url":"https://api.github.com/users/paulirish/orgs","repos_url":"https://api.github.com/users/paulirish/repos","events_url":"https://api.github.com/users/paulirish/events{/privacy}","received_events_url":"https://api.github.com/users/paulirish/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulirish/git-open","description":"git command to open the github page for the repo","fork":true,"url":"https://api.github.com/repos/paulirish/git-open","forks_url":"https://api.github.com/repos/paulirish/git-open/forks","keys_url":"https://api.github.com/repos/paulirish/git-open/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulirish/git-open/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulirish/git-open/teams","hooks_url":"https://api.github.com/repos/paulirish/git-open/hooks","issue_events_url":"https://api.github.com/repos/paulirish/git-open/issues/events{/number}","events_url":"https://api.github.com/repos/paulirish/git-open/events","assignees_url":"https://api.github.com/repos/paulirish/git-open/assignees{/user}","branches_url":"https://api.github.com/repos/paulirish/git-open/branches{/branch}","tags_url":"https://api.github.com/repos/paulirish/git-open/tags","blobs_url":"https://api.github.com/repos/paulirish/git-open/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulirish/git-open/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulirish/git-open/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulirish/git-open/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulirish/git-open/statuses/{sha}","languages_url":"https://api.github.com/repos/paulirish/git-open/languages","stargazers_url":"https://api.github.com/repos/paulirish/git-open/stargazers","contributors_url":"https://api.github.com/repos/paulirish/git-open/contributors","subscribers_url":"https://api.github.com/repos/paulirish/git-open/subscribers","subscription_url":"https://api.github.com/repos/paulirish/git-open/subscription","commits_url":"https://api.github.com/repos/paulirish/git-open/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulirish/git-open/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulirish/git-open/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulirish/git-open/issues/comments/{number}","contents_url":"https://api.github.com/repos/paulirish/git-open/contents/{+path}","compare_url":"https://api.github.com/repos/paulirish/git-open/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulirish/git-open/merges","archive_url":"https://api.github.com/repos/paulirish/git-open/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulirish/git-open/downloads","issues_url":"https://api.github.com/repos/paulirish/git-open/issues{/number}","pulls_url":"https://api.github.com/repos/paulirish/git-open/pulls{/number}","milestones_url":"https://api.github.com/repos/paulirish/git-open/milestones{/number}","notifications_url":"https://api.github.com/repos/paulirish/git-open/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulirish/git-open/labels{/name}","releases_url":"https://api.github.com/repos/paulirish/git-open/releases{/id}","created_at":"2015-01-24T21:17:23Z","updated_at":"2015-02-03T09:30:06Z","pushed_at":"2015-02-03T02:41:37Z","git_url":"git://github.com/paulirish/git-open.git","ssh_url":"git@github.com:paulirish/git-open.git","clone_url":"https://github.com/paulirish/git-open.git","svn_url":"https://github.com/paulirish/git-open","homepage":"","size":144,"stargazers_count":117,"watchers_count":117,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":117,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paulirish/git-open/pulls/15"},"html":{"href":"https://github.com/paulirish/git-open/pull/15"},"issue":{"href":"https://api.github.com/repos/paulirish/git-open/issues/15"},"comments":{"href":"https://api.github.com/repos/paulirish/git-open/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/paulirish/git-open/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/paulirish/git-open/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/paulirish/git-open/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/paulirish/git-open/statuses/b7e9c1f791237d137ddf2b7f837bca2cae357c97"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":9,"changed_files":1}}