About the Bitbucket Data Center category

Ask any questions related to development for Bitbucket Data Center here.

Can you provide an example of how to verify diffs in a PreReceiveHook which is part of the atlassian plugin module? Been banging my head over this for 2 weeks now. Cannot figure out how to actually read the diffs and reject push if diff matches certain regex pattern.