Skip to content

Commit

Permalink
Fix CommitsWithMesssage typo -> CommitsWithMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
grandchild committed Jul 4, 2017
1 parent 0fc7cac commit 67667ba
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public GitChangelogApi withGitLabToken(String gitLabToken) {
* ^\\[maven-release-plugin\\].*|^\\[Gradle Release Plugin\\].*|^Merge.*
* </code>
*/
public GitChangelogApi withIgnoreCommitsWithMesssage(String ignoreCommitsIfMessageMatches) {
public GitChangelogApi withIgnoreCommitsWithMessage(String ignoreCommitsIfMessageMatches) {
this.settings.setIgnoreCommitsIfMessageMatches(ignoreCommitsIfMessageMatches);
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public void rendersTo(String file) throws Exception {

if (this.ignoreCommitsIfMessageMatches != null) {
gitChangelogApiBuilder //
.withIgnoreCommitsWithMesssage(this.ignoreCommitsIfMessageMatches);
.withIgnoreCommitsWithMessage(this.ignoreCommitsIfMessageMatches);
}

String changelog = toJson(gitChangelogApiBuilder.getChangelog());
Expand All @@ -67,7 +67,7 @@ public void rendersTo(String file) throws Exception {
.withFromRepo(".") //
.withFromCommit(ZERO_COMMIT) //
.withToRef("test") //
.withIgnoreCommitsWithMesssage(
.withIgnoreCommitsWithMessage(
"^\\[maven-release-plugin\\].*|^\\[Gradle Release Plugin\\].*|^Merge.*") //
.withIgnoreTagsIfNameMatches(".*tag-in-test-feature$") //
.withReadableTagName("/([^/]+?)$") //
Expand All @@ -91,7 +91,7 @@ public void rendersTo(String file) throws Exception {

if (this.ignoreCommitsIfMessageMatches != null) {
withTemplatePath //
.withIgnoreCommitsWithMesssage(this.ignoreCommitsIfMessageMatches);
.withIgnoreCommitsWithMessage(this.ignoreCommitsIfMessageMatches);
}

assertEquals(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void testThatTagsThatAreEmptyAfterCommitsHaveBeenIgnoredAreRemoved() thro
.withFromCommit(ZERO_COMMIT) //
.withToRef("test") //
.withTemplatePath(templatePath) //
.withIgnoreCommitsWithMesssage(".*") //
.withIgnoreCommitsWithMessage(".*") //
.render() //
.trim())
.hasSize(74);
Expand Down

0 comments on commit 67667ba

Please # to comment.