Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-1258

SourceTree should have scripting support

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Last commented by user?:
      true

      Description

      I have a use case as follows:
      We have bug tracker at work, and after I commit I need to put the commit hash in the bug tracker for the fix.
      I'd like to be able to write a script that can, for example, get that commit and copy it in the right format to the clipboard, based on whats currently in the SourceTree window.
      This would require some scripting capabilities:
      1. At a first level, would just be great if we could get the names of windows open in SourceTree. This would help me identify the repository currently open in SourceTree, and my own scripting could do the rest.
      2. At a second level, would be great if SourceTree could tell me the full path to the currently open window's repository. This would be a better way for me to do (1).
      3. Ideally, it would be great if SourceTree could let me pull out the hash of the most recent or currently selected commit directly via AppleScript or another scripting interface.

        Attachments

          Activity

            People

            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Last commented:
                3 years, 4 weeks, 3 days ago