Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Limit Branches size name using pre-hooks

Hello, as the title says i'm looking for a way to limit the name of bitbukets branches to 50 characters.  Do you know any way ? i'm trying to do a bash script using Scriptrunner to make this as a pre-hook but i can't manage to make it work.

1 answer

1 accepted

0 votes
Answer accepted
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Dec 07, 2022

With the Better Commit Policy app, you can implement a rule which matches the branch name against a regular expression. The regex can limit the number of chars to 50 (and do a million of other things).

The left-side example shows a similar use case with branch names:



  1. The app:
  2. The related doc:
  3. You have to use this condition:
  4. Here is a sample regex that requires a text be at least N chars: (you should be able to figure out yours based on this)

(Discl. I'm a developer working on this paid and supported app.)

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events