File tree 4 files changed +31
-19
lines changed
4 files changed +31
-19
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "boards" : [
3
+ {
4
+ "name" : " EPD" ,
5
+ "description" : " Company Solution Team Board"
6
+ },
7
+ {
8
+ "name" : " IB" ,
9
+ "description" : " Interim Billing Board"
10
+ }
11
+ ],
12
+ "branchTypes" : [
13
+ {
14
+ "type" : " FEAT" ,
15
+ "description" : " A new feature"
16
+ },
17
+ {
18
+ "type" : " FIX" ,
19
+ "description" : " A bug fix"
20
+ },
21
+ {
22
+ "type" : " DOCS" ,
23
+ "description" : " Documentation onlyf changes"
24
+ }
25
+ ]
26
+ }
Original file line number Diff line number Diff line change @@ -24,8 +24,6 @@ func (p branchType) Description() string { return p.D }
24
24
func (p branchType ) FilterValue () string { return p .T }
25
25
26
26
var (
27
- focusedStyle = lipgloss .NewStyle ().Foreground (lipgloss .Color ("#6FD0FB" ))
28
-
29
27
stepTitleStyle = lipgloss .NewStyle ().Background (lipgloss .Color ("#DA8BFF" )).Foreground (lipgloss .Color ("#000000" )).Padding (0 , 1 )
30
28
listTitleBarStyle = lipgloss .NewStyle ().Foreground (lipgloss .Color ("#000000" )).Padding (1 , 0 )
31
29
docStyle = lipgloss .NewStyle ().Margin (1 , 2 )
@@ -34,15 +32,10 @@ var (
34
32
)
35
33
36
34
type model struct {
37
- branchType string
38
- ticketIdInput textinput.Model
39
- branchNameInput textinput.Model
40
- step int
41
- placeholderBranchName string
42
- // new model
43
- branchTypeList list.Model
44
- jiraBoardList list.Model
45
-
35
+ ticketIdInput textinput.Model
36
+ branchNameInput textinput.Model
37
+ branchTypeList list.Model
38
+ jiraBoardList list.Model
46
39
selectedBranchType string
47
40
selectedJiraBoard string
48
41
shouldEnterTicketId bool
Original file line number Diff line number Diff line change 23
23
blurredButton = fmt .Sprintf ("[ %s ]" , blurredStyle .Render ("Commit" ))
24
24
)
25
25
26
- type (
27
- errMsg error
28
- )
29
-
30
26
type model struct {
31
27
focusInputIndex int
32
28
inputs []textinput.Model
Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ func CheckIfGitRepo() bool {
18
18
cmd := exec .Command ("git" , "rev-parse" , "--is-inside-work-tree" )
19
19
cmd .Stderr = os .Stderr
20
20
err := cmd .Run ()
21
- if err != nil {
22
- return false
23
- }
24
- return true
21
+ return err == nil
25
22
}
26
23
27
24
func GetStagedFiles () []string {
You can’t perform that action at this time.
0 commit comments