Closed Vjash closed 4 years ago
@Vjash: Try to run specify test script and see is there any difference or not between run of pre-receive:
#!/bin/bash
(
echo "Environment variables:"
env
while read from_ref to_ref ref_name; do
echo "Ref update:"
echo " Old value: $from_ref"
echo " New value: $to_ref"
echo " Ref name: $ref_name"
echo " Diff:"
git show $from_ref..$to_ref | sed 's/^/ /'
done
) | tee -a /tmp/external-hooks-test.log
Awesome Stanislav, this helps a lot! Thanks much.
-- Vaijayanthi
From: Stanislav Seletskiy notifications@github.com Reply-To: reconquest/atlassian-external-hooks reply@reply.github.com Date: Thursday, September 20, 2018 at 2:11 AM To: reconquest/atlassian-external-hooks atlassian-external-hooks@noreply.github.com Cc: Vaijayanthi Muralidharan vaijayanthi@silver-peak.com, Mention mention@noreply.github.com Subject: Re: [reconquest/atlassian-external-hooks] How to not run external pre-receive hooks only for Pull-Requests? (#69)
@Vjashhttps://github.com/Vjash: Try to run specify test script and see is there any difference or not between run of pre-receive:
(
echo "Environment variables:"
env
while read from_ref to_ref ref_name; do
echo "Ref update:"
echo " Old value: $from_ref"
echo " New value: $to_ref"
echo " Ref name: $ref_name"
echo " Diff:"
git show $from_ref..$to_ref | sed 's/^/ /'
done
) | tee -a /tmp/external-hooks-test.log
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/reconquest/atlassian-external-hooks/issues/69#issuecomment-423105343, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AlF7ZOuhdusRvem_Xjof7W68inQ90CzQks5uc1u5gaJpZM4Ww9gQ.
How to not run external pre-receive hooks only for Pull-Requests?