Skip to content

Commit 38f23ee

Browse files
author
R0n0066
committed
refactor(root): Changes on select types of commits
1 parent f8e2ee7 commit 38f23ee

File tree

5 files changed

+32
-39
lines changed

5 files changed

+32
-39
lines changed

cmd/cmd-packr.go

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/root.go

+6-5
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ var rootCmd = &cobra.Command{
4848
Short: "Generate commit message for your repo",
4949
Long: `CMF (Commit Message Formatter):
5050
Generate a formated message for your repo using common notations for:
51+
- Build & CI
52+
- Documentation
5153
- Features
52-
- Fixes
53-
- Refactoring
54-
- Updates
55-
- Tests
56-
- Docs`,
54+
- Bug fixes
55+
- Refactor
56+
- Code style
57+
- Test`,
5758
PreRun: func(cmd *cobra.Command, args []string) { promptList() },
5859
Run: func(cmd *cobra.Command, args []string) {
5960
p := parseTemplate(viper.GetString("template"))

configs/default.yaml

+10-14
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@ PROMPT:
22
- KEY: "CHANGE"
33
LABEL: "Select the type of change:"
44
OPTIONS:
5-
- VALUE: "build"
6-
DESC: "Changes that affect the build system or external dependencies (example: dep, npm)"
7-
- VALUE: "ci"
8-
DESC: "Changes to our CI configuration files and scripts (example: Drone, stack)"
9-
- VALUE: "docs"
10-
DESC: "Documentation only changes"
11-
- VALUE: "feat"
12-
DESC: "A new feature"
5+
- VALUE: "build-ci"
6+
DESC: "Changes on the build system or CI files"
7+
- VALUE: "feature"
8+
DESC: "Add new feature"
139
- VALUE: "fix"
1410
DESC: "A bug fix"
15-
- VALUE: "perf"
16-
DESC: "A code change that improves performance"
17-
- VALUE: "refactor"
18-
DESC: "A code change that neither fixes a bug nor adds a feature"
1911
- VALUE: "style"
20-
DESC: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
12+
DESC: "A code change to improve clean code"
2113
- VALUE: "test"
22-
DESC: "Adding missing tests or correcting existing tests"
14+
DESC: "Adding missing tests or correcting ones"
15+
- VALUE: "refactor"
16+
DESC: "A code change"
17+
- VALUE: "docs"
18+
DESC: "Documentation only changes"
2319
- KEY: "MODULE"
2420
LABEL: "Affected module"
2521
- KEY: "MESSAGE"

configs/jira.yaml

+10-14
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,20 @@ PROMPT:
44
- KEY: "CHANGE"
55
LABEL: "Select the type of change:"
66
OPTIONS:
7-
- VALUE: "build"
8-
DESC: "Changes that affect the build system or external dependencies (example: dep, npm)"
9-
- VALUE: "ci"
10-
DESC: "Changes to our CI configuration files and scripts (example: Drone, stack)"
11-
- VALUE: "docs"
12-
DESC: "Documentation only changes"
13-
- VALUE: "feat"
14-
DESC: "A new feature"
7+
- VALUE: "build-ci"
8+
DESC: "Changes on the build system or CI files"
9+
- VALUE: "feature"
10+
DESC: "Add new feature"
1511
- VALUE: "fix"
1612
DESC: "A bug fix"
17-
- VALUE: "perf"
18-
DESC: "A code change that improves performance"
19-
- VALUE: "refactor"
20-
DESC: "A code change that neither fixes a bug nor adds a feature"
2113
- VALUE: "style"
22-
DESC: "Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)"
14+
DESC: "A code change to improve clean code"
2315
- VALUE: "test"
24-
DESC: "Adding missing tests or correcting existing tests"
16+
DESC: "Adding missing tests or correcting ones"
17+
- VALUE: "refactor"
18+
DESC: "A code change"
19+
- VALUE: "docs"
20+
DESC: "Documentation only changes"
2521
- KEY: "MESSAGE"
2622
LABEL: "Commit message"
2723
TEMPLATE: "{{JIRA-TASK}} ({{CHANGE}}): {{MESSAGE}}"

package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "go-cmf",
3-
"version": "1.0.27",
3+
"version": "1.0.28",
44
"description": "CMF is an utility to standarize commit messages on porjects",
55
"scripts": {
66
"postinstall": "go-npm install",

0 commit comments

Comments
 (0)