Bitbucket server 5.7.2
When a pull request is approved a webhook kicks off a Jenkins job. The job perges to the pull request branch to the devlop branch and pushes the merge back to Bitbucket server.
However the pull request is still seen as open...
Restarting BitBucket server and the pull request is correctly shown as merged.
I can also produce this from my own machine without Jenkins. So it is something to do with the server instance itself.
Does anyone know what the issue is?