mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
enable gogs private mode
This commit is contained in:
parent
58682aa6a7
commit
658f999fcf
1 changed files with 3 additions and 0 deletions
|
@ -133,6 +133,9 @@ func (c *client) Repo(u *model.User, owner, name string) (*model.Repo, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
if c.PrivateMode {
|
||||||
|
repo.Private = true
|
||||||
|
}
|
||||||
return toRepo(repo), nil
|
return toRepo(repo), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue