summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-05-01 12:45:46 +0200
committerNejc Habjan <hab.nejc@gmail.com>2021-05-01 12:45:46 +0200
commitef05f4f38f2698cc2a7d7828d196bfe10d7aab44 (patch)
tree3a867bf20991fbce46df611b79841942140a3ad9
parent1e6305e865d4e586f2fa3a5f638095d0c885e224 (diff)
downloadgitlab-fix/public-jobs-attribute.tar.gz
fix(objects): add public_jobs attribute to projectsfix/public-jobs-attribute
This will replace the deprecated public_builds attribute.
-rw-r--r--gitlab/v4/objects/projects.py2
-rw-r--r--gitlab/v4/objects/users.py1
2 files changed, 3 insertions, 0 deletions
diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py
index 3dba95d..ec6436b 100644
--- a/gitlab/v4/objects/projects.py
+++ b/gitlab/v4/objects/projects.py
@@ -589,6 +589,7 @@ class ProjectManager(CRUDMixin, RESTManager):
"visibility",
"import_url",
"public_builds",
+ "public_jobs",
"only_allow_merge_if_pipeline_succeeds",
"only_allow_merge_if_all_discussions_are_resolved",
"merge_method",
@@ -646,6 +647,7 @@ class ProjectManager(CRUDMixin, RESTManager):
"visibility",
"import_url",
"public_builds",
+ "public_jobs",
"only_allow_merge_if_pipeline_succeeds",
"only_allow_merge_if_all_discussions_are_resolved",
"merge_method",
diff --git a/gitlab/v4/objects/users.py b/gitlab/v4/objects/users.py
index c90a7c9..f4fab82 100644
--- a/gitlab/v4/objects/users.py
+++ b/gitlab/v4/objects/users.py
@@ -443,6 +443,7 @@ class UserProjectManager(ListMixin, CreateMixin, RESTManager):
"description",
"builds_enabled",
"public_builds",
+ "public_jobs",
"import_url",
"only_allow_merge_if_build_succeeds",
),