The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events