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

Fetch and update main branch name during Github project onboarding

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.8
    • Component/s: Branch & PR
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      How V2: retrieve the main branch information from an API call to the ALM, during the onboarding. Right after the SonarQube project creation, try to retrieve the "main branch" from the ALM, and if found, change the default branch on the Sonarqube project.

      curl https://api.github.com/repos/octocat/hello-world | jq .default_branch

        Attachments

          Activity

            People

            Assignee:
            belen.pruvost Belén Pruvost
            Reporter:
            belen.pruvost Belén Pruvost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: