Skip to content

Commit

Permalink
chore(ci): dont run commitlint checks on dependabot commit
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Shatford <[email protected]>
  • Loading branch information
jordanshatford committed Oct 4, 2023
1 parent 3c90e4e commit dff1690
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion .commitlintrc.json

This file was deleted.

9 changes: 9 additions & 0 deletions commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import type { UserConfig } from '@commitlint/types';

const configuration: UserConfig = {
extends: ["@commitlint/config-conventional"],
// Ignore dependabot commits (ref: https://github.com/dependabot/dependabot-core/issues/2445)
ignores: [(commit) => /Signed-off-by: dependabot\[bot]/m.test(commit)]
}

export default configuration;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"version": "1.0.0",
"private": true,
"license": "MIT",
"type": "module",
"scripts": {
"prepare": "husky install",
"generate": "pnpm --filter @yd/api generate:openapi && pnpm --filter @yd/client generate",
Expand All @@ -22,6 +21,7 @@
"devDependencies": {
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/types": "^17.4.4",
"husky": "^8.0.3"
},
"pnpm": {
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit dff1690

@vercel
Copy link

@vercel vercel bot commented on dff1690 Oct 4, 2023

Please sign in to comment.