Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23850

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

XMLWordPrintable

      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

              Unassigned Unassigned
              57b7f67f3625 Ben
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: