Details
-
Bug
-
Resolution: Fixed
-
Medium
Description
Summary
While trying to approve a PR using REST API with "Reset approvals when the source branch of a pull request is modified" is enabled on Branch Permission, the PR's approval UI is not updated.
###Steps to Reproduce
- Create Branch Permission with the below option checked:
- Require at least (1) approval
- Reset approvals when the source branch of a pull request is modified
- Create a pull request
- Use Bitbucket API to Approve PR
#!bash curl -iX POST -u "$user:$Password" 'https://api.bitbucket.org/2.0/repositories/<User>/<Repo>/pullrequests/<PRNumber>/approve
- Refresh the PR page – approval is not displayed
- Uncheck the "Reset approvals when the....." in the branch permission
- Refresh the PR page – approval is displayed
###Expected Results
PR approval UI is updated after the Bitbucket API request is send
###Actual Results
Curl output shows the PR is already approved, but there're no changes on PR UI