Skip to content

Commit

Permalink
chore: update commit hooks
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Andrews <[email protected]>
  • Loading branch information
ABC2015 committed Dec 6, 2024
1 parent cc6f11e commit 0da037a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions local_dev_tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,17 @@ Yes, you can modify the hook scripts (`validate_commit.dart`, `validate_commit_m

---

### **Additional Notes**
- These hooks run locally on your machine and do not affect other developers.
- Hooks ensure that most issues are caught during development, saving time and effort during code reviews and CI/CD processes.

For further assistance, feel free to contact the repository maintainers. Happy coding! 🎉


#!/bin/bash
# Automatically add Signed-off-by to commit message
#!/bin/bash

if ! grep -q "Signed-off-by:" "$1"; then
echo "Signed-off-by: $(git config user.name) <$(git config user.email)>" >> "$1"
fi

chmod +x .git/hooks/prepare-commit-msg

### **Additional Notes**
- These hooks run locally on your machine and do not affect other developers.
- Hooks ensure that most issues are caught during development, saving time and effort during code reviews and CI/CD processes.

For further assistance, feel free to contact the repository maintainers. Happy coding! 🎉

0 comments on commit 0da037a

Please sign in to comment.