diff --git a/.gitmessage b/.gitmessage index 3b11da84..e571f155 100644 --- a/.gitmessage +++ b/.gitmessage @@ -1,13 +1,11 @@ -# type('(' scope ')')? '!'? ':' description -# e.g. -# No more than 50 chars. #### 50 chars is here: # +# type(scope): description (#issue) -# body: optional +# body # Wrap at 72 chars. ################################## which is here: # # -# footer: optional +# footer # Wrap at 72 chars. ################################## which is here: # -# +# ######################################################################## # # ## Help ## @@ -15,33 +13,38 @@ # ## type: must ## # feat: new feature # fix: bug fix or issue resolution -# docs: change documentations -# style: change in code style +# docs: documentation changes +# style: code style changes # refactor: refactoring -# pref: performance improvement -# test: adding or changing test +# perf: performance improvement +# test: adding or changing tests # build: build-related/version/dependency # ci: CI-related changes # chore: internal/minor changes # revert: revert commit -# fix, refactor, style and chore are lower priority +# * fix, refactor, style and chore are lower priority # # ## scope: optional ## -# indicates the scope +# Indicates the scope +# e.g. # - parser # - compiler # - els # - REPL -# - lints +# - linter # # ## !: optional ## -# destructive change +# Destructive change # # ## description: must ## -# summary of the commit +# Summary of the commit +# No more than 50 chars +# +# ## issue: optional ## +# Related issue/PR number # # ## body: optional ## -# indicates the details of the commit +# Indicates the details of the commit # -# ## footer: optical ## -# represents information related to the commit \ No newline at end of file +# ## footer: optional ## +# Represents information related to the commit diff --git a/doc/EN/dev_guide/commit_message.md b/doc/EN/dev_guide/commit_message.md index 94844629..f306c233 100644 --- a/doc/EN/dev_guide/commit_message.md +++ b/doc/EN/dev_guide/commit_message.md @@ -49,7 +49,7 @@ The meaning of each part is as follows. * `compiler` * `els` * `REPL` - * `lint` + * `linter` * The `!` mark indicates that the commit has destructive changes. If this mark is set, the reason for the destructive change must be written. Destructive changes include language specification changes, compiler API changes, and so on. @@ -116,16 +116,14 @@ git config commit.template .gitmessage This will use this commit message template only in the Erg repository ```txt -# type('(' scope ')')? '!'? ':' description -# e.g. -# No more than 50 chars. #### 50 chars is here: # +# type(scope): description (#issue) -# body: optional +# body # Wrap at 72 chars. ################################## which is here: # # -# footer: optional +# footer # Wrap at 72 chars. ################################## which is here: # -# +# ######################################################################## # # ## Help ## @@ -133,34 +131,39 @@ This will use this commit message template only in the Erg repository # ## type: must ## # feat: new feature # fix: bug fix or issue resolution -# docs: change documentations -# style: change in code style +# docs: documentation changes +# style: code style changes # refactor: refactoring -# pref: performance improvement -# test: adding or changing test +# perf: performance improvement +# test: adding or changing tests # build: build-related/version/dependency # ci: CI-related changes # chore: internal/minor changes # revert: revert commit -# fix, refactor, style and chore are lower priority +# * fix, refactor, style and chore are lower priority # # ## scope: optional ## -# indicates the scope +# Indicates the scope +# e.g. # - parser # - compiler # - els # - REPL -# - lints +# - linter # # ## !: optional ## -# destructive change +# Destructive change # # ## description: must ## -# summary of the commit +# Summary of the commit +# No more than 50 chars +# +# ## issue: optional ## +# Related issue/PR number # # ## body: optional ## -# indicates the details of the commit +# Indicates the details of the commit # -# ## footer: optical ## -# represents information related to the commit -``` \ No newline at end of file +# ## footer: optional ## +# Represents information related to the commit +``` diff --git a/doc/JA/dev_guide/commit_message.md b/doc/JA/dev_guide/commit_message.md index 99a8b635..94a4a992 100644 --- a/doc/JA/dev_guide/commit_message.md +++ b/doc/JA/dev_guide/commit_message.md @@ -53,7 +53,7 @@ commit ::= type ('(' scope ')')? '!'? ':' description ('(' '#' issue ')')? body? * `compiler` * `els` * `REPL` - * `lint` + * `linter` * `!`マークはコミットが破壊的な変更であることを示します。このマークがついている場合、破壊的変更の理由を書く必要があります。破壊的変更は、言語の仕様変更やコンパイラAPIの変更などが該当します。 @@ -117,16 +117,14 @@ git config commit.template .gitmessage これによりErgのリポジトリ内でのみこのコミットメッセージのテンプレートが利用されます ```txt -# type('(' scope ')')? '!'? ':' description -# e.g. -# No more than 50 chars. #### 50 chars is here: # +# type(scope): description (#issue) -# body: optional +# body # Wrap at 72 chars. ################################## which is here: # # -# footer: optional +# footer # Wrap at 72 chars. ################################## which is here: # -# +# ######################################################################## # # ## Help ## @@ -134,34 +132,39 @@ git config commit.template .gitmessage # ## type: must ## # feat: new feature # fix: bug fix or issue resolution -# docs: change documentations -# style: change in code style +# docs: documentation changes +# style: code style changes # refactor: refactoring -# pref: performance improvement -# test: adding or changing test +# perf: performance improvement +# test: adding or changing tests # build: build-related/version/dependency # ci: CI-related changes # chore: internal/minor changes # revert: revert commit -# fix, refactor, style and chore are lower priority +# * fix, refactor, style and chore are lower priority # # ## scope: optional ## -# indicates the scope +# Indicates the scope +# e.g. # - parser # - compiler # - els # - REPL -# - lints +# - linter # # ## !: optional ## -# destructive change +# Destructive change # # ## description: must ## -# summary of the commit +# Summary of the commit +# No more than 50 chars +# +# ## issue: optional ## +# Related issue/PR number # # ## body: optional ## -# indicates the details of the commit +# Indicates the details of the commit # -# ## footer: optical ## -# represents information related to the commit -``` \ No newline at end of file +# ## footer: optional ## +# Represents information related to the commit +```