From ef05f4f38f2698cc2a7d7828d196bfe10d7aab44 Mon Sep 17 00:00:00 2001 From: Nejc Habjan Date: Sat, 1 May 2021 12:45:46 +0200 Subject: fix(objects): add public_jobs attribute to projects This will replace the deprecated public_builds attribute. --- gitlab/v4/objects/projects.py | 2 ++ gitlab/v4/objects/users.py | 1 + 2 files changed, 3 insertions(+) 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", ), -- cgit v1.2.1