Skip to content

Commit

Permalink
add revision to globalCfg for adhoc mode (#742)
Browse files Browse the repository at this point in the history
I realized that we could use the revision as well when we do things like
use the root config builder etc
  • Loading branch information
smonero authored Apr 1, 2024
1 parent a3ae577 commit db9a213
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions server/config/raw/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,16 @@ type GlobalCfg struct {
}

type AdhocMode struct {
Repo string `yaml:"repo" json:"repo"`
Root string `yaml:"root" json:"root"`
Repo string `yaml:"repo" json:"repo"`
Root string `yaml:"root" json:"root"`
Revision string `yaml:"revision" json:"revision"`
}

func (t AdhocMode) ToValid() valid.AdhocMode {
return valid.AdhocMode{
Repo: t.Repo,
Root: t.Root,
Repo: t.Repo,
Root: t.Root,
Revision: t.Revision,
}
}

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

type AdhocMode struct {
Repo string
Root string
Repo string
Root string
Revision string
}

type GithubTeam struct {
Expand Down

0 comments on commit db9a213

Please sign in to comment.