Map git parameters to hock parameters

Дмитрий Попов October 5, 2015

Is there any availability to pass any parameter of hook. Consider hook has been fire on merge after pull request, can I pass this branch name to executable using this hook?

1 answer

0 votes
Stanislav Seletskiy
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.
October 6, 2015

You should be able to do this by reading stdin. All ref updates will come line-by-line in format <old-value> <new-value> <ref-name>. <ref-name> is the name of branch you are looking for.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events