How to tell a merge request webhook is from reassigning a merge request?
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=14247) </details> <!--IssueSummary end--> Merge request webhooks are great. I use them to trigger try builds. Since the webhook is fired whenever the merge request changes in any way, I have to filter out most of those events to avoid spurious/duplicate builds. When a merge request is reassigned, I don't want to do a try build. Unfortunately, I don't know how to filter out those events. Here's my simple filter at the moment (after slurping the event into a variable 'o'): ``` if o['state'] == 'closed' or o['state'] == 'merged': print("skipping closed/merged merge request") return if o['merge_status'] == 'cannot_be_merged': print("merge request cannot be merged") return ``` If it passes that, I do a build. Is there a simple element of the merge request message I can test to see that it's a rename? Otherwise I have to keep state, which I'd rather not do.
issue