- Notifications
You must be signed in to change notification settings - Fork0
GitHub repository demonstrating a comprehensive Git workflow.It showcases modern DevOps practices for efficient and quality-driven development, and contains sending webhook notification on pull, push and merge to a webhook URL(pre-commit and post-commit).
Habibullah339/devops-git-workflow
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
4- Created apre-commit
file in directory.git/hooks/pre-commit
and added the following rules like "NO trailing whitespace allowed" with this script
#!/bin/bash if git diff --cached --check; then : else echo "ERROR: Trailing whitespace detected. Please remove it before committing." exit 1 fi if git diff --cached | grep -E '^(+|-).*console\.log' -q; then echo "ERROR: Debugging statements (e.g., console.log) detected. Please remove them before committing." exit 1 fi exit 0
About
GitHub repository demonstrating a comprehensive Git workflow.It showcases modern DevOps practices for efficient and quality-driven development, and contains sending webhook notification on pull, push and merge to a webhook URL(pre-commit and post-commit).
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.