Giter Site home page Giter Site logo

vincentrohde / intellij-ticketnr-prefill-commit-messsage Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 7 KB

Prefill Commit Messages with Ticket Number from Branch for Intellij, PHPStorm, PyCharm, Webstorm, etc. ๐Ÿ”ฅ๐ŸŒถ๏ธ

jetbrains intellij phpstorm pycharm webstorm ticket-management commit-message

intellij-ticketnr-prefill-commit-messsage's Introduction

Intellij, PHPStorm, PyCharm, Webstorm, etc. - Prefill Commit Messages with Ticket Number from Branch

If you use Intellij, PHPStorm, PyCharm, Webstorm, etc. + a ticket system, this solution might be helpful for you, to spice up your commit messages ๐Ÿ”ฅ๐ŸŒถ๏ธ

You will install a custom Intellij plugin and use a regex. When you commit your changes, the commit message will be automatically prefilled with the ticket number you provided in your branch.

The solution supports the following branches. On the right you can see the result.

feature/#3444_test                          => #3444
#3444_test                                  => #3444
feature/#123-ABC_test                       => #123-ABC
feature/#123ABC-ABC123_test                 => #123ABC-ABC123
feature/#ABC-123_test                       => #ABC-123
bug/#ABC123-123_test                        => #ABC123-123
bug/#ABC123ABC-123_test                     => #ABC123ABC-123

Install plugin

https://plugins.jetbrains.com/plugin/14762-git-commit-message-template

IDE Settings

  • Open your Intellij Settings
  • Go to Other Settings | Git Commit Message Template
  • Go to Regex to extract info from branch
  • Select Custom and add the regex from below the image โฌ‡๏ธ

ticket-nr-commit-message

Regex

(\#[a-zA-Z0-9\-]+[a-zA-Z0-9]+)|(\#[0-9]+)

To complete your setup hit Apply, now you are ready to commit ๐Ÿš€

intellij-ticketnr-prefill-commit-messsage's People

Contributors

vincentrohde avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.