git icon indicating copy to clipboard operation
git copied to clipboard

body too long

Open y-nk opened this issue 2 years ago • 3 comments

the release notes are in the commit body, but i have rules enforced to limit the size of the commit body. is there a way to pass arguments to the commit command ?

y-nk avatar Jan 26 '22 09:01 y-nk

@y-nk I also hit a problem like this (using commitlint). Not sure if you're also using that, but I was able to work around the problem by configuring commitlint to ignore changes that look like the ones from @semantic-release/git.

I set up this config at commitlint.config.cjs (you could also use commitlint.config.js)

const automaticCommitPattern = /^chore\(release\):.*\[skip ci]/;

const commitlintConfig = {
  "extends": [
    "@commitlint/config-conventional"
  ],

  ignores: [
    commitMsg => automaticCommitPattern.test(commitMsg)
  ]
};

module.exports = commitlintConfig;

dennisjlee avatar Feb 14 '22 23:02 dennisjlee

Thanks @dennisjlee that's a good workaround 🙏

y-nk avatar Feb 15 '22 02:02 y-nk

Thanks a ton @dennisjlee that worked for me, spent hours trying to troubleshoot this issue.

waldronmatt avatar May 24 '22 02:05 waldronmatt