Closed bradenmacdonald closed 6 months ago
Thanks for the pull request, @bradenmacdonald! Please note that it may take us up to several weeks or months to complete a review and merge your PR.
Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here.
Please let us know once your PR is ready for our review and all tests are green.
@nedbat this seems reasonable to me, let me know if you have any concerns as the one who put this workflow in here in the first place.
I'm unfamiliar with the factors here, but @bradenmacdonald seems to have found a simple recommended fix. :+1:
@bradenmacdonald 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future.
On a recent PR of mine, the commitlint check was failing because of an error in the workflow:
The reason is that I am changing the repo to use ES6 modules, by putting
"type": "module"
inpackage.json
. This is the newer, modern format for JavaScript source files. However, commitlint requires that its config file use the older CommonJS format.As you can read in this commitlint issue, the simple workaround for now is to rename the config file to use the
.cjs
extension. This is a painless fix that is perfectly backwards compatible, and now the commitlint check will work regardless of the current repo'smodule
setting.See an example showing a successful commitlint check in the same repo after I temporarily incorporated this fix.
(Another way to fix this would be to
rm package.json
before running commitlint, so that its runtime environment is not influenced by the checked-out repo'spackage.json
settings, but that seems unnecessary.)