Skip to content

Commit

Permalink
feat: support GitHub cutting-lines in git-trailers
Browse files Browse the repository at this point in the history
This commit introduces support for cutting-lines, as inserted
by GitHub in certain merge strategies. In example:

```
feat: remove logout button

BREAKING-CHANGE: this removes the logout button as we want
  all users to be trapped in this application

--------

co-authored-by: Bob the Builder
```

This would originally result in only the `co-authored-by` trailer
to be accepted, dropping the `BREAKING CHANGE` flag (and therefor
only bumping the MINOR version).

This change will ignore the cutting-line and consider both elements
in the above example as valid trailers.

NOTE: the cutting-line is the only exception, any other paragraph
      entry will still discard previous git-trailers; i.e.

```
feat: remove logout button

BREAKING-CHANGE: this removes the logout button as we want
  all users to be trapped in this application

--------

This parapgraph causes the BREAKING-CHANGE to be discarded

co-authored-by: Bob the Builder
```
  • Loading branch information
KevinDeJong-TomTom committed Dec 7, 2023
1 parent 3f5a107 commit 73249e0
Show file tree
Hide file tree
Showing 8 changed files with 172 additions and 211 deletions.
72 changes: 31 additions & 41 deletions dist/bump/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 31 additions & 41 deletions dist/cli/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 73249e0

Please sign in to comment.