-
Notifications
You must be signed in to change notification settings - Fork 2
(#14, #17) Fix linting for ecmascript modules. #20
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
Conversation
1016a95 to
19eff22
Compare
bryanpizzillo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a number of undocumented changes being made here. Also nothing in the standards workflow should reference a ref.
c07f5a2 to
1e62745
Compare
baea61c to
016a555
Compare
- BREAKING CHANGE: There is now a required parameter, config_ref, which specifies the branch, tag, or commit hash to use when retrieving the commitlint configuration file. Changes: - Run commitlint directly from workflow. - Rename commitlint config file to .cjs. - Parameterize standards check workflow. - Pass module version from test_commitlint workflow. - Bump action versions. - Adds explicit workflow permissions. Closes #14 Closes #17
016a555 to
4b308f4
Compare
bryanpizzillo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jfrank-nih and @blairlearn say this works. Approach looks right
There is now a required parameter,
config_ref, which specifiesthe branch, tag, or commit hash to use when retrieving the
commitlint configuration file.
Changes:
Notes:
Why use commitlint directly instead of via an action?
The
wagoid/commitlint-github-actionaction has a bug/limitation (described in their issue 810) which prevents using a configuration file from outside the$GITHUB_WORKSPACEtree. This is a Docker action which mounts$GITHUB_WORKSPACE; making the runner's/tmpdirectory inaccessible.The bulk of the action's code appears to be calculating start and ending commits for linting, which is information GHA provides.
The commitlint documentation provides a guide for setting it up in GitHub actions.
Closes #14
Closes #17