Help with commit acceptance to exclude a path from the commit hook

Hi

Most of the time my team commit to the SVN repo and I want the client.pl hook to be executed and I want them to be forced to add the JIRA Key to the commit message. However I have some clients that are committing to a certain folder in the repo and I dont want them to enter a JIRA project key.

Is there a way in the client.pl to exclude a certain path? I know nothing about perl so really need some help with this.

Many thanks.

2 answers

0 vote
Ahmad Danial Atlassian Team Nov 06, 2013

Hey there, Kevin.

Are you still facing issues with the plugin or do you have any further queries about it? If yes, I would suggest you to reach out to the support engineers by raising a ticket in https://support.atlassian.com so they can help you to tackle this problem. Hope this helps.

The Commit Acceptance Plugin does not support this.

The Commit Policy plugin can check the existence of issue keys (against a JQL) in your commit message, and you can limit the verification to certain paths using a regular expression.

If you use a regex like this, you can check the commits only on trunk, for example:

trunk/*

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

165 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you