From ff5fcfb96e12c36b28c3105425062a72195e5416 Mon Sep 17 00:00:00 2001 From: Shawna Monero <66325812+smonero@users.noreply.github.com> Date: Thu, 16 May 2024 10:03:26 -0700 Subject: [PATCH] use int instead of string for app id since its a number and we need to read it in correctly in the env var (#755) --- server/config/raw/global_cfg.go | 2 +- server/config/valid/global_cfg.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/config/raw/global_cfg.go b/server/config/raw/global_cfg.go index d32db5ea4..40dffefd6 100644 --- a/server/config/raw/global_cfg.go +++ b/server/config/raw/global_cfg.go @@ -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"` } diff --git a/server/config/valid/global_cfg.go b/server/config/valid/global_cfg.go index 67426b01a..ef30b17eb 100644 --- a/server/config/valid/global_cfg.go +++ b/server/config/valid/global_cfg.go @@ -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 }