text git-consistent sample 04 issue by branch name
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text git-consistent sample 04 issue by branch name相关的知识,希望对你有一定的参考价值。
# This is [git-consistent](https://github.com/isuke/git-consistent) sample.
## example commmits
##### if current branch name is 'issue123_foobar'.
```
feat: implement hoge
https://github.com/you/repository/issues/123
This is amazing commit.
```
```
feat: implement hoge
https://github.com/you/repository/issues/123
```
##### if current branch name is 'foobar'.
```
feat: implement hoge
This is amazing commit.
```
type:
type: enum
required: true
description: 'commit type'
values:
-
name: feat
description: 'when implementing function'
-
name: fix
description: 'when fixing a bug'
-
name: refactor
description: 'when refactoring'
-
name: docs
description: 'when writing docs'
-
name: test
description: 'when adding tests'
-
name: chore
description: "when change other that don't modify code or test files"
-
name: remove
description: 'when removing function'
-
name: perf
description: 'when improving performance'
-
name: ci
description: 'when fixing the CI build'
-
name: sec
description: 'when dealing with security'
-
name: up
description: 'when upgrading dependencies'
-
name: down
description: 'when downgrading dependencies'
-
name: tada
description: 'when celebrating'
-
name: revert
description: 'when reverts a previous commit'
subject:
type: string
required: true
description: 'The subject contains succinct description of the change'
rules:
firstLatter: lower
dotAtEnd: false
ascii: false
issueLink:
type: branch
required: false
description: 'Github issue link'
regExp: 'issue([0-9]+)'
prefix: 'https://github.com/you/repository/issues/'
suffix: "\n"
body:
type: text
default: ''
required: false
description: 'The body contains details of the change'
rules:
firstLatter: upper
dotAtEnd: true
ascii: false
<type> <subject>
<issueLink><body>
以上是关于text git-consistent sample 04 issue by branch name的主要内容,如果未能解决你的问题,请参考以下文章