Compare commits

...

3 commits
v1.3 ... main

Author SHA1 Message Date
Shautvast
485be3e57c new version
Some checks failed
Gradle Build / build (push) Has been cancelled
2025-11-20 15:10:32 +01:00
Shautvast
30a5efb337 add hash 2025-11-20 15:07:53 +01:00
Shautvast
32a5b2be66 update version to 1.3 2025-10-02 15:58:42 +02:00
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
# Autoprefix-commit
A simple intellij plugin that puts the current branch name in front of the commit message
* Updates the branch every time the commit dialog is focussed
* Puts the branch name in front of any pre-existing text (unless the branch name was already there)
* Puts #[branchname] in front of any pre-existing text (unless the branch name was already there)
* No config for other fixed characters
* Tested on IntelliJ 2025.x

View file

@ -5,7 +5,7 @@ plugins {
}
group = "com.github.shautvast"
version = "1.2"
version = "1.4"
repositories {
mavenCentral()
@ -32,6 +32,7 @@ intellijPlatform {
1.1 Initial version: insert branchname in commit dialog. No configuration needed.
1.2 No code changes. Plugin was mistakenly compiled using jdk22 so it didn't work.
1.3 minor fix for redundant space after the branch name
1.4 put # in front of the branch
""".trimIndent()
}
}

View file

@ -24,7 +24,7 @@ class BranchNameCheckinHandlerFactory : CheckinHandlerFactory() {
repository?.let {
it.currentBranchName?.let { b ->
if (!message.startsWith(b)) {
panel.commitMessage = "$b $message"
panel.commitMessage = "#$b $message"
}
}
}