I'm trying to create a merge hook which allows/forbids merge strategy (ff/squash/commit...) on a per-branch basis.
That is, after clicking the 'Merge' button on a PR, only selective types of merge types shall be available from the drop-down menu.
I have already created a skeleton hook from scratch using Atlassian SDK, but I can't figure out how to tweak it to control the merge menu (or any other field in the merge page).