Details
-
Suggestion
-
Resolution: Duplicate
Description
Hello Bitbucket Team,
I found there are some inconsistencies in pull request hook payload, particularly on created and updated event type:
- Pull request id only available on pullrequest_created. It'd be great if available on other events as well. For instance, I'm going to use it to trigger tests for every PR create/updates on our CI server.
- In pullrequest_created, the commit SHA is named (in JSON payload) eventname.source.commit.hash, while it's eventname.source.commit.sha on pullrequest_updated event. Is it intended? I've spent couple of hours in frustration because of this.
Thanks.
Reference: https://confluence.atlassian.com/display/BITBUCKET/Pull+Request+POST+hook+management