Special notification that file changes of certain type require action before commitment (e.g. migrations)

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: None
    • Environment:
      Standalone SourceTree for Windows

      I use Django, and when changes are made to any file named models.py, then accompanying migrations need to be done and committed along with the code changes.  I sometimes forget to do the migrations.  Since SourceTree is already watching for changes to files, I would like to be able to specify a REGEX for filenames to watch which, when changed, would trigger a bright orange message (perhaps beside the 'unstaged files' label) that would prompt me to also include in a particular commit the migrations that were associated with the code changes made in the commit.  The setting could include allowing the user to specify both a file REGEX and the text of the message.  Taking my example, when files named "models.py" are changed, then this message (that I specify) is displayed:  Include Migrations.  The display of this prompt would work similar to how the flag displays in the upper right when a new version is available.  This would be SUCH a helpful feature!

            Assignee:
            Unassigned
            Reporter:
            danwithshenbergertech
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: