Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@

echo "Running pre-commit..."

BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)

if echo "$BRANCH_NAME" | grep -qE '^(feature|bugfix|release|hotfix)\/[a-z0-9-]+$'; then
echo "✅ Valid branch name: $BRANCH_NAME"
else
echo "🚫 The branch name '$BRANCH_NAME' does not follow the Gitflow standard."
echo "Valid example: feature/new-functionality"
exit 1
fi

# shellcheck disable=SC2164
cd app

Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ The `infrastructure` module manages the application's external communication, su

**Important**: The `infrastructure` module **must not contain business logic**.

### **shared**

The `shared` module is used to share common functionality/utilities.


## 2. Steps to Run the Project

### 2.1. Starting the Project in Development Mode
Expand Down
5 changes: 5 additions & 0 deletions README.pt-br.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ O módulo `infrastructure` gerencia a comunicação externa da aplicação, como

**Importante**: O módulo `infrastructure` **não deve conter regras de negócio**.

### **shared**

O módulo `shared` é usado para compartilhar funcionalidades/utilitários comuns.


## 2. Passos para Rodar o Projeto

### 2.1. Iniciando o Projeto em Modo Desenvolvimento
Expand Down
Loading