Skip to content

Commit

Permalink
remove extragithubratelimit stuff (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero authored Dec 2, 2024
1 parent 5368355 commit b5f74f6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 185 deletions.
22 changes: 0 additions & 22 deletions server/config/raw/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,6 @@ type GlobalCfg struct {
RevisionSetter RevisionSetter `yaml:"revision_setter" json:"revision_setter"`
Admin Admin `yaml:"admin" json:"admin"`
AdhocMode AdhocMode `yaml:"adhoc_mode" json:"adhoc_mode"`
ExtraGithubRateLimit ExtraGithubRateLimit `yaml:"extra_github_rate_limit" json:"extra_github_rate_limit"`
}

type ExtraGithubRateLimit struct {
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"`
GHWebHookSecret string `yaml:"gh_webhook_secret" json:"gh_webhook_secret"`
}

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

func (t ExtraGithubRateLimit) Validate() error {
return nil
}

type AdhocMode struct {
Expand Down Expand Up @@ -236,7 +215,6 @@ func (g GlobalCfg) ToValid(defaultCfg valid.GlobalCfg) valid.GlobalCfg {
Admin: g.Admin.ToValid(),
RevisionSetter: g.RevisionSetter.ToValid(),
AdhocMode: g.AdhocMode.ToValid(),
ExtraGithubRateLimit: g.ExtraGithubRateLimit.ToValid(),
}
}

Expand Down
9 changes: 0 additions & 9 deletions server/config/valid/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,6 @@ type GlobalCfg struct {
RevisionSetter RevisionSetter
Admin Admin
AdhocMode AdhocMode
ExtraGithubRateLimit ExtraGithubRateLimit
}

// 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"
GHAppKeyPath string
GHWebHookSecret string
}

type AdhocMode struct {
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit b5f74f6

Please sign in to comment.