How can we capture a pull request which is created in bitbucket cloud

Viewed 80

I'm writing a shell script which should be trigger once there a Pull request is created in Bitbucket. My question is what are the ways to capture the Pull request. I found two ways as of now.

1) Create a hook plugin in bitbucket which captures the pull request.

2) Create a jenkins job and with relevant plugin in jenkins which captures pull request and can trigger my shell script in build actions.

Is there any other way to capture the Pull request?

Thank you.

1 Answers
Related