Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

After PR rebase, How to withdraw approvals only if the files in PR have changed in dest branch?

sheshachandra.tumkur-prasanna July 2, 2024

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.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events