Change repo to be private when GHE is private mode.
This commit is contained in:
parent
48622ea9f5
commit
8d1015a106
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue