Skip to content

Commit 1ad5bf8

Browse files
authored
[CI] Dependabot pre-commit escosystem add cooldown; Add pre-commit hook to validate the Dependabot config (#2793)
1 parent 96128e2 commit 1ad5bf8

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ updates:
5050
pre-commit-hooks:
5151
patterns:
5252
- '*'
53+
cooldown:
54+
default-days: 7

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ repos:
8686
pass_filenames: true # <-- Crucial change: pass filenames to the script
8787
types: [file] # Ensure only regular files are passed, not directories
8888
stages: [manual]
89+
- id: validate-dependabot-yml
90+
name: Validate dependabot.yml
91+
entry: npx @bugron/validate-dependabot-yaml@0.3.3
92+
language: system
93+
files: ^\.github/dependabot\.yml$
8994
- repo: https://github.com/Lucas-C/pre-commit-hooks
9095
rev: v1.5.6
9196
hooks:

0 commit comments

Comments
 (0)