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
Annotation app.openshift.io/vcs-ref is not working for BitBucket repositories #9047
Comments
Note there is a long outstanding issue with bitbucket URLs with branch names containing forward slash: https://jira.atlassian.com/browse/BCLOUD-9969 |
@beloyar777 please have a look at this PR #9111 It seems that in order to create a valid branch link in your case, we need the commit sha as well. This is because the branch name contains a |
@christianvogt as far as I can see there is a missunderstanding... You have referenced an issue of the BitBucket API usage: And we are talking about the URI for the frontend of the BitBucket. There are 2 issues in my use case currently:
Just parsing
Maybe an additional annotation Currently the topology view appends unexpected
It seems, that BitBucket has some differences in the link schema for master and non-master branches which should be correctly addressed by the topology view. Maybe you it would be better to take over the full URI if it's annotated as custom type like this for example?
What do you think? |
Hi @beloyar777, We currently default to not using The URL is formatted according to bitbucket's documentation: https://support.atlassian.com/bitbucket-cloud/docs/hyperlink-to-source-code-in-bitbucket/ |
The topology editor decorator can also be overridden by supplying a custom edit URL using annotation: If you have Code Ready Workspace installed and want the edit URL in topology to open your workspace, then you do want to use You say that the correct url you need is |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
@beloyar777 we could consider supporting your suggested annotation Is this issue still a concern for you? |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Can be repoduced in console of OpenShift 4.6.20.
Having the following annotations:
Topology view shows/generates the following link:
https://company.com/projects/XYZ/repos/foo-project/browse/tree/feature/x-111
But the expected/correct BitBucket link is:
https://company.com/projects/XYZ/repos/foo-project/browse?at=refs%2Fheads%2Ffeature%2Fx-111
I have tried the following annotations:
Topology view still appends '/tree' to the link:
https://company.com/projects/XYZ/repos/foo-project/browse/tree?at=refs%2Fheads%2Ffeature%2Fx-111
Please, provide annotation type for BitBucket repository.
The text was updated successfully, but these errors were encountered: