Skip to content

Commit

Permalink
change to just prnum
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero committed Apr 19, 2024
1 parent 7faed46 commit 390f43f
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"`
Revision string `yaml:"revision" json:"revision"`
Branch string `yaml:"branch" json:"branch"`
Repo string `yaml:"repo" json:"repo"`
PRNum int64 `yaml:"pr_num" json:"pr_num"`
}

func (t AdhocMode) ToValid() valid.AdhocMode {
return valid.AdhocMode{
Repo: t.Repo,
Revision: t.Revision,
Branch: t.Branch,
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
Revision string
Branch string
Repo string
PRNum int64
}

type GithubTeam struct {
Expand Down

0 comments on commit 390f43f

Please sign in to comment.