Skip to content

Commit

Permalink
Fixes #1121 to also support Bitbucket Server personal repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
danibaeyens committed Apr 12, 2021
1 parent 7fbbbd8 commit 03499f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/platforms/pullRequestParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function pullRequestParser(address: string): PullRequestParts | null {

if (components && components.path) {
// shape: http://localhost:7990/projects/PROJ/repos/repo/pull-requests/1/overview
const parts = components.path.match(/(projects\/\w+\/repos\/[\w-_.]+)\/pull-requests\/(\d+)/)
const parts = components.path.match(/(projects\/~?\w+\/repos\/[\w-_.]+)\/pull-requests\/(\d+)/)
if (parts) {
return {
platform: BitBucketServer.name,
Expand Down

0 comments on commit 03499f1

Please sign in to comment.