Hi,
I want to reset the PR approvals when the sourceBranch is updated. Thought of doing it using the webhook "Source branch updated" event.
I noticed that clicking on the button "Rebase" in a pull request will trigger the same event as updating the source branch. We do not want to reset the approvals when the PR is rebased, but want to reset the approvals only when new commits are added to source branch. Is there a way to differentiate between these 2 events ?
I have tried using script runner but since the events are same, I couldn't differentiate between them.
All ideas are welcomed. Thanks in advance.