Update pre-push handler to support KT

#KTIJ-30057

GitOrigin-RevId: 9eaf1fa2bdba1c11dce3d508793897322f02861d
This commit is contained in:
Vladimir Dolzhenko
2024-10-01 16:37:29 +02:00
committed by intellij-monorepo-bot
parent d9935211b3
commit 90708008c0
2 changed files with 3 additions and 2 deletions

View File

@@ -6,7 +6,7 @@ import org.jetbrains.annotations.Nls
internal class KotlinPluginPrePushHandler : IssueIDPrePushHandler() {
override val paths: List<String> = listOf("plugins/kotlin/")
override val commitMessageRegex = Regex(".*(?:KTIJ|IDEA|IJPL)-\\d+.*", RegexOption.DOT_MATCHES_ALL /* line breaks matter */)
override val commitMessageRegex = Regex(".*(?:KTIJ|KT|IDEA|IJPL)-\\d+.*", RegexOption.DOT_MATCHES_ALL /* line breaks matter */)
override val pathsToIgnore = super.pathsToIgnore.toMutableList()
.apply { add("/fleet/plugins/kotlin/") }
.apply { add("/plugins/kotlin/jupyter/") }

View File

@@ -277,7 +277,8 @@ class KotlinPluginPrePushHandlerTest {
"KTIJ",
"KTIJ-",
"KTIJ-one",
"KT-123",
"KT",
"KT-",
"WHATEVER-123",
"Header KTIJ",
"Header KTIJ header",