I am writing a shell script that should run when a Pull request is created in Bitbucket. My question is what are the ways to capture a Pull request. At the moment, I have found two ways.
1) Create a hook plugin in the bitpack that captures the retrieval request.
2) Create a jenkins job and a corresponding plugin in jenkins that grabs the pull request and can run my shell script in build actions.
Is there any other way to capture a Pull request?
Thanks.
source share