Skip to content

Consider actor when linting messages #233

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

Closed
nandi95 opened this issue Sep 13, 2021 · 1 comment
Closed

Consider actor when linting messages #233

nandi95 opened this issue Sep 13, 2021 · 1 comment

Comments

@nandi95
Copy link

nandi95 commented Sep 13, 2021

This isn't really an issue with this action (I don't think), I just don't know a better place to start the conversation.

In my repo when dependabot opens a PR sometimes this action fails as the message is over 100 characters.
Is there/can we devise a way so when certain actors make the commit, they're exempt from some rules?

Perhaps this action could somehow pass along some arguments that can be accessed in the config?

@jdbruijn
Copy link
Collaborator

The actor is not available in the commitlint parsed commit so this would very difficult that way as far as I'm aware. You could however use the commit message type (e.g. deps) that tools like Dependabot uses. Then you can use my plugin: https://github.com/vidavidorra/commitlint-plugin-function-rules to selectively allow longer messages. That is exactly what I've implemented in my shared https://github.com/vidavidorra/commitlint-config, so I'd suggest using that or looking at the specified rules there for i.a. Dependabot.
Hope this helps, feel free to use the discussions in either one of those repo's for further questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants