Push and pull request difference

anil kumar May 1, 2014

Hi All,

After Pushing the changes to branch and also for successful merged the pull-request , for both the cases control will comes to PostReceiveRepositoryHook's public void postReceive().

How can we differentiate. whether the postReceive() called for pushing or merging.

Thanks

Anil

1 answer

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2014

For the case with the pull request, you will see one of these refs in the refChanges collection.

anil kumar May 25, 2014

I didn't find the differences...I debugged it and for both same set of variables are there..how can I get to know whether my post-hook called after push or after pull-request.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events