(ctx *snap.Context, err error)
| 2883 | } |
| 2884 | |
| 2885 | func reportError(ctx *snap.Context, err error) error { |
| 2886 | if err == nil { |
| 2887 | return nil |
| 2888 | } |
| 2889 | fmt.Fprintln(ctx.Stderr(), err.Error()) |
| 2890 | return err |
| 2891 | } |
| 2892 | |
| 2893 | func generateCommitMessage(parent context.Context, apiKey string, diff string, status string, truncated bool) (string, error) { |
| 2894 | client := openai.NewClient(option.WithAPIKey(apiKey)) |
no outgoing calls
no test coverage detected