Compare commits

..

No commits in common. "main" and "v1.3" have entirely different histories.
main ... v1.3

3 changed files with 3 additions and 4 deletions

View file

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

View file

@ -5,7 +5,7 @@ plugins {
} }
group = "com.github.shautvast" group = "com.github.shautvast"
version = "1.4" version = "1.2"
repositories { repositories {
mavenCentral() mavenCentral()
@ -32,7 +32,6 @@ intellijPlatform {
1.1 Initial version: insert branchname in commit dialog. No configuration needed. 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.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.3 minor fix for redundant space after the branch name
1.4 put # in front of the branch
""".trimIndent() """.trimIndent()
} }
} }

View file

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