-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4a5f41d
commit fbea0aa
Showing
8 changed files
with
34 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "🔄 Running commit-msg.sh hook..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "🔄 Running post-checkout.sh hook..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "🔄 Running post-merge.sh hook..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "🔄 Running post-rebase.sh hook..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "🔄 Running post-rewrite.sh hook..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/bash | ||
echo "🔄 Running pre-rebase.sh hook..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"pre-commit": "#!/bin/bash\necho \"🔄 Running pre-commit hook...\"\n# Formatea el código Go\ngo fmt .\n# Verifica estilo de código\ngolint .\n# Realiza chequeos estáticos en el código\ngo vet .\n# Ejecuta las pruebas\ngo test .", | ||
"post-commit": "#!/bin/bash\necho \"🔄 Running post-commit hook...\"", | ||
"commit-msg": "", | ||
"pre-rebase": "", | ||
"post-rebase": "", | ||
"post-checkout": "", | ||
"post-merge": "", | ||
"post-rewrite": "", | ||
"pre-push": "#!/bin/bash\necho \"🔄 Running pre-push hook...\"\n# Verifica si el código está correctamente formateado\ngo fmt ./...\n# Realiza chequeos estáticos en el código\ngolint ./...\n# Realiza análisis estático de posibles errores\ngo vet ./...\n# Ejecuta las pruebas\ngo test ./...\nif [ $? -ne 0 ]; then\n echo \"❌ Las pruebas fallaron. Por favor, revisa los errores antes de hacer push.\"\n exit 1\nfi" | ||
} |