-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: support BREAKING CHANGE in body #30
Conversation
<newline> ::= [<CR>], <LF> | ||
<parens> ::= "(" | ")" | ||
<ZWNBSP> ::= "U+FEFF" | ||
<TAB> ::= "U+0009" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding the breaking-change
node forced me to indent for consistency.
| <summary>, <newline>*, <footer>+ | ||
| <summary>, <newline>* | ||
|
||
/* "!" should be added to the AST as a <breaking-change> node with the value "!" */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added note that !
should be added as a breaking-change
node to the AST (this is already the behavior).
<text> ::= <any UTF8-octets except newline>* | ||
|
||
|
||
<body> ::= [<any body-text except pre-footer>], <newline>, <body>* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
introduced a <body-text>
node, which is <text>
with an optional BREAKING CHANGE
prefix.
|
||
<body> ::= [<any body-text except pre-footer>], <newline>, <body>* | ||
| [<any body-text except pre-footer>] | ||
/* For convenience the <breaking-change>, <separator>, <whitespace>, and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note for implementers that we don't want to add a <body-text>
node to the AST.
| <text> | ||
<continuation> ::= <newline>, <whitespace>+, <text> | ||
|
||
<breaking-change> ::= "BREAKING CHANGE" | "BREAKING-CHANGE" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text on conventionalcommits.org indicates that we should support BREAKING-CHANGE
.
BREAKING CHANGE
node inbody
.BREAKING CHANGE
, adding support forBREAKING-CHANGE
(See: spec).