Skip to content

Commit

Permalink
git: run collab hooks automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecuvalo committed Nov 4, 2023
1 parent fc1a27e commit c12efd9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/post-checkout.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# To use this add to .git/hooks/post-checkout
# This will run automatically because of husky in package.json.
# Or, to ensure manually that it runs, add to .git/hooks/post-checkout
# bin/post-checkout.sh $1 $2

set -e
Expand Down
3 changes: 2 additions & 1 deletion bin/post-merge.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

# To use this add to .git/hooks/post-merge
# This will run automatically because of husky in package.json.
# Or, to ensure manually that it runs, add to .git/hooks/post-merge
# bin/post-merge.sh

set -e
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,11 @@
"prosemirror-model": "1.13.3",
"prosemirror-view": "1.18.1"
},
"husky": {
"hooks": {
"post-checkout": "./bin/post-checkout",
"post-merge": "./bin/post-merge"
}
},
"sideEffects": false
}

1 comment on commit c12efd9

@vercel
Copy link

@vercel vercel bot commented on c12efd9 Nov 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.