You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+104Lines changed: 104 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ CMF is a simple to use utility to standarize commit messages on projects.
6
6
7
7
Install via npm, just do `$ npm install -g go-cmf`
8
8
9
+
Or from Go `go install github.com/walmartdigital/commit-message-formatter`
10
+
9
11
Once installed, go to your project an run `$ cmf` after add your files to your stage area.
10
12
11
13
## Flows
@@ -27,3 +29,105 @@ Running `$ cmf jira` you get jira flow, this time you will be prompt for:
27
29
- Jira task ID
28
30
- Type of change you made to your code
29
31
- Commit message or description of your change
32
+
33
+
> If you want to do jira as a defualt flow just create a `.cmf.yaml`in the root of your project:
34
+
35
+
```
36
+
DEFAULT: jira
37
+
```
38
+
39
+
---
40
+
41
+
## Configurations
42
+
43
+
It is possible to config CMF as you like, you can change **custom flows, templates or assign default flows**. You can do this using a local file on the root of your porject or setting as global preferences with a file on your Home directory called `.cmf.yaml`.
44
+
45
+
### DEFAULT
46
+
47
+
Set a flow as default:
48
+
49
+
```
50
+
DEFAULT: jira
51
+
```
52
+
53
+
### TEMPLATE
54
+
55
+
Set a template string for commit messages.
56
+
57
+
#### Default flow
58
+
59
+
Default template `{{CHANGE}}({{MODULE}}): {{MESSAGE}}`. You can use this variables:
60
+
61
+
- CHANGE _type of change: feature, fix, update_
62
+
- MODULE _module affected_
63
+
- MESSAGE _commit message_
64
+
65
+
```
66
+
TEMPLATE: "{{CHANGE}}({{MODULE}}): {{MESSAGE}}"
67
+
```
68
+
69
+
#### Jira flow
70
+
71
+
Default template `{{JIRA-TASK}} ({{CHANGE}}): {{MESSAGE}}`. You can use this variables:
0 commit comments