Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .githooks/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
# Git Hooks

Hooks in this directory check your commit message, and enforce standards.
Hooks in this directory check your commit message, and enforce versioning standards.

To use these hooks in your local workflow, run:

`git config core.hooksPath .githooks/hooks`

Read more about [customizing git hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks)

## Data versioning standards

If your commit does not have versioning instructions, you will get an error and the message:
`"Aborting commit. Your commit message is missing versioning instructions.
Please add [no version bump], [patch], [minor], or [major] to your commit message"`

### Guide to using the version tags:
`[no version bump]` - Code changes that are not accompanied by data or file structure changes
`[patch]` - Minor data corrections, or more significant code changes
`[minor]` - Data additions or changes (the most commonly used tag)
`[major]` - File structure or data shape changes, addition of new data types