My requirement is to write a pre-receive hook which looks for a particular "Text" in changes of a commit and rejects the commit if "Text" is found.
How do I accomplish this? I saw there is streamDiff() method but I couldn't find any examples regarding how to use Callback functionality.
I am writing the pre-receive hook using ScriptRunner in groovy.
Any example would be highly appreciated. Thanks
Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events