Bug: Commitlint started flagging dependabot pr's
See original GitHub issueThis week I began noticing each dependabot pr failing the commitlint check
Expected Behavior
commitlint should ignore dependabot, OR perhaps chore should be added to potential commit subjects?
Current Behavior
failure on each dependabot opened pr
`⧗ input: chore(deps): bump graphql from 16.3.0 to 16.5.0
Bumps graphql from 16.3.0 to 16.5.0.
- Release notes
- Commits ✖ scope must be one of [ci, commitlint, package, storybook, assets, components, containers, globals, graphql, models, services, styles, tests, utils, Accordion, Autocomplete, Avatar, Badge, BaseModal, BottomSheetModal, Button, ButtonIcon, ButtonLink, Carousel, CarrierThumbnail, Circle, DatePicker, DocumentIcon, Dropdown, Footer, FullscreenLoader, HtmlRenderer, Image, InfoBanner, Input, InputGroup, InputNumber, InsuranceCard, InsuranceTabs, LazyComponent, Loader, Logo, LogoBar, MarbleMondaysCard, MarbleMondaysModal, MarblesBonus, MaxWidth, MenuDropdown, ModalCloseButton, PlacementCard, PlacementModal, ProgressAvatar, ProgressBar, ProgressCard, ProgressCircle, ProgressInfo, ProgressPercentage, ProgressTag, Score, Search, Select, Snackbar, Spinner, Success, Tooltip, Typography, UserCard, App, Guest, Main, Root, Shared, Authentication, InsuranceInsider, MarketingLanding, Modals, TopBar, Home, Modals, Onboarding, OtherPolicies, Policies, PolicyWizard, Rewards, Settings, Shared, Shop, TopBar, WhatsNew, AddPolicyModal, ArchivePolicyModal, AvatarPickerModal, BalanceLockedModal, DECUploadInformationModal, DocumentInformationModal, FeatureModal, FeedbackTrackerSheet, InformationModal, InformationReasonModal, MarbleMondaysModal, PlacementModal, RedemptionModal, ReferralModal, ReminderModal, RemoveConfirmationModal, RemoveItemConfirmationModal, RenameDocumentModal, ShoppingModal, UploadDocumentModal, VideoPlayerModal, shared, BalanceCounter, Accordion, Autocomplete, Avatar, Badge, BaseModal, BottomSheetModal, Button, ButtonIcon, ButtonLink, Carousel, CarrierThumbnail, Circle, DatePicker, DocumentIcon, Dropdown, Footer, FullscreenLoader, HtmlRenderer, Image, InfoBanner, Input, InputGroup, InputNumber, InsuranceCard, InsuranceTabs, LazyComponent, Loader, Logo, LogoBar, MarbleMondaysCard, MarbleMondaysModal, MarblesBonus, MaxWidth, MenuDropdown, ModalCloseButton, PlacementCard, PlacementModal, ProgressAvatar, ProgressBar, ProgressCard, ProgressCircle, ProgressInfo, ProgressPercentage, ProgressTag, Score, Search, Select, Snackbar, Spinner, Success, Tooltip, Typography, UserCard] [scope-enum]
✖ found 1 problems, 0 warnings`
Affected packages
- cli
- core
- prompt
- config-angular
Possible Solution
ignore dependabot add chore?
Steps to Reproduce (for bugs)
I can paste more samples of failures but I believe the above makes it clear ^
- First step
- Second step
commitlint.config.js
```js ```Context
Your Environment
Executable | Version |
---|---|
commitlint --version |
VERSION |
git --version |
VERSION |
node --version |
VERSION |
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
Some dependabot commit messages violate @commitlint ...
I'm running into an issue with this when merging pull requests from dependabot. Dependabot creates a pr with the following commit: chore(deps- ...
Read more >commitlint - Bountysource
Bug : Commitlint started flagging dependabot pr's $ 0 ... Created 7 months ago in conventional-changelog/commitlint with 1 comments. This week I began...
Read more >Automating dependency upgrades with GitHub Actions and ...
Dependabot is a great tool which can be used to update dependencies with significantly less effort because far less human interaction is required....
Read more >GitHub's dependabot is causing a ton of "spam" in our ...
GitHub's dependabot is causing a ton of "spam" in our frontend (Angular) repositories, as it seemingly opens 1-5 PRs per day to bump...
Read more >@vidavidorra/commitlint-config - npm
commitlint configuration.. Latest version: 4.0.7, last published: 22 days ago. Start using @vidavidorra/commitlint-config in your project by ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Please post your commitlint-config as the issue template suggests, thanks.
Looks like you only except certain
scope
s anddeps
isn’t one of them (see listed scopes in the error message).Easiest solution might be
chore: ...
(removing thedeps
scope)deps
to your list of possible scopesDoes this help?
No worries.
Issue is that you are using the
config-conventional
which comes with default enums but you’re overwriting these with your config. You should add the defaults to your current list or find a way to combine them automatically.