Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting wrong Bitbucket URL #84

Closed
m2spring opened this issue Jan 22, 2019 · 3 comments
Closed

Getting wrong Bitbucket URL #84

m2spring opened this issue Jan 22, 2019 · 3 comments

Comments

@m2spring
Copy link

Choosing "Bitbucket" host, the resulting URL is not what I expect it to be

I get:

https://bitbucket-eng-sjc1.example.org/~m2spring/myproj-core/src/eb4ef508363cf4e1e9350fa0a8be02cfe38e9f77/persistence/src/main/java/org/example/myproj/persistence/model/api/AttributeDetail.java#AttributeDetail.java-167

I want:

https://bitbucket-eng-sjc1.example.org/bitbucket/users/m2spring/repos/myproj-core/browse/persistence/src/main/java/org/example/myproj/persistence/model/api/AttributeDetail.java#167

Is there somewhere I can fine-tune the generated URL?

Thanks!

@ben-gibson
Copy link
Owner

Could you try selecting the host Stash which needs to be renamed to Bitbucket server (I will do that in the next release)

@m2spring
Copy link
Author

With host Stash I get this:

https://bitbucket-eng-sjc1.example.org/projects/~m2spring/repos/dascode-core/browse/persistence/src/main/java/org/example/myproj/persistence/model/api/AttributeDetail.java?at=eb4ef508363cf4e1e9350fa0a8be02cfe38e9f77#167

Trying out the Custom URL option, I can make some more progress with this first approximation pointing to the authorative repository instead of my own fork (which is actually what I want):

https://bitbucket-eng-sjc1.example.org/bitbucket/projects/DAS/repos/myproj-core/browse/{filePath}/{fileName}#{line}

But I'm missing placeholders for

  • Bitbucket project ("DAS")
  • Bitbucket repository name ("myproj-core")

What's the list of all supported placeholders?

Thanks!

@ben-gibson
Copy link
Owner

Moved into #92.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants