Hi,
When a PR is rebased with destination branch, I want to withdraw approvals only if the files in PR have changed in the destination branch. I'm using script runner listener "Withdraw approvals when a pull request changes", but this will withdraw all approvals irrespective of the files which have changed.
Below is an example.
My repo has files named x,y,z. I have made some changes in file x and created a PR.
In the destination branch, if there are changes in file x and I rebase the PR, all approvals must be unapproved.
But if in the destination branch, if there are changes in file y or z and I rebase the PR, approvals should stay intact since there is no change in file x.
Thanks in advance.