Skip to content

Commit 40ea727

Browse files
Merge branch 'master' into hotfix-gitlab-api
2 parents c4a1c62 + 1f6a878 commit 40ea727

File tree

5 files changed

+295
-381
lines changed

5 files changed

+295
-381
lines changed

app/Classes/Gitlab.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public function tplUser($obj)
3535

3636
public function tplRepository($repo, $slug = false)
3737
{
38+
3839
$organization = $this->organization($repo);
3940

4041
if (!$organization) {
@@ -48,7 +49,7 @@ public function tplRepository($repo, $slug = false)
4849
'slug' => $slug ? $slug : Helper::slug($repo->path),
4950
'title' => $repo->path,
5051
'fullname' => $repo->name,
51-
'is_private' => $repo->visibility === 'public',
52+
'is_private' => $repo->public_jobs == true,
5253
'html_url' => $repo->http_url_to_repo,
5354
'description' => $repo->description,
5455
'fork' => null,
@@ -133,6 +134,8 @@ public function organization($obj)
133134
return false;
134135
}
135136

137+
138+
136139
if (!isset($obj->owner) && isset($obj->namespace)) {
137140
// To avoid to make unnecessary calls to the api to get the groups info saving the fetched groups into a private variable
138141
if (!isset($this->gitlabGroups[$obj->namespace->id])) {

artisan

100644100755
File mode changed.

bootstrap/cache/.gitignore

100644100755
File mode changed.

0 commit comments

Comments
 (0)