question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Commitlint started flagging dependabot pr's

See original GitHub issue

This 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 ^

  1. First step
  2. Second step
commitlint.config.js ```js ```

Context

Your Environment

Executable Version
commitlint --version VERSION
git --version VERSION
node --version VERSION

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
escapedcatcommented, May 12, 2022

Please post your commitlint-config as the issue template suggests, thanks.

Looks like you only except certain scopes and deps isn’t one of them (see listed scopes in the error message).
Easiest solution might be

  • adjust the dependabot message to chore: ... (removing the deps scope)
  • add deps to your list of possible scopes

Does this help?

0reactions
escapedcatcommented, May 14, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found