Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10153

Add ScmProvider methods to get last revision and relative paths from SCM root

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0
    • Component/s: Plugin API, Scanner, Scm
    • Labels:
      None

      Description

      Add new methods in ScmProvider, for the first use case of better pull request support:

      • relativePathFromScmRoot: for example path/to/repo/proj/foo in a repository cloned at path/to/repo would resolve to proj/foo
      • revisionId: the current revision id of the analyzed code, for example the SHA1 of the current HEAD in a Git branch.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              janos.gyerik Janos Gyerik
              Reporter:
              janos.gyerik Janos Gyerik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: