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

Some pull requests are never purged

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 8.1
    • Fix Version/s: 8.6
    • Component/s: Branch & PR
    • Labels:
      None
    • Edition:
      Developer
    • Production Notes:
      None

      Description

      Link to problem report: https://community.sonarsource.com/t/no-housekeeping-for-pull-requests-of-main-branch/33019/8

      The issue found: pull requests with a source branch on the list of sonar.dbcleaner.branchesToKeepWhenInactive end up being protected from purge. It's also not possible to undo this problem using the UI after pull request has been analysed.

      The fix:

      • never mark PRs as protected from purge
      • purge stale PRs (according to sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs setting) that were already marked as protected from purge

        Attachments

          Activity

            People

            Assignee:
            michal.duda Michal Duda (Inactive)
            Reporter:
            michal.duda Michal Duda (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: