Skip to content

Commit

Permalink
use int instead of string for app id since its a number and we need t…
Browse files Browse the repository at this point in the history
…o read it in correctly in the env var (#755)
  • Loading branch information
smonero authored May 16, 2024
1 parent 6df4247 commit ff5fcfb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/config/raw/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type GlobalCfg struct {

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

Expand Down
3 changes: 2 additions & 1 deletion server/config/valid/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,10 @@ type GlobalCfg struct {
ExtraGithubRateLimit ExtraGithubRateLimit
}

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

Expand Down

0 comments on commit ff5fcfb

Please sign in to comment.