Skip to content

Commit

Permalink
change to key path not key (#757)
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero authored May 17, 2024
1 parent ff5fcfb commit 0afdbfd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions server/config/raw/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ type GlobalCfg struct {
}

type ExtraGithubRateLimit struct {
GHSlug string `yaml:"gh_slug" json:"gh_slug"`
GHAppID int `yaml:"gh_app_id" json:"gh_app_id"`
GHAppKey string `yaml:"gh_app_key" json:"gh_app_key"`
GHSlug string `yaml:"gh_slug" json:"gh_slug"`
GHAppID int `yaml:"gh_app_id" json:"gh_app_id"`
GHAppKeyPath string `yaml:"gh_app_key_path" json:"gh_app_key_path"`
}

func (t ExtraGithubRateLimit) ToValid() valid.ExtraGithubRateLimit {
return valid.ExtraGithubRateLimit{
GHSlug: t.GHSlug,
GHAppID: t.GHAppID,
GHAppKey: t.GHAppKey,
GHSlug: t.GHSlug,
GHAppID: t.GHAppID,
GHAppKeyPath: t.GHAppKeyPath,
}
}

Expand Down
6 changes: 3 additions & 3 deletions server/config/valid/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ type GlobalCfg struct {

// This is here for using an extra github app
type ExtraGithubRateLimit struct {
GHSlug string
GHAppID int // note that this is also known as the "integration ID"
GHAppKey string
GHSlug string
GHAppID int // note that this is also known as the "integration ID"
GHAppKeyPath string
}

type AdhocMode struct {
Expand Down

0 comments on commit 0afdbfd

Please sign in to comment.