IDEA Commit Prefixer is a plugin for Jetbrains IDEs that automatically adds the current branch name to the beginning of commit messages.
🔹 Key Features:
✔ Auto-adds the branch name to commit messages.
✔ Replaces the old branch name if it has changed.
✔ Does not modify the commit if the branch name is already correct.
✔ Adds a button in the commit UI panel for manual insertion.
1️⃣ Open IntelliJ IDEA / PhpStorm
2️⃣ Go to Settings → Plugins
3️⃣ Search for Kolesa Commit Prefixer
4️⃣ Click Install
5️⃣ Restart the IDE
1️⃣ Download the .zip file from JetBrains Marketplace
2️⃣ Open Settings → Plugins → Install from Disk
3️⃣ Select the downloaded .zip and click OK
4️⃣ Restart the IDE
1️⃣ Write a commit message in the VCS commit window.
2️⃣ Click the button with blue magic stick icon.
3️⃣ The plugin will insert or update the branch name automatically.
🔹 If a branch name already exists in the commit, the plugin will replace it with the correct one.
🔹 If no branch name is found, it will be added to the beginning of the message.
No additional configuration is required. The plugin works out of the box!
This plugin is licensed under the Apache 2.0 License. See the LICENSE file for details.
- 🔹 JetBrains Marketplace: Plugin Page
- 🔹 GitHub Repository: Kolesa Commit Enhancer
🚀 Happy coding!