Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Custom action not showing in repository browser

A custom action will not appear in the "Custom Actions" context menu that is accessed from the Repository Browser unless its Parameter starts with "$REPO"


Steps to reproduce


  1. Create a custom action
    • Set Menu caption as "Echo"
    • Set Script to run as "echo"
    • Set Parameters as "here $REPO"
    • Screen Shot 2019-02-23 at 10.09.21 .png
  2. Open the Repository Browser window
  3. Ctrl-Click a repository and open the Custom Actions menu.
  4. The "Echo" action is not showing
  5. Now edit the "Echo" custom action
    • Change the Parameters to be just "$REPO"
  6. Now open the Repository Browser window again
  7. Similarly Ctrl-Click a repository and open the Custom Actions menu.
  8. The "Echo" action is now showing.

This is occurring in SourceTree for Mac version 3.1.1 (213) on macOS Mojave 10.14.3.

The main issue is that I have a "Garbage Collect" custom action with the following settings:

  • Script to run: git
  • Parameters: -C $REPO gc --aggressive

This used to work but the menu option is longer appearing in recent versions of SourceTree.


1 answer

1 vote
bgannin Atlassian Team Feb 26, 2019

Hi @Sasmito Adibowo,

Our apologies for the hiccup and our thanks for the detailed information! Please file this as a ticket in our public issue tracker and we'll be sure to take a look for a future update.


Brian Ganninger
Principal Developer, Sourcetree

It seems the issue was not filed, but I did come to a similar conclusion and posted my findings in the comments of this issue: Would that suffice?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Tip from the team: configure your repos for hosting goodness!

Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...

7,144 views 5 13
Read article

Community Events

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

Events near you