Skip to content

Commit 5f8db7d

Browse files
committed
feat: add pre-commit hook configuration
This adds support for using danger directly with `.pre-commit-hooks.yaml` configuration file widely used with the python (and other) ecosystems. Signed-off-by: Adam Moss <[email protected]>
1 parent 2f2cd43 commit 5f8db7d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.pre-commit-hooks.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
- id: danger
2+
name: danger
3+
description: formalize your team etiquette
4+
language: node
5+
stages:
6+
- pre-commit
7+
entry: danger local
8+
args:
9+
- --base=main
10+
- --dangerfile=dangerfile.local.js
11+
- --staging
12+
pass_filenames: false
13+
always_run: true

0 commit comments

Comments
 (0)