-
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: add support for cutting-lines and footers with blank lines #274
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
bump:minor
Pull Requests that update the Minor SemVer version after merging
initial development
labels
Dec 7, 2023
KevinDeJong-TomTom
force-pushed
the
chore/eslint-configuration
branch
from
December 7, 2023 16:27
98b7835
to
67937cc
Compare
KevinDeJong-TomTom
changed the title
Chore/eslint configuration
feat: add support for cutting-lines and footers with blank lines
Dec 7, 2023
jstmlr
reviewed
Dec 7, 2023
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.
Mostly minor whiny things, except for the shallowish copy in src/bump.ts
, which I fear will not behave how you expect it to.
maikelvdh
reviewed
Dec 7, 2023
maikelvdh
reviewed
Dec 7, 2023
maikelvdh
reviewed
Dec 7, 2023
maikelvdh
approved these changes
Dec 7, 2023
KevinDeJong-TomTom
force-pushed
the
chore/eslint-configuration
branch
from
December 8, 2023 09:18
67937cc
to
684a4e6
Compare
In addition, the configuration has been migrated from `.JSON` to `.XML`, as is the now recommended layout by ESLint
Originally we would catch all exceptions thrown in the validate, bump, and CLI execution. As a result, the action will ignore certain failures and, in case of `bump`, continue as if nothing went wrong (but also without the associated bump).
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 ```
KevinDeJong-TomTom
force-pushed
the
chore/eslint-configuration
branch
from
January 9, 2024 08:55
f33beb2
to
ca4282c
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces a few features and improvements, incl:
Ensure that unexpected exceptions are no longer caught
Originally we would catch all exceptions thrown in the validate,
bump, and CLI execution. As a result, the action will ignore certain
failures and, in case of
bump
, continue as if nothing went wrong(but also without the associated bump).
Support for cutting-lines
Cutting lines (
--------
), as inserted by GitHub in certain merge strategies, would be considered as a paragraph.In example:
This would originally result in only the
co-authored-by
trailerto be accepted, dropping the
BREAKING CHANGE
flag (and thereforonly 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.
Add --verbose option to the CLI to pretty print commits
Running the
check
command with the--verbose
-flag will provide more details about the commit message: