-
Notifications
You must be signed in to change notification settings - Fork 913
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
Slashs and commas are not allowd in scope? #341
Comments
I suspect this is caused by the additional newline, not the The errors you see and the diverging behaviour if direct CLI / stdin usage are consistent with the newline showing up in the commitlint output of your failing example - the commit parser we use assigns special meaning to the first line of a commit. I don't see any way how commitlint could cause this, any idea what might add the newline on your side? |
@marionebl Did you try my repo? |
same behavior with # |
@aguacongas I could only use dot instead of hash or slash or comma |
Ran into the same issue and tried to dig into it a bit. If I understood correctly, The However, presetOpts does not appear to be empty, because it already contains |
Thanks for reporting and the analysis, folks. The appropriate is to be more granular about defaulting to const changelogOpts = await defaultChangelogOpts;
parserOpts = merge(changelogOpts, parserOpts); Want to lend a hand @robin-drexler? |
All of this "stuff" should make its way into the documentation as well. It is very confusing to figure out what options are available. Even if the docs just have links pointing to other repo options. |
Expected Behavior
without slash:
Cli-test:
Current Behavior
Looks like there's an extra new-line before my commit message:
Affected packages
Possible Solution
Steps to Reproduce (for bugs)
https://github.com/Stupidism/cra-rewired-starter/tree/3a1c47cdcda5f585c529f78b246bc470ce64c526
commitlint.config.js
```js ```Context
Your Environment
commitlint --version
git --version
node --version
The text was updated successfully, but these errors were encountered: