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
During my 17 years as a coach, mentor, and trainer of Agile teams, I’ve participated in hundreds of Agile planning meetings. The end result was a wall of backlog items annotated by an explosion of co...
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