Git Commit Message Convention - leegwichan/StackOverFlow_Refactoring GitHub Wiki
- Git Message๋ ํ์ฌ ์์ ํ ๋ด์ฉ์ ์ค๋ช ํด์ฃผ๋ ํ๋์ ๊ธ์ด๋ฏ๋ก ํด๋น ์ปค๋ฐ์์ ์์ ํ ๋ด์ฉ์ ๋ํ ์ดํด๊ฐ ๊ฐ๋ฅํ๋๋ก ์์ฑํจ
- Commit์ ์์ ์ ์ต์ ๋จ์๋ก ์งํํ๊ณ , ์์ ํ ๋ชจ๋ ๋ด์ฉ์ ์๋ ํ์์ ๋ง์ถฐ ์์ฑํ ๊ฒ
- ์ ๋ฐ์ ์ผ๋ก AngularJS Git Commit Message Conventions์ ๊ท์น์ ๋ฐ๋ฅธ๋ค.
- Jira์์ Smart commit์ ์ฌ์ฉํ๊ธฐ ์ํด commit message ๋งจ ์ฒ์ issue key๋ฅผ ์ถ๊ฐํจ
<issue key> <type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
- issue key : Jira์์ ์ฌ์ฉํ๋ Issue์ key๋ฅผ ๋ฃ์
- Jira์์ ์๋์ผ๋ก commit๊ณผ issue๊ฐ ์ฐ๊ฒฐ๋์ด ๋ณด๊ธฐ ์ฉ์ดํ๊ฒ ํจ
- type : ํด๋น ์ปค๋ฐ์ ํ์
์ ์ ์
- feat (๊ธฐ๋ฅ ๊ตฌํ), fix (๋ฒ๊ทธ ์์ ), docs (๋ฌธ์ํ), style (ํ์ ๋ง์ถ๊ธฐ, ์ธ๋ฏธ์ฝ๋ก ๋ฃ๊ธฐ, โฆ), refactor (๋ฆฌํฉํ ๋ง), test (๋ฏธ์ฒ ์ถ๊ฐํ์ง ๋ชปํ ํ ์คํธ ๋ฐ ํ ์คํธ ์ผ์ด์ค ์ถ๊ฐ), chore (์ ์ง ๋ณด์)
- scope : ๋ฒ์๋ฅผ ์ง์ ํ๋ ๋ชจ๋ ๊ฒ์ด ๋ ์ ์๋ค[
- ํ์ผ๋ช , ๋๋ฉ์ธ๋ช , location, browser, complie ...]()
- subject : ํ์ฌ ์์ ์ ๊ฐ๋ตํ ํ์ค๋ก ์์ฝ
- body : ๋ณ๊ฒฝ์ ๋ํ ๋๊ธฐ์ ๋ํด ์์ฑ, ์ด์ ๊ณผ ๋ฌ๋ผ์ง ์ ์์ฑ
- footer : ์ฃผ์ ๋ณ๊ฒฝ ์ฌํญ, ...