Skip to content

Commit

Permalink
Merge pull request #64 from ilovemilk/hotfix/61-fix-breaking-change-r…
Browse files Browse the repository at this point in the history
…egex

fix breaking change regex
  • Loading branch information
ilovemilk authored Dec 1, 2020
2 parents d375e77 + 6060edd commit d5182fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [2.3.6]
### Fixed
- Fix BREAKING CHANGE regex to also accept BREAKING-CHANGE and BREAKING_CHANGE due to an incompatibility between the Conventional commit specification and the git trailers convention:
git trailers only detect keywords which do not contain space character (e.g. BREAKING-CHANGE is detected but not BREAKING CHANGE) whereas Conventional commit specification specified BREAKING CHANGE with a space.

## [2.3.5]
### Fixed
- Fix large process outputs could lead to a timeout in the command runner due to the reading buffer running full and blocking the process.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Gradle 2.1 and higher

```
plugins {
id("io.wusa.semver-git-plugin").version("2.3.5")
id("io.wusa.semver-git-plugin").version("2.3.6")
}
```

Expand All @@ -25,7 +25,7 @@ buildscript {
}
}
dependencies {
classpath 'io.wusa:semver-git-plugin:2.3.5'
classpath 'io.wusa:semver-git-plugin:2.3.6'
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "io.wusa"
version = "2.3.5"
version = "2.3.6"

dependencies {
implementation(kotlin("stdlib-jdk8"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ConventionalCommitsIncrementer: IIncrementer {
val optionalScope = "(\\(.*?\\))?"
val feat = "^feat$optionalScope"
val fix = "^fix$optionalScope"
val breakingChange = "\\bBREAKING CHANGE\\b:"
val breakingChange = "\\bBREAKING[ _-]CHANGE\\b:"

if (semverGitPluginExtension.info.dirty) patch = 1

Expand Down

0 comments on commit d5182fd

Please sign in to comment.