Skip to content

Commit

Permalink
Merge pull request #1122 from danibaeyens/bitbucket-server-user-repos…
Browse files Browse the repository at this point in the history
…itories

Support Bitbucket Server personal repositories
  • Loading branch information
orta committed Apr 12, 2021
2 parents 7fbbbd8 + 82395a5 commit fe5f080
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

<!-- Your comment below this -->

<!-- Your comment above this -->
- Fix for supporting Bitbucket Server personal repositories
<!-- Your comment above this -->

# 10.6.5

Expand Down
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 fe5f080

Please sign in to comment.