Skip to content

Commit

Permalink
refactor: fixing typos and adding build prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaueSabinoSRV17 committed Jul 5, 2023
1 parent f99c3cb commit a370460
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion cmd/commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var commitCmd = &cobra.Command{
repo := repo.GetRepository(".")
var message string

unstagedFiles := use_cases.GetUnstaggedFiles(repo)
unstagedFiles := staging.GetUnstaggedFiles(repo)
if len(unstagedFiles) > 0 {
filesToStage := staging.AskWhatFilesToAddForStaging(unstagedFiles)
Expand Down
6 changes: 3 additions & 3 deletions use_cases/conventional_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func GetUnstaggedFiles(worktree *git.Worktree) []string {
func AskWhatFilesToAddForStaging(files []string) []string {
var filesToAdd []string
prompt := &survey.MultiSelect{
Message: "Chose the files to stage",
Message: "Chose the files to stage:",
Options: files,
}
err := survey.AskOne(prompt, &filesToAdd)
Expand All @@ -70,7 +70,7 @@ func AskCommitPrefix() string {
err := survey.AskOne(
&survey.Select{
Message: "Select a Prefix for the commit:",
Options: []string{"chore", "feat", "fix", "refactor", "tests", "docs"},
Options: []string{"chore", "feat", "fix", "refactor", "tests", "docs", "build"},
},
&prefix,
)
Expand All @@ -88,7 +88,7 @@ func ResolveCommitMessage() string {
var message string
err := survey.AskOne(
&survey.Input{
Message: "What did you do? (Commit Message)",
Message: "What did you do? (Commit Message):",
},
&message,
)
Expand Down

0 comments on commit a370460

Please sign in to comment.