entity

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveConfig added in v0.5.0

func SaveConfig(configIndex, updateConfigParamInt int, updateConfigParamStr string) error

Types

type CodeFormat added in v0.4.5

type CodeFormat int

コミットメッセージの形式の列挙型

const (
	NormalFormat CodeFormat = iota
	EmojiFormat
	PrefixFormat
)

type Config

type Config struct {
	ChatGptApiKey string `json:"chatGptApiKey"`
	UseLanguage   int    `json:"UseLanguage"`
	CommitFormat  int    `json:"CommitFormat"`
	AISource      int    `json:"AISource"`
	GithubToken   string `json:"GithubToken"`
}

func ReadConfig added in v0.4.5

func ReadConfig() (Config, error)

func (*Config) Config2PbVars added in v0.4.5

func (c *Config) Config2PbVars() (pb.CodeFormatType, pb.LanguageType)

func (*Config) GptRequestLocation added in v0.5.2

func (c *Config) GptRequestLocation() GptRequestLocation

func (*Config) WithGithubToken added in v0.5.2

func (c *Config) WithGithubToken(token string) *Config

func (Config) WriteConfig added in v0.5.2

func (c Config) WriteConfig() error

type GptRequestLocation added in v0.5.0

type GptRequestLocation int

ChatGPTのAPIを叩く場所

const (
	Server GptRequestLocation = iota
	Client
	Qdrant
	Gemini
)

type Language added in v0.4.5

type Language int

コミットメッセージの言語の列挙型

const (
	EN Language = iota
	JP
)

type PullRequest added in v0.5.2

type PullRequest struct {
	Owner string
	Repo  string
	Title string
	Body  string
	Head  string
	Base  string
}

type PullRequests added in v0.5.2

type PullRequests []*PullRequest

Jump to

Keyboard shortcuts

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