I want to create a custom merge check which will check for jenkins particular stage is executed or not.
My approach this problem is making a rest api call to jenkins server about build logs, based on logs I will take decision whether should I accept/reject the pull request.
So my questions are
Can I make a Rest Api call inside custom merge check?
What is the way to create custom merge check?