Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40876

ObjectMetadataAction objectUrl never gets populated for PRs or Branches

XMLWordPrintable

      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

            stephenconnolly Stephen Connolly
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: