mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-28 19:43:22 +00:00
Merge pull request #1873 from bradrydzewski/master
enables gogs private mode [ci skip]
This commit is contained in:
@@ -138,6 +138,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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user