Uploaded image for project: 'Sourcetree for Windows'
  1. Sourcetree for Windows
  2. SRCTREEWIN-3261

If branch contains a string matching a regular expression in an configuration option, prefill commit message with string.

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • General
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Use case:

      • User is using the connector between Jira and Stash (or Bitbucket or Github) and wants the commits to show up in the issue.
      • User is using the feature branch workflow and putting the Jira issue key into his branch names.
      • User makes changes and starts commit in ST.
      • Desired result: Jira issue key is automatically prefilled into the commit message.

      Solution: Create a configuration option like "Prefill commit message from branch" which takes a regular expression as value. The part of the branch name that matches the expression gets extracted and put in the commit message. Note that the solution isn't hardcoded to Jira or Stash/Bitbucket/Github/..., and hence will work with other issue trackers or indeed any piece of information that can be sensibly copied from the branch name into the commit message.

      See discussion at https://answers.atlassian.com/questions/16388104/how-to-get-the-issue-key-into-the-commit-message-automatically.

              Unassigned Unassigned
              aafa195bfd98 Intel CHD Jira Admin
              Votes:
              10 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: