Skip to content

Commit

Permalink
impr(config): change initial type of commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamontat Chantrachirathumrong committed Feb 6, 2019
1 parent cbd5000 commit ebf6b87
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitgo/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Gitgo (v3.0.1)
# Gitgo (v3.1.1)

This is a configuration file for gitgo repository with hosting on https://github.com/kamontat/gitgo/tree/version/3.x.x

Expand All @@ -8,7 +8,7 @@

### Datetime

Someone create this configuration on 'Wed Feb 6 06:46:58 UTC 2019'
Someone create this configuration on 'Wed Feb 6 17:37:34 UTC 2019'

### Thank you
Thank you for using this command to manage your project :)
2 changes: 1 addition & 1 deletion .gitgo/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ branch:
description:
require: true
issue:
require: true
require: false
hashtag: false
20 changes: 16 additions & 4 deletions .gitgo/list.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
version: 3
commits:
- type: empty
value: Update this commit header
- type: perf
value: A code change that improves performance.
- type: doc
value: Documenting source code / user manual.
- type: test
value: Adding missing tests or correcting existing tests.
- type: build
value: Changes that affect the build system or external dependencies.
- type: custom
value: this is a custom commit header
branches:
- type: empty
value: Update this branch header
- type: refac
value: A code change that neither fixes a bug nor adds a feature.
- type: test
value: Adding missing tests or correcting existing tests.
- type: custom
value: this is a custom branch header
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ var repo *model.Repo
var debug bool
var verbose bool

var version = "3.1.0"
var version = "3.1.1"

// rootCmd represents the base command when called without any subcommands.
var rootCmd = &cobra.Command{
Expand All @@ -59,6 +59,7 @@ And the problem I got is I forget which emoji is represent what.
And hard to generate changelog file.
So I think 'short key text' is the solution of situation.
3.1.1 -> Change default and local configuration list
3.1.0 -> Add --tag to changelog generator
3.0.1 -> Add README file to local config
3.0.0 -> Change commit format and refactor code
Expand Down
4 changes: 3 additions & 1 deletion model/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ commits:
value: Improving user experience / usability / reliablity.
- type: fix
value: Fixing a bug.
- type: refactor
- type: refac
value: A code change that neither fixes a bug nor adds a feature.
- type: chore
value: Other changes that don't modify src or test files.
Expand Down Expand Up @@ -85,6 +85,8 @@ commits:
- type: custom
value: this is a custom commit header
branches:
- type: refac
value: A code change that neither fixes a bug nor adds a feature.
- type: test
value: Adding missing tests or correcting existing tests.
- type: custom
Expand Down
4 changes: 2 additions & 2 deletions model/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ func TestConfig(t *testing.T) {
})

Convey("Then it should contain some default commit list", func() {
So(g, ShouldContainSubstring, "feature")
So(g, ShouldContainSubstring, "improve")
So(g, ShouldContainSubstring, "feat")
So(g, ShouldContainSubstring, "impr")
So(g, ShouldContainSubstring, "fix")
})
})
Expand Down

0 comments on commit ebf6b87

Please sign in to comment.