remove sha and yaml global variables
This commit is contained in:
parent
6246b32569
commit
b6321a4137
2 changed files with 1 additions and 3 deletions
|
@ -29,6 +29,6 @@ type Repo struct {
|
||||||
AllowPush bool `json:"allow_push" meddler:"repo_allow_push"`
|
AllowPush bool `json:"allow_push" meddler:"repo_allow_push"`
|
||||||
AllowDeploy bool `json:"allow_deploys" meddler:"repo_allow_deploys"`
|
AllowDeploy bool `json:"allow_deploys" meddler:"repo_allow_deploys"`
|
||||||
AllowTag bool `json:"allow_tags" meddler:"repo_allow_tags"`
|
AllowTag bool `json:"allow_tags" meddler:"repo_allow_tags"`
|
||||||
Config string `json:"config_path" meddler:"repo_config_path"`
|
Config string `json:"config_file" meddler:"repo_config_path"`
|
||||||
Hash string `json:"-" meddler:"repo_hash"`
|
Hash string `json:"-" meddler:"repo_hash"`
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,8 +22,6 @@ func Config(cli *cli.Context) gin.HandlerFunc {
|
||||||
func setupConfig(c *cli.Context) *model.Config {
|
func setupConfig(c *cli.Context) *model.Config {
|
||||||
return &model.Config{
|
return &model.Config{
|
||||||
Open: c.Bool("open"),
|
Open: c.Bool("open"),
|
||||||
Yaml: c.String("yaml"),
|
|
||||||
Shasum: c.String("yaml") + ".sig",
|
|
||||||
Secret: c.String("agent-secret"),
|
Secret: c.String("agent-secret"),
|
||||||
Admins: sliceToMap(c.StringSlice("admin")),
|
Admins: sliceToMap(c.StringSlice("admin")),
|
||||||
Orgs: sliceToMap(c.StringSlice("orgs")),
|
Orgs: sliceToMap(c.StringSlice("orgs")),
|
||||||
|
|
Loading…
Reference in a new issue