2024-02-14 23:03:30 +03:00
|
|
|
package configcli
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
PullRequestTitle string `json:"pull_request_title" yaml:"pull_request_title"`
|
|
|
|
PullRequestBody string `json:"pull_request_body" yaml:"pull_request_body"`
|
|
|
|
Branches []string `json:"branches" yaml:"branches"`
|
|
|
|
Source *Source `json:"source" yaml:"source"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Source struct {
|
|
|
|
TypeGit string `json:"type" yaml:"type"`
|
|
|
|
Token string `json:"token" yaml:"token"`
|
|
|
|
APIURL string `json:"apiurl" yaml:"apiurl"`
|
|
|
|
Repository string `json:"repository" yaml:"repository"`
|
2024-03-15 23:12:39 +03:00
|
|
|
Owner string `json:"owner" yaml:"owner"`
|
2024-02-14 23:03:30 +03:00
|
|
|
}
|
2024-03-15 21:18:58 +03:00
|
|
|
|
|
|
|
func NewConfig() *Config {
|
|
|
|
return &Config{
|
|
|
|
Source: &Source{},
|
|
|
|
}
|
|
|
|
}
|