Skip to content

Commit d7efd6f

Browse files
committed
feat(template): update default template
1 parent f354086 commit d7efd6f

File tree

3 files changed

+10
-13
lines changed

3 files changed

+10
-13
lines changed

internal/config/default.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ items:
1515
- name: docs
1616
desc: "Documentation only changes"
1717
- name: test
18-
desc: "Adding missing tests"
19-
- name: WIP
20-
desc: "Work in progress"
18+
desc: "Adding missing or correcting existing tests"
2119
- name: chore
2220
desc: "Changes to the build process or auxiliary tools and\n libraries such as documentation generation"
2321
- name: style
@@ -27,18 +25,18 @@ items:
2725
- name: perf
2826
desc: "A code change that improves performance"
2927
- name: revert
30-
desc: "Revert to a commit"
28+
desc: "Reverts a previous commit"
3129
- name: scope
32-
desc: "Scope. Could be anything specifying place of the commit change:"
30+
desc: "What is the scope of this change? (class or file name):"
3331
type: input
3432
- name: subject
35-
desc: "Subject. Concise description of the changes. Imperative, lower case and no final dot:"
33+
desc: "Write a short and imperative summary of the code change (lower case and no period):"
3634
type: input
3735
required: true
3836
- name: body
39-
desc: "Body. Motivation for the change and contrast this with previous behavior:"
37+
desc: "Provide additional contextual information about the code changes:"
4038
type: textarea
4139
- name: footer
42-
desc: "Footer. Information about Breaking Changes and reference issues that this commit closes:"
40+
desc: "Information about Breaking Changes and reference issues that this commit closes:"
4341
type: textarea
4442
format: "{{.type}}{{with .scope}}({{.}}){{end}}: {{.subject}}{{with .body}}\n\n{{.}}{{end}}{{with .footer}}\n\n{{.}}{{end}}"`

internal/render/render.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ import (
55
)
66

77
const (
8-
TypeSelect = "select"
9-
TypeInput = "input"
10-
TypeTextArea = "textarea"
11-
DescMaxLength = 50
8+
TypeSelect = "select"
9+
TypeInput = "input"
10+
TypeTextArea = "textarea"
1211
)
1312

1413
// -----------------------------------------

internal/render/template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func (t *Template) createInputItem(name, label string, required bool, desc ...st
158158
func (t *Template) createTextAreaItem(name, label string, required bool, desc ...string) *huh.Text {
159159
// Todo CharLimit??
160160
text := huh.NewText().Key(name).
161-
Placeholder("Just put it in the mailbox please").
161+
Placeholder("Just put it in the textarea please").
162162
Title(label).
163163
Lines(5)
164164

0 commit comments

Comments
 (0)