Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Triggering web hook on push to pull request

Stina Qvarnström May 8, 2020

We are using the web hook for Update and Create on pull request to deploy and redeploy the code to an environment. "Create" works great for this purpose, but the "Update" really isn't what we want. The Update hook triggers for example on push, on rewriting the title, on adding a reviewer. So at the moment the build and deploy is triggered every time a person adds themselves as a reviewer, or the description is changed. It's not optimal, with builds ans deploys running far too often. There is a "Push" hook for repository, is there a way to have a "Push" trigger for a pull request as well? We could of course check for actual git changes before we build, but that would require quite a lot of changes in the current setup.

How do we set up a trigger for a push to a pull request in the best way? It feels like there should be a "Push" hook to it, but there doesn't seem to be one atm. It seems to be included in the 7.0 server version, but we are using the cloud version

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events