Declining a PR with a deleted source branch gives an error message

XMLWordPrintable

    • 1
    • Severity 2 - Major
    • 50

      Issue Summary

      • If a source branch has been deleted/gc'd and the PR is attempted to be declined, an error is returned that prevents the deletion

      Steps to Reproduce

      1. Create a PR
      2. Delete/GC the source branch
      3. Attempt to decline the PR

      Expected Results

      • The PR is declined

      Actual Results

      • The PR is not declined, it gives an error message

      The below exception is thrown in backend logs:

      • KeyError
        Failed to lookup anchor for PR ref
        

      Workaround

      • A support technician needs to delete the PR manually, declining the PR via API also fails

            Assignee:
            Unassigned
            Reporter:
            Ben
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: