-
Notifications
You must be signed in to change notification settings - Fork 61
Dependabot doesn't use the chore
type on my repositories; it uses build
#439
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
Comments
That is really something that you should just change in your repositories' commitlint configuration, and make sure this uses your configuration file. |
@jdbruijn why did you close this issue, did you take a look at my PR? From my understanding, Dependabot creates a default commit with a What I'm saying is that the current default commitlint configs are outdated, hence my PR #440 |
I did see the PR indeed. I didn't mean to come off as rude or anything. My point is that this is essentially not an issue with this action, but rather with the used commitlint configuration. In other case dependabot might use I'm pretty sure, but @wagoid could confirm if it's indeed correct, we don't even use the configuration file from this repository for anything other then the commits in this repository commitlint-github-action/src/action.js Lines 122 to 124 in 2e57812
@commitlint/config-conventional as fallback. The fallback being the case where there is no local configuration file, so in your repository for example. To fix this issue you should really create these rules in your local commitlint configuration file(s) and make sure it is called commitlint.config.js or you configure it by means of the configFile option. Hope this helped clarify.
|
@jdbruijn Thanks for the explanation! It was my too quick wrong understanding that the file However, if I may suggest, what about having an additional config flag in the commitlint action such as name: Lint Commit Messages
on:
- pull_request
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
with:
ignoreDependabot: true That way the github action could be compatible with dependabot without having the need for a custom |
AFIK that information is not available. In (#233 (comment)) we also got that question. That information being not available is not decided on by this action, but rather something from commitlint, or I even believe the Git hook, itself. So should be in upstream commitlint (see conventional-changelog/commitlint#2455 and conventional-changelog/commitlint#321 for example). Hope this helps. |
Makes sense, thanks! |
I was trying to figure out why commitlint-github-action was giving me errors for
body-max-line-length
Turns out we're just checking for the
chore
type in commitlint.config.jsMy dependabot is giving me
build
type instead ofchore
with default configsThe text was updated successfully, but these errors were encountered: