Skip to content

Commit

Permalink
Add config for custom messages
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Jul 24, 2023
1 parent 16ac6e3 commit 0a5e5ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ type issuectlConfig struct {
Profiles map[ProfileName]*Profile `yaml:"profiles,omitempty"`
Backends map[BackendConfigName]*BackendConfig `yaml:"backends,omitempty"`
GitUsers map[GitUserName]*GitUser `yaml:"gitUsers,omitempty"`
Config TextConfig `yaml:"config,omitempty"`

_persistenceMode string `yaml:"-"`
}
Expand Down
6 changes: 6 additions & 0 deletions pkg/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,3 +85,9 @@ type IssueConfig struct {
Dir string `yaml:"dir"`
Profile ProfileName `yaml:"profile"`
}

type TextConfig struct {
StartMessage string `yaml:"startMessage"`
CloseMessage string `yaml:"closeMessage"`
OpenPRMessage string `yaml:"openPRMessage"`
}

0 comments on commit 0a5e5ed

Please sign in to comment.