prompt

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultCodeReviewPromptTemplate = `` /* 576-byte string literal not displayed */

DefaultCodeReviewPromptTemplate template for code review prompts.

View Source
const DefaultCommitStyleReviewPromptTemplate = `` /* 1095-byte string literal not displayed */

DefaultCommitStyleReviewPromptTemplate template for commit message style review prompts.

View Source
const DefaultPromptTemplate = `` /* 640-byte string literal not displayed */

DefaultPromptTemplate is used if no template is configured.

Variables

This section is empty.

Functions

func BuildCodeReviewPrompt

func BuildCodeReviewPrompt(diff string, language string, promptTemplate string) string

BuildCodeReviewPrompt builds the prompt for code review.

func BuildCommitPrompt

func BuildCommitPrompt(diff string, language string, commitType string, additionalText string, promptTemplate string) string

BuildCommitPrompt builds the prompt for commit message generation.

func BuildCommitStyleReviewPrompt

func BuildCommitStyleReviewPrompt(commitMsg string, language string, promptTemplate string) string

BuildCommitStyleReviewPrompt builds the prompt for commit message style review.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL