diff --git a/server/config/raw/global_cfg.go b/server/config/raw/global_cfg.go index c13ac318c..90a9476b0 100644 --- a/server/config/raw/global_cfg.go +++ b/server/config/raw/global_cfg.go @@ -30,16 +30,14 @@ type GlobalCfg struct { } type AdhocMode struct { - Repo string `yaml:"repo" json:"repo"` - Root string `yaml:"root" json:"root"` - Revision string `yaml:"revision" json:"revision"` + Repo string `yaml:"repo" json:"repo"` + PRNum int `yaml:"pr_num" json:"pr_num"` } func (t AdhocMode) ToValid() valid.AdhocMode { return valid.AdhocMode{ - Repo: t.Repo, - Root: t.Root, - Revision: t.Revision, + Repo: t.Repo, + PRNum: t.PRNum, } } diff --git a/server/config/valid/global_cfg.go b/server/config/valid/global_cfg.go index 14683da8d..92aab936a 100644 --- a/server/config/valid/global_cfg.go +++ b/server/config/valid/global_cfg.go @@ -68,9 +68,8 @@ type GlobalCfg struct { } type AdhocMode struct { - Repo string - Root string - Revision string + Repo string + PRNum int } type GithubTeam struct {