-
Notifications
You must be signed in to change notification settings - Fork 934
Commit msg with breaking change using "!" #3492
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
Comments
Does this work?:
|
when I use
It runs error
look forward to your reply |
I believe these are 2 different issues. The initial post of this issue is likely describing a wrong input because of the empty space after the "!": The issue you posted is new. I'm not sure what the reason is and since when this happens. What OS are you using? This works for me: git commit -m 'feat!: new awesome feature' Also this works: git commit -m "feat\!: new awesome feature" Can you confirm this? |
I'm running into this same issue. Here's what I get: ✖ found 2 problems, 0 warnings` |
Does your message work without the Depending on your commitlint config this might not be related to the |
Sorry for commenting on a closed issue, but this sounded similar to the issues I'm having. commitlint.config.ts import type { UserConfig } from "@commitlint/types";
import { RuleConfigSeverity } from "@commitlint/types";
const Configuration: UserConfig = {
extends: ["@commitlint/config-conventional"],
formatter: "@commitlint/format",
parserPreset: "conventional-changelog-atom",
};
export default Configuration; When I run the default config in a commitlint.config.mjs file, the I can't for the life of me figure out what's wrong... |
No worries, would you mind posting the outputs you get for each case. |
Of course! You mean these two cases? And also, that was the fastest reply I've ever gotten. xD
|
Thanks! So this kinda narrows (at least your case) it down to using a config with TS instead of JS, right? p.s. Happy to reply fast but fixing this might be much slower 😿 |
That's kinda what I was thinking too. That maybe it's the the TS in my case that is messing me up. PS. No worries. I'll get by with config in JS. :) |
had a similar issue using a custom .yml config. To fix: |
Hi there,
I'm currently using
commitlint
+@commitlint/config-conventional
and when I try to create a commit and mark it as BREAKING CHANGE using ! I got complaints.Reproduction:
THEN:
Shouldn't the use of "!" to mark a commit with breaking changes be supported?
Thanks in advance.
The text was updated successfully, but these errors were encountered: