Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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).

NotificationsYou must be signed in to change notification settings

Habibullah339/devops-git-workflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

1- Create a new respository and clone it

2- Create a new branch usinggit branch feature/add-login

3- In branchfeature/add-login created a demo file namedapp.js and added some random content in it

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

5- Pushed features branch to remote github repo

6- Created a pull request fromfeature/add-login branch to repo

7- Accepted the Pull request.

8- Implemented post-commit hook to send webhook message

9- Setup webhook to observe pull and push requests.

Final Webhook Message

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp