mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-11 17:18:09 +02:00
Merge pull request #876 from masarakki/fix-for-ghe-private
Change repo to be private when GHE is private mode.
This commit is contained in:
commit
bd8dcf8de5
@ -169,6 +169,7 @@ func (r *GitHub) GetRepos(user *model.User) ([]*model.Repo, error) {
|
||||
|
||||
if r.Private || repo.Private {
|
||||
repo.CloneURL = *item.SSHURL
|
||||
repo.Private = true
|
||||
}
|
||||
|
||||
// if no permissions we should skip the repository
|
||||
|
Loading…
Reference in New Issue
Block a user