νλ‘μ νΈ κ΄λ¦¬μ νμ μ ν¨μ¨μ±μ λμ΄κΈ° μν΄ Git μ»€λ° λ©μμ§λ₯Ό 체κ³μ μΌλ‘ μμ±νλ λ°©λ²μ μκ°ν©λλ€. μ»€λ° λ©μμ§ μμ±μ λ¨μν μμ λ΄μ©μ κΈ°λ‘νλ κ²μ΄ μλλΌ, νμλ€κ³Ό μμ λ΄μμ 곡μ νκ³ λ³κ²½ μ¬νμ μΆμ ν μ μλλ‘ λλ μ€μν κ³Όμ μ λλ€.
<type>(<scope>): <subject>
<body>
<footer>
type: λ³κ²½ μ¬νμ μ’ λ₯λ₯Ό λνλ λλ€. (μ: feat, fix, docs λ±)
scope: (μ ν) λ³κ²½ μ¬νμ λ²μλ₯Ό λͺ μν©λλ€. (μ: auth, api)
subject: μ»€λ° λ΄μ©μ κ°λ΅ν μμ½ν©λλ€. λͺ λ ΉνμΌλ‘ μμ±ν©λλ€.
body: (μ ν) λ³κ²½ μ¬νμ ꡬ체μ μΈ λ΄μ©μ μ€λͺ ν©λλ€.
footer: (μ ν) μ΄μ λ²νΈλ κ΄λ ¨ μ 보λ₯Ό μΆκ°ν©λλ€.
| Type | μ€λͺ |
|---|---|
feat | μλ‘μ΄ κΈ°λ₯ μΆκ° |
fix | λ²κ·Έ μμ |
docs | λ¬Έμ λ³κ²½ (μ: README μμ ) |
style | μ½λ μ€νμΌ λ³κ²½ (μ: ν¬λ§€ν , μΈλ―Έμ½λ‘ μΆκ°/μ κ±°, 곡백 μ‘°μ λ±) |
refactor | 리ν©ν λ§ (κΈ°λ₯ λ³κ²½ μμ) |
test | ν μ€νΈ μ½λ μΆκ° λλ μμ |
chore | λΉλ νλ‘μΈμ€, ν¨ν€μ§ λ§€λμ μ€μ λ± κ°λ° νκ²½ λ³κ²½ |
feat(auth): add login feature with JWT
- Implement user authentication with JWT tokens
- Add token verification middleware in backend
- Create login form on the frontend
fix(api): resolve 500 error on user fetch
- Fix incorrect query parameters causing server errors
- Update API documentation for the user endpoint
docs: update contributing guidelines
- Add a section for Git commit message format
- Update example commands for environment setup
style: format code with Prettier
- Apply Prettier to all JavaScript files
- Update ESLint configuration for better compatibility
refactor(auth): simplify login validation logic
- Replace nested if-else statements with guard clauses
- Add a utility function for input validation
npm install -g commitizen
git cz
체κ³μ μΈ μ»€λ° λ©μμ§λ νλ‘μ νΈμ νμ§μ λμ΄κ³ , νμ ν¨μ¨μ±μ μ¦λμν€λ λ° μ€μν μν μ ν©λλ€. μμμ μκ°ν λ°©λ²κ³Ό νμμ μ°Έκ³ ν΄, μΌκ΄λ λ©μμ§λ₯Ό μμ±νλ μ΅κ΄μ κΈΈλ¬λ³΄μΈμ! π