mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-23 10:21:00 +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 {
|
||||
return nil, err
|
||||
}
|
||||
if c.PrivateMode {
|
||||
repo.Private = true
|
||||
}
|
||||
return toRepo(repo), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue