https://github.com/andrewmaksimchuk/hooks
https://github.com/andrewmaksimchuk/hooks
git javascript nodejs
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewmaksimchuk/hooks
- Owner: AndrewMaksimchuk
- Created: 2022-09-21T08:07:52.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-21T04:57:36.000Z (almost 3 years ago)
- Last Synced: 2025-03-31T00:41:15.253Z (over 1 year ago)
- Topics: git, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.js
Awesome Lists containing this project
README
#### Git
If you want use git hooks, then save in 'hooks' directory in project and
when they needed just copy to '.git/hooks' directory, like in example.
- commit-msg
```cp ./commit-msg ./.git/hooks```
#### Application
Example of usage from 'Makefile':
```
release:
# run tests before all commands, if tests faul exit with error message
git log master..dev --oneline | sort | node hooks/version.js && node hooks/tag.js
git log master..dev --oneline | sort | node hooks/changelog.js
node hooks/release.js
git checkout master
git merge dev
git push origin master && git ftp push
```