-
Bug
-
Resolution: Fixed
-
Critical
-
None
I used the 2.0.0-beta-1 release and ran a index scan over my repository. I had a mixture of new and existing branches.
While they all got populated with ObjectMetadataAction the objectUrl never got populated for any of my branches or pull requests.
Interesting the javadoc for ObjectMetadataAction states that it will only produce a URL for a SCMHead if it is a Pull Request. We should be providing a URL for both PRs and Branches.
For Branch URLs we want
https://github.com/$ORG_NAME/$REPO_NAME/tree/$BRANCH_NAME
For PR URLs we want
https://github.com/$ORG_NAME/$REPO_NAME/pull/$PR
- links to