Closed jklmli closed 6 years ago
I added this simple command because it works for me and I know it's not perfect :) Send a PR to improve the command :)
long commit messages
Can you give an example of a "long commit message"? Without a reproducible test case there isn't much that can be done that isn't stabbing in the dark.
Thank you.
Are you having trouble opening the CI link at http://circleci.com/gh/jiaweihli/monapt/57?
Ah, I see - there's something buggy with CircleCI.
If you toggle the Validating last commit message
section, you can see the console output.
There is the commit message in question for testing.
@jiaweihli It is best to provide all the information possible inline without linking to external sources unless required for some reason. That way in case anything externally changes (like a push to that PR to fix the problem) the content of the issue is still whole and debuggable. Also, super useful for reference later to not need to worry about losing stuff.
I'm looking into this now, but I don't think the problem is internally from my initial look at things. It looks like a node problem opening the file due to the length of the path to the file in CI.
Yup, just tested this message locally and it works as expected. So the problem is somewhere in the CI setup. PRs to address it welcome, but we can't test and debug each CI environment ourselves to fix problems.
Reproduction steps:
git init
yarn add validate-commit-msg
validate
script to package.json
with the value of validate-commit-msg
set -l IFS; and yarn validate (git log -1 --pretty=%B); and set -e IFS
(for fish shell)@Garbee @jiaweihli I believe my commit solves this problem. At least that was the reason drove me to create that PR.
This package has been deprecated. Please use https://github.com/marionebl/commitlint instead.
Version: 2.12.1
When running
yarn validate-commit-msg "$(git log -1 --pretty=%B)"
, long commit messages cause anENAMETOOLONG
error since the argument is too long.Failure: https://circleci.com/gh/jiaweihli/monapt/57