Disable merge options if build not succseeded

Hello,
I use drone to build, test and deploy my application.

If I get a merge request the drone pipeline starts and return a green chop. If the build does not succeed, I can already merge the pull request, but I want that gitea does not allow pull requests with a failed build or test.

How can I setup in gitea or drone, that I or something else can not merge pull requests with a failed pipeline?

Volker

Could you use a post-recieve hook (or similar on the server side) and look for a web hook to handle this? Seems fickle to do that way but if you cannot trust your collaborators perhaps they shouldn’t have the rights to merge. Are your branches protected?

Not sure what others are doing but I’d wager you’re not the first to ask for this. Any luck searching through git for an issue or related commit?