Skip to content

Commit

Permalink
feat(deps): ignore commitlint check for dependabot messages (#220)
Browse files Browse the repository at this point in the history
* feat(deps): ignore commitlint check for dependabot messages

* chore(ci): update commitlint.config.js

---------

Co-authored-by: saisatishkarra <[email protected]>
  • Loading branch information
pankajmouriyakong and saisatishkarra authored Jan 28, 2025
1 parent 0b0e276 commit f86883f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@ module.exports = {
[...(await getPackages(ctx)), 'release', 'deps', 'ci']
]
},
// TODO: Perform ignores based on Commit Author instead of Message to avoid spoofing
// Temporary solution: Ignore function to ignore any commit message which match the regex.
// Example commit message: `github-actions(deps): bump anchore/scan-action from 4.1.2 to 6.1.0`
ignores: [
(message) => /^Bumps \[.+]\(.+\) from .+ to .+\.$/m.test(message),
],
helpUrl: 'https://github.com/Kong/public-shared-actions',
}

0 comments on commit f86883f

Please sign in to comment.