Skip to content

Commit

Permalink
just require reponame and pr number for adhoc mode instead of reponam…
Browse files Browse the repository at this point in the history
…e, root, revision (#748)
  • Loading branch information
smonero authored Apr 19, 2024
1 parent 8dc95e2 commit d6d045d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 4 additions & 6 deletions server/config/raw/global_cfg.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

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

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

type GithubTeam struct {
Expand Down

0 comments on commit d6d045d

Please sign in to comment.