From a246ce8a942b33c5b23ac075b94237da09013fa2 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 13 Dec 2021 17:56:37 -0800 Subject: [PATCH] feat: add support for `squash_option` in Projects There is an optional `squash_option` parameter which can be used when creating Projects and UserProjects. Closes #1744 --- 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 14519dbc5..74671c8cc 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -692,6 +692,7 @@ class ProjectManager(CRUDMixin, RESTManager): "show_default_award_emojis", "snippets_access_level", "snippets_enabled", + "squash_option", "tag_list", "template_name", "template_project_id", @@ -760,6 +761,7 @@ class ProjectManager(CRUDMixin, RESTManager): "show_default_award_emojis", "snippets_access_level", "snippets_enabled", + "squash_option", "suggestion_commit_message", "tag_list", "visibility", diff --git a/gitlab/v4/objects/users.py b/gitlab/v4/objects/users.py index 568e019da..53376a910 100644 --- a/gitlab/v4/objects/users.py +++ b/gitlab/v4/objects/users.py @@ -500,6 +500,7 @@ class UserProjectManager(ListMixin, CreateMixin, RESTManager): "merge_requests_enabled", "wiki_enabled", "snippets_enabled", + "squash_option", "public", "visibility", "description",