How do I verify if a commit is a merge commit of a pull request using groovy scriptrunner for bitbucket server?
You just need to check the length of the `parents`. If there are two or more commits, it's a merge commit, otherwise it's a regular commit.
```commit.getParents().size() >= 2```
It looks like you're new here. Sign in or register to get started.