Naming Conventions - polynomeer/sidedish GitHub Wiki
Naming Conventions
Issue Convention
[BE|iOS] {μꡬμ¬ν μ λͺ© or ꡬνν κΈ°λ₯μ μ λͺ©}
Examples
- Backend Issue :
[BE] Spring Data JDBCλ₯Ό ν΅ν λ°μ΄ν°λ² μ΄μ€ μ°λ
- iOS Issue :
[iOS] Main UI ꡬν
- Common Issue :
[BE,iOS] κ³΅ν΅ λ΄μ©
Branch Convention
{branch header}/{issue number}/{short description}
-
branch header rule
- master : λ°°ν¬ κ°λ₯ν μνμ λΈλμΉ ->
team-07
,backend
,ios
- develop : κ°λ°μ μ§ννλ λΈλμΉ -> μ΄ νλ‘μ νΈμμλ
master
λΈλμΉμ λμΌνλ―λ‘ μλ΅ - feature : μλ‘μ΄ κΈ°λ₯ κ°λ° λ° λ²κ·Έ μμ μ΄ νμν λλ§λ€
develop
λΈλμΉλ‘λΆν° λΆκΈ° -> νμ§λ§develop
λμ μ μλ‘μ΄ κΈ°λ₯ κ°λ° μ κ·Έλ₯feature
μ¬μ© - hotfix :
master
(λ°°ν¬ κ°λ₯ν μν)μμ κΈ΄κΈνκ² μμ μ ν΄μΌν κ²½μ°master
λ‘λΆν° λΆκΈ° - release : μ΄λ² μΆμ λ²μ μ μ€λΉνλ λΈλμΉ, μ΄λ² νλ‘μ νΈμμλ μ¬μ© x
- master : λ°°ν¬ κ°λ₯ν μνμ λΈλμΉ ->
-
example :
feature/1/card
Commit Convention
{commit header}: {commit title} (#{issue number})
-
commit header rule
- feat : μλ‘μ΄ κΈ°λ₯μ λν 컀λ°
- fix : λ²κ·Έ μμ μ λν 컀λ°
- build : λΉλ κ΄λ ¨ νμΌ μμ μ λν 컀λ°
- chore : κ·Έ μΈ μμν μμ μ λν 컀λ°
- ci: CI κ΄λ ¨ μ€μ μμ μ λν 컀λ°
- perf: μ½λ μ±λ₯ κ°μ μ λν 컀λ°
- docs : λνλ¨ΌνΈμ μμ μ λν 컀λ°
- style : μ½λ λ¬Έλ² λλ ν¬λ§·μ λν μμ μ λν 컀λ°
- refactor : μ½λ 리ν©ν λ§μ λν 컀λ°
- test : ν μ€νΈ μ½λ μμ μ λν 컀λ°
-
example :
feat: Add Card create logic (#12)
λ³Έλ¬Έμ μ΅λν μμΈνκ² νκΈ λλ μμ΄λ‘ μμ±νλλ‘ νλ€.
References
- https://gmlwjd9405.github.io/2018/05/11/types-of-git-branch.html
- https://codingsight.com/git-branching-naming-convention-best-practices/
- https://deepsource.io/blog/git-branch-naming-conventions/
- https://hackernoon.com/git-branch-naming-convention-7-best-practices-to-follow-1c2l33g2
- https://codingsight.medium.com/git-branching-naming-convention-best-practices-a71d5603373a