Skip to content

Commit 57bef35

Browse files
author
FuLin
committed
fix(template): change default template
- ${newline} inside if statements Closes #4
1 parent 8eec731 commit 57bef35

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ dependencies {
2424

2525
// See https://github.com/JetBrains/gradle-intellij-plugin/
2626
intellij {
27-
version 'IU-2017.1'
28-
// version 'IU-2019.3'
27+
// version 'IU-2017.1'
28+
version 'IU-2020.1'
2929
pluginName 'Git Commit Message Helper'
3030
updateSinceUntilBuild false
3131
}

src/main/java/com/fulinlin/constant/GitCommitConstants.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
* @create: 2019-12-08 11:37
77
**/
88
public class GitCommitConstants {
9-
public static final String DEFAULT_TEMPLATE = "#if($type)${type}#end#if($scope)(${scope})#end: #if($subject)${subject}${newline}#end\n" +
10-
"#if($body)${body}${newline}#end\n" +
11-
"#if($changes)BREAKING CHANGE: ${changes}${newline}#end\n" +
12-
"#if($closes)Closes ${closes}#end\n";
9+
public static final String DEFAULT_TEMPLATE = "#if($type)${type}#end#if($scope)(${scope})#end: #if($subject)${subject}#end\n" +
10+
"#if($body)${newline}${newline}${body}#end\n" +
11+
"#if($changes)${newline}${newline}BREAKING CHANGE: ${changes}#end\n" +
12+
"#if($closes)${newline}${newline}Closes ${closes}#end\n";
1313
}

0 commit comments

Comments
 (0)