Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
759
-
4
-
Description
If you have a setup where you have a webhook which should trigger on a pull request, but having only the PR updated or PR created events added to the PR, no webhook will trigger on PR merge. The webhook can only be triggered by adding repo:push.
Scenario:
- Create a webhook with trigger: PR updated, PR Created
- create a PR from branch Source to destination -> this will trigger a webhook
- now make a commit to the Source Branch -> this will trigger a webhook for PR updated
- create a branch Feature from Source branch while the PR is still open -> make changes to files -> commit those to Feature branch
- Create a PR from Feature Branch to -> Source Branch -> Merge it
- Event in Step 5 - will add a new commit to Source Branch thus updating the PR since the new commit is added to the already open PR from Source to destination - however this event will not trigger a PR updated webhook
The webhook will only be fired if repo:push event is listed as one of the triggers.
Expected behavior: Since the open PR is updated with a new commit(PR's merge commit), it should trigger a "pullrequest:updated" webhook event
Attachments
Issue Links
- causes
-
BBS-137708 Loading...