Skip to content

Commit

Permalink
Implement conventional git commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed May 30, 2024
1 parent 7bd5e23 commit 9e2d7dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (o *commitOption) runE(cmd *cobra.Command, args []string) (err error) {
var gitdiff string
gitdiff, err = o.getGitDiff()

Check warning on line 57 in cmd/msg.go

View check run for this annotation

Codecov / codecov/patch

cmd/msg.go#L56-L57

Added lines #L56 - L57 were not covered by tests

payload := oneapi.NewChatPayload(fmt.Sprintf("Please write a git commit message for the following git diff:\n%s", gitdiff), "chatglm_std")
payload := oneapi.NewChatPayload(fmt.Sprintf("Please write a conventional git commit message for the following git diff:\n%s", gitdiff), "chatglm_std")

Check warning on line 59 in cmd/msg.go

View check run for this annotation

Codecov / codecov/patch

cmd/msg.go#L59

Added line #L59 was not covered by tests

var body []byte
if body, err = json.Marshal(payload); err != nil {
Expand Down

0 comments on commit 9e2d7dd

Please sign in to comment.