Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
485be3e57c | ||
|
|
30a5efb337 | ||
|
|
32a5b2be66 |
3 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue