From 761ff6741761bea1e7ed092df79f3a57dbaec9b8 Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:47:19 +0530 Subject: [PATCH 01/89] feat(functional): merge train -> merge request :> status fetch --- gitlab/v4/objects/merge_trains.py | 28 ++++++++++++++++++++----- gitlab/v4/objects/projects.py | 2 +- tests/unit/objects/test_merge_trains.py | 26 ++++++++++++++++++++++- 3 files changed, 49 insertions(+), 7 deletions(-) diff --git a/gitlab/v4/objects/merge_trains.py b/gitlab/v4/objects/merge_trains.py index a1c5a447d..026570494 100644 --- a/gitlab/v4/objects/merge_trains.py +++ b/gitlab/v4/objects/merge_trains.py @@ -1,14 +1,32 @@ -from gitlab.base import RESTObject -from gitlab.mixins import ListMixin +from gitlab.base import RESTManager, RESTObject +from gitlab.mixins import CRUDMixin, GetMixin, ListMixin +from gitlab.types import RequiredOptional -__all__ = ["ProjectMergeTrain", "ProjectMergeTrainManager"] +__all__ = [ + "ProjectMergeTrain", + "ProjectMergeTrainManager", + "ProjectMergeTrainMergeRequest", + "ProjectMergeTrainMergeRequestManager", +] -class ProjectMergeTrain(RESTObject): +class ProjectMergeTrainMergeRequest(RESTObject): pass -class ProjectMergeTrainManager(ListMixin[ProjectMergeTrain]): +class ProjectMergeTrainMergeRequestManager(CRUDMixin, RESTManager): + _path = "/projects/{project_id}/merge_trains/merge_requests" + _obj_cls = ProjectMergeTrainMergeRequest + _from_parent_attrs = {"project_id": "project_id"} + + _update_attrs = RequiredOptional(optional=("position",)) + + +class ProjectMergeTrain(RESTObject): + merge_requests: ProjectMergeTrainMergeRequestManager + + +class ProjectMergeTrainManager(GetMixin, ListMixin, RESTManager): _path = "/projects/{project_id}/merge_trains" _obj_cls = ProjectMergeTrain _from_parent_attrs = {"project_id": "id"} diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index b415a8b98..f74fd64b1 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -64,7 +64,7 @@ ProjectApprovalRuleManager, ) from .merge_requests import ProjectMergeRequestManager # noqa: F401 -from .merge_trains import ProjectMergeTrainManager # noqa: F401 +from .merge_trains import ProjectMergeTrainManager from .milestones import ProjectMilestoneManager # noqa: F401 from .notes import ProjectNoteManager # noqa: F401 from .notification_settings import ProjectNotificationSettingsManager # noqa: F401 diff --git a/tests/unit/objects/test_merge_trains.py b/tests/unit/objects/test_merge_trains.py index f58d04422..1880ab3cf 100644 --- a/tests/unit/objects/test_merge_trains.py +++ b/tests/unit/objects/test_merge_trains.py @@ -6,7 +6,7 @@ import pytest import responses -from gitlab.v4.objects import ProjectMergeTrain +from gitlab.v4.objects import ProjectMergeTrain, ProjectMergeTrainMergeRequest mr_content = { "id": 110, @@ -60,7 +60,31 @@ def resp_list_merge_trains(): yield rsps +@pytest.fixture +def resp_merge_trains_merge_request_get(): + with responses.RequestsMock() as rsps: + rsps.add( + method=responses.GET, + url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/123", + json=mr_content, + content_type="application/json", + status=200, + ) + yield rsps + + def test_list_project_merge_requests(project, resp_list_merge_trains): merge_trains = project.merge_trains.list() assert isinstance(merge_trains[0], ProjectMergeTrain) assert merge_trains[0].id == mr_content["id"] + + +def test_merge_trains_status_merge_request( + project, resp_merge_trains_merge_request_get +): + # flow will be : project -> merge_trains : -> get merge_requests -> merge_request_iod + merge_train_mr: ProjectMergeTrainMergeRequest = project.merge_trains.get( + 1, lazy=True + ).merge_requests.get(123) + assert isinstance(merge_train_mr, ProjectMergeTrainMergeRequest) + assert merge_train_mr.get_id() == 110 From e10ba0caff7a371aca49c2743003151a445546f3 Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Thu, 15 Feb 2024 15:47:19 +0530 Subject: [PATCH 02/89] feat(functional): merge train -> merge request :> status fetch --- gitlab/v4/objects/merge_trains.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/gitlab/v4/objects/merge_trains.py b/gitlab/v4/objects/merge_trains.py index 026570494..732c6b8e3 100644 --- a/gitlab/v4/objects/merge_trains.py +++ b/gitlab/v4/objects/merge_trains.py @@ -1,6 +1,5 @@ from gitlab.base import RESTManager, RESTObject from gitlab.mixins import CRUDMixin, GetMixin, ListMixin -from gitlab.types import RequiredOptional __all__ = [ "ProjectMergeTrain", @@ -19,8 +18,6 @@ class ProjectMergeTrainMergeRequestManager(CRUDMixin, RESTManager): _obj_cls = ProjectMergeTrainMergeRequest _from_parent_attrs = {"project_id": "project_id"} - _update_attrs = RequiredOptional(optional=("position",)) - class ProjectMergeTrain(RESTObject): merge_requests: ProjectMergeTrainMergeRequestManager From cb4e0155437e0a0a916b846e714a62cdaecf7f25 Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Sat, 2 Mar 2024 19:33:21 +0530 Subject: [PATCH 03/89] feat(functional): #2547 merge-train api for status and add mr Signed-off-by: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> --- gitlab/v4/objects/merge_trains.py | 10 +++++-- tests/unit/objects/test_merge_trains.py | 37 ++++++++++++++++++++++--- 2 files changed, 41 insertions(+), 6 deletions(-) diff --git a/gitlab/v4/objects/merge_trains.py b/gitlab/v4/objects/merge_trains.py index 732c6b8e3..be3fb75ed 100644 --- a/gitlab/v4/objects/merge_trains.py +++ b/gitlab/v4/objects/merge_trains.py @@ -1,5 +1,6 @@ from gitlab.base import RESTManager, RESTObject -from gitlab.mixins import CRUDMixin, GetMixin, ListMixin +from gitlab.mixins import GetMixin, ListMixin, UpdateMethod, UpdateMixin +from gitlab.types import RequiredOptional __all__ = [ "ProjectMergeTrain", @@ -13,10 +14,15 @@ class ProjectMergeTrainMergeRequest(RESTObject): pass -class ProjectMergeTrainMergeRequestManager(CRUDMixin, RESTManager): +class ProjectMergeTrainMergeRequestManager(GetMixin, UpdateMixin, RESTManager): _path = "/projects/{project_id}/merge_trains/merge_requests" _obj_cls = ProjectMergeTrainMergeRequest _from_parent_attrs = {"project_id": "project_id"} + _update_method: UpdateMethod = UpdateMethod.POST + + _update_attrs = RequiredOptional( + optional=("sha", "squash", "when_pipeline_succeeds"), + ) class ProjectMergeTrain(RESTObject): diff --git a/tests/unit/objects/test_merge_trains.py b/tests/unit/objects/test_merge_trains.py index 1880ab3cf..7f8e48d8b 100644 --- a/tests/unit/objects/test_merge_trains.py +++ b/tests/unit/objects/test_merge_trains.py @@ -46,6 +46,10 @@ "duration": 70, } +merge_train_update = mr_content.copy() +merge_train_update["id"] = 123 +merge_train_update["pipeline"]["sha"] = "ef33a3zxc3" + @pytest.fixture def resp_list_merge_trains(): @@ -65,7 +69,7 @@ def resp_merge_trains_merge_request_get(): with responses.RequestsMock() as rsps: rsps.add( method=responses.GET, - url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/123", + url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/110", json=mr_content, content_type="application/json", status=200, @@ -73,18 +77,43 @@ def resp_merge_trains_merge_request_get(): yield rsps +@pytest.fixture +def resp_merge_trains_merge_request_post(): + with responses.RequestsMock() as rsps: + rsps.add( + method=responses.POST, + url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/123", + json=[merge_train_update], + content_type="application/json", + status=200, + ) + yield rsps + + def test_list_project_merge_requests(project, resp_list_merge_trains): merge_trains = project.merge_trains.list() assert isinstance(merge_trains[0], ProjectMergeTrain) assert merge_trains[0].id == mr_content["id"] -def test_merge_trains_status_merge_request( +def test_merge_trains_status_merge_request_get_status( project, resp_merge_trains_merge_request_get ): - # flow will be : project -> merge_trains : -> get merge_requests -> merge_request_iod merge_train_mr: ProjectMergeTrainMergeRequest = project.merge_trains.get( 1, lazy=True - ).merge_requests.get(123) + ).merge_requests.get(110) assert isinstance(merge_train_mr, ProjectMergeTrainMergeRequest) assert merge_train_mr.get_id() == 110 + assert merge_train_mr.pipeline.get("status") == mr_content["pipeline"]["status"] + + +def test_merge_train_add_merge_request(project, resp_merge_trains_merge_request_post): + merge_train: ProjectMergeTrain = project.merge_trains.get(1, lazy=True) + merge_requests_update = merge_train.merge_requests.update( + 123, new_data={"sha": "ef33a3zxc3"} + ) + assert isinstance(merge_train, ProjectMergeTrain) + assert ( + merge_requests_update[0]["pipeline"]["sha"] + == merge_train_update["pipeline"]["sha"] + ) From 775cd78ab2cb43f3f784647bf334cbc09ea592bc Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Mon, 3 Mar 2025 00:54:25 +0530 Subject: [PATCH 04/89] feat(functional): #2547 merge-train api for status and add mr - test data modifications Signed-off-by: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> --- gitlab/v4/objects/merge_trains.py | 4 ++-- tests/unit/objects/test_merge_trains.py | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/gitlab/v4/objects/merge_trains.py b/gitlab/v4/objects/merge_trains.py index be3fb75ed..80469a481 100644 --- a/gitlab/v4/objects/merge_trains.py +++ b/gitlab/v4/objects/merge_trains.py @@ -1,5 +1,5 @@ from gitlab.base import RESTManager, RESTObject -from gitlab.mixins import GetMixin, ListMixin, UpdateMethod, UpdateMixin +from gitlab.mixins import CRUDMixin, GetMixin, ListMixin, UpdateMethod from gitlab.types import RequiredOptional __all__ = [ @@ -14,7 +14,7 @@ class ProjectMergeTrainMergeRequest(RESTObject): pass -class ProjectMergeTrainMergeRequestManager(GetMixin, UpdateMixin, RESTManager): +class ProjectMergeTrainMergeRequestManager(CRUDMixin, RESTManager): _path = "/projects/{project_id}/merge_trains/merge_requests" _obj_cls = ProjectMergeTrainMergeRequest _from_parent_attrs = {"project_id": "project_id"} diff --git a/tests/unit/objects/test_merge_trains.py b/tests/unit/objects/test_merge_trains.py index 7f8e48d8b..fa5fe6221 100644 --- a/tests/unit/objects/test_merge_trains.py +++ b/tests/unit/objects/test_merge_trains.py @@ -11,7 +11,7 @@ mr_content = { "id": 110, "merge_request": { - "id": 1, + "id": 273, "iid": 1, "project_id": 3, "title": "Test merge train", @@ -47,7 +47,7 @@ } merge_train_update = mr_content.copy() -merge_train_update["id"] = 123 +merge_train_update["iid"] = 4 merge_train_update["pipeline"]["sha"] = "ef33a3zxc3" @@ -69,7 +69,7 @@ def resp_merge_trains_merge_request_get(): with responses.RequestsMock() as rsps: rsps.add( method=responses.GET, - url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/110", + url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/1", json=mr_content, content_type="application/json", status=200, @@ -82,7 +82,7 @@ def resp_merge_trains_merge_request_post(): with responses.RequestsMock() as rsps: rsps.add( method=responses.POST, - url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/123", + url="http://localhost/api/v4/projects/1/merge_trains/merge_requests/4", json=[merge_train_update], content_type="application/json", status=200, @@ -96,24 +96,29 @@ def test_list_project_merge_requests(project, resp_list_merge_trains): assert merge_trains[0].id == mr_content["id"] -def test_merge_trains_status_merge_request_get_status( +def test_merge_trains_status_merge_request( project, resp_merge_trains_merge_request_get ): merge_train_mr: ProjectMergeTrainMergeRequest = project.merge_trains.get( 1, lazy=True - ).merge_requests.get(110) + ).merge_requests.get(1) assert isinstance(merge_train_mr, ProjectMergeTrainMergeRequest) assert merge_train_mr.get_id() == 110 + assert merge_train_mr.merge_request["iid"] == mr_content["merge_request"]["iid"] assert merge_train_mr.pipeline.get("status") == mr_content["pipeline"]["status"] def test_merge_train_add_merge_request(project, resp_merge_trains_merge_request_post): merge_train: ProjectMergeTrain = project.merge_trains.get(1, lazy=True) merge_requests_update = merge_train.merge_requests.update( - 123, new_data={"sha": "ef33a3zxc3"} + 4, new_data={"sha": "ef33a3zxc3"} ) assert isinstance(merge_train, ProjectMergeTrain) assert ( merge_requests_update[0]["pipeline"]["sha"] == merge_train_update["pipeline"]["sha"] ) + assert ( + merge_requests_update[0]["merge_request"]["iid"] + == merge_train_update["merge_request"]["iid"] + ) From d444f049d94dca37f4b29e3e011409a311f18351 Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Mon, 3 Mar 2025 00:59:32 +0530 Subject: [PATCH 05/89] feat(functional): #2547 merge-train api for status and add mr - minor changes Signed-off-by: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> --- gitlab/v4/objects/merge_trains.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitlab/v4/objects/merge_trains.py b/gitlab/v4/objects/merge_trains.py index 80469a481..be3fb75ed 100644 --- a/gitlab/v4/objects/merge_trains.py +++ b/gitlab/v4/objects/merge_trains.py @@ -1,5 +1,5 @@ from gitlab.base import RESTManager, RESTObject -from gitlab.mixins import CRUDMixin, GetMixin, ListMixin, UpdateMethod +from gitlab.mixins import GetMixin, ListMixin, UpdateMethod, UpdateMixin from gitlab.types import RequiredOptional __all__ = [ @@ -14,7 +14,7 @@ class ProjectMergeTrainMergeRequest(RESTObject): pass -class ProjectMergeTrainMergeRequestManager(CRUDMixin, RESTManager): +class ProjectMergeTrainMergeRequestManager(GetMixin, UpdateMixin, RESTManager): _path = "/projects/{project_id}/merge_trains/merge_requests" _obj_cls = ProjectMergeTrainMergeRequest _from_parent_attrs = {"project_id": "project_id"} From 60b0ec00ed22be537393e8855b806444a3173134 Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Fri, 14 Mar 2025 11:57:17 +0530 Subject: [PATCH 06/89] feat(functional): #2547 merge-train api for status and add mr - lint formatted by black Signed-off-by: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> --- gitlab/v4/objects/merge_trains.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gitlab/v4/objects/merge_trains.py b/gitlab/v4/objects/merge_trains.py index be3fb75ed..2b483e157 100644 --- a/gitlab/v4/objects/merge_trains.py +++ b/gitlab/v4/objects/merge_trains.py @@ -14,14 +14,18 @@ class ProjectMergeTrainMergeRequest(RESTObject): pass -class ProjectMergeTrainMergeRequestManager(GetMixin, UpdateMixin, RESTManager): +class ProjectMergeTrainMergeRequestManager( + GetMixin[ProjectMergeTrainMergeRequest], + UpdateMixin[ProjectMergeTrainMergeRequest], + RESTManager[ProjectMergeTrainMergeRequest], +): _path = "/projects/{project_id}/merge_trains/merge_requests" _obj_cls = ProjectMergeTrainMergeRequest _from_parent_attrs = {"project_id": "project_id"} _update_method: UpdateMethod = UpdateMethod.POST _update_attrs = RequiredOptional( - optional=("sha", "squash", "when_pipeline_succeeds"), + optional=("sha", "squash", "when_pipeline_succeeds") ) @@ -29,7 +33,11 @@ class ProjectMergeTrain(RESTObject): merge_requests: ProjectMergeTrainMergeRequestManager -class ProjectMergeTrainManager(GetMixin, ListMixin, RESTManager): +class ProjectMergeTrainManager( + GetMixin[ProjectMergeTrain], + ListMixin[ProjectMergeTrain], + RESTManager[ProjectMergeTrain], +): _path = "/projects/{project_id}/merge_trains" _obj_cls = ProjectMergeTrain _from_parent_attrs = {"project_id": "id"} From 3ac656124379b8debff174cdbe7c33a4f33efebd Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Fri, 14 Mar 2025 19:18:13 +0530 Subject: [PATCH 07/89] feat(functional): #2547 merge-train api for status and add mr - docs added Signed-off-by: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> --- docs/gl_objects/merge_trains.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/gl_objects/merge_trains.rst b/docs/gl_objects/merge_trains.rst index 6d98e04d8..205053045 100644 --- a/docs/gl_objects/merge_trains.rst +++ b/docs/gl_objects/merge_trains.rst @@ -9,6 +9,8 @@ Reference + :class:`gitlab.v4.objects.ProjectMergeTrain` + :class:`gitlab.v4.objects.ProjectMergeTrainManager` + + :class:`gilab.v4.objects.ProjectMergeTrainMergeRequest` + + :class:`gilab.v4.objects.ProjectMergeTrainMergeRequestManager` + :attr:`gitlab.v4.objects.Project.merge_trains` * GitLab API: https://docs.gitlab.com/api/merge_trains @@ -27,3 +29,13 @@ List active merge trains for a project:: List completed (have been merged) merge trains for a project:: merge_trains = project.merge_trains.list(scope="complete") + +Get Merge Request Status for a Merge Train:: + + merge_train_mr = project.merge_trains.get(1, lazy=True).merge_requests.get(1) + merge_train_mr_status = merge_train_mr.pipeline.get("status") + +Add Merge Request to a Merge Train:: + + merge_train_to_update = project.merge_trains.get(1, lazy=True) + merge_requests_update = merge_train_to_update.merge_requests.update(5, new_data={"sha": "cd22awr721ssds"}) From e641aaf41a1cf697f12efd25207e2f5160fbb541 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Mon, 9 Jun 2025 12:44:41 -0700 Subject: [PATCH 08/89] chore: update to mypy 1.16.0 and resolve issues found There was an error in the type-hints that was detected when updating to mypy 1.16.0 The error was: $ mypy gitlab/v4/cli.py:411: error: Argument 1 to "cls_to_gitlab_resource" has incompatible type "type[Any]"; expected "RESTObject" [arg-type] Found 1 error in 1 file (checked 246 source files) --- gitlab/cli.py | 2 +- gitlab/v4/cli.py | 2 +- requirements-lint.txt | 2 +- tests/unit/test_cli.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gitlab/cli.py b/gitlab/cli.py index a3ff5b5b4..ca4734190 100644 --- a/gitlab/cli.py +++ b/gitlab/cli.py @@ -107,7 +107,7 @@ def gitlab_resource_to_cls( return class_type -def cls_to_gitlab_resource(cls: RESTObject) -> str: +def cls_to_gitlab_resource(cls: type[RESTObject]) -> str: dasherized_uppercase = camel_upperlower_regex.sub(r"\1-\2", cls.__name__) dasherized_lowercase = camel_lowerupper_regex.sub(r"\1-\2", dasherized_uppercase) return dasherized_lowercase.lower() diff --git a/gitlab/v4/cli.py b/gitlab/v4/cli.py index 067a0a155..87fcaf261 100644 --- a/gitlab/v4/cli.py +++ b/gitlab/v4/cli.py @@ -394,7 +394,7 @@ def extend_parser(parser: argparse.ArgumentParser) -> argparse.ArgumentParser: subparsers.required = True # populate argparse for all Gitlab Object - classes = set() + classes: set[type[gitlab.base.RESTObject]] = set() for cls in gitlab.v4.objects.__dict__.values(): if not isinstance(cls, type): continue diff --git a/requirements-lint.txt b/requirements-lint.txt index 0620fc57d..c8006e667 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -4,7 +4,7 @@ black==25.1.0 commitizen==4.8.2 flake8==7.2.0 isort==6.0.1 -mypy==1.15.0 +mypy==1.16.0 pylint==3.3.7 pytest==8.3.5 responses==0.25.7 diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index af3dd3380..cad27afba 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -161,7 +161,7 @@ def error(self, message): "Raise error instead of exiting on invalid arguments, to make testing easier" raise ValueError(message) - class Fake: + class Fake(gitlab.base.RESTObject): _id_attr = None class FakeManager(CreateMixin, UpdateMixin, gitlab.base.RESTManager): From 134728d79c772cc55b28cdaa69b84d6c1eed03c5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:39:55 +0000 Subject: [PATCH 09/89] chore(deps): update dependency requests to v2.32.4 [security] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5166aa6ee..7941900de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ gql==3.5.3 httpx==0.28.1 -requests==2.32.3 +requests==2.32.4 requests-toolbelt==1.0.0 From d9925c17aa5fc6908f0b9eb858df88ee0ce1b04b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 10 Jun 2025 11:57:13 +0000 Subject: [PATCH 10/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 6 +++--- requirements-docker.txt | 2 +- requirements-lint.txt | 8 ++++---- requirements-test.txt | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index aef5e4908..4d24be73d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen - rev: v4.8.2 + rev: v4.8.3 hooks: - id: commitizen stages: [commit-msg] @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.15.0 + rev: v1.16.0 hooks: - id: mypy args: [] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 40.31.0 + rev: 40.49.0 hooks: - id: renovate-config-validator diff --git a/requirements-docker.txt b/requirements-docker.txt index 98b70440c..ee34d1fba 100644 --- a/requirements-docker.txt +++ b/requirements-docker.txt @@ -1,3 +1,3 @@ -r requirements.txt -r requirements-test.txt -pytest-docker==3.2.1 +pytest-docker==3.2.2 diff --git a/requirements-lint.txt b/requirements-lint.txt index c8006e667..4711a5403 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,14 +1,14 @@ -r requirements.txt argcomplete==2.0.0 black==25.1.0 -commitizen==4.8.2 +commitizen==4.8.3 flake8==7.2.0 isort==6.0.1 mypy==1.16.0 pylint==3.3.7 -pytest==8.3.5 +pytest==8.4.0 responses==0.25.7 respx==0.22.0 types-PyYAML==6.0.12.20250516 -types-requests==2.32.0.20250515 -types-setuptools==80.8.0.20250521 +types-requests==2.32.0.20250602 +types-setuptools==80.9.0.20250529 diff --git a/requirements-test.txt b/requirements-test.txt index cfe179bf3..e5149cf70 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,7 +5,7 @@ coverage==7.8.2 pytest-console-scripts==1.4.1 pytest-cov==6.1.1 pytest-github-actions-annotate-failures==0.3.0 -pytest==8.3.5 +pytest==8.4.0 PyYaml==6.0.2 responses==0.25.7 respx==0.22.0 From 6e3f64c4a36688bca3adc6b4237c1728d1385e0e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 16 Jun 2025 07:08:25 +0000 Subject: [PATCH 11/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 2 +- requirements-lint.txt | 2 +- requirements-test.txt | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 72f22f125..3acee16f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.0.2 + uses: python-semantic-release/python-semantic-release@v10.1.0 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d24be73d..3dda94ccf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 40.49.0 + rev: 40.57.1 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 4711a5403..1281b5c87 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -10,5 +10,5 @@ pytest==8.4.0 responses==0.25.7 respx==0.22.0 types-PyYAML==6.0.12.20250516 -types-requests==2.32.0.20250602 +types-requests==2.32.4.20250611 types-setuptools==80.9.0.20250529 diff --git a/requirements-test.txt b/requirements-test.txt index e5149cf70..307f83782 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,9 +1,9 @@ -r requirements.txt anyio==4.9.0 build==1.2.2.post1 -coverage==7.8.2 +coverage==7.9.1 pytest-console-scripts==1.4.1 -pytest-cov==6.1.1 +pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 pytest==8.4.0 PyYaml==6.0.2 From 99dadf0bc8ad61d55f58916564133f44827a6189 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 18 Jun 2025 08:06:53 -0700 Subject: [PATCH 12/89] docs: update CONTRIBUTING.rst with policy on issue management Also update the `stale` job to close issues with no activity, unless they are assigned to someone. --- .github/workflows/stale.yml | 53 ++++++++++++++++++++++++++++++++----- CONTRIBUTING.rst | 36 +++++++++++++++++++++++++ 2 files changed, 82 insertions(+), 7 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index cdfaee27b..e65835c30 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -20,16 +20,56 @@ jobs: stale-issue-label: "stale" stale-pr-label: "stale" - any-of-labels: 'need info,Waiting for response,stale' + # If an issue/PR has an assignee it won't be marked as stale + exempt-all-assignees: true stale-issue-message: > - This issue was marked stale because it has been open 60 days with no - activity. Please remove the stale label or comment on this issue. Otherwise, - it will be closed in 15 days. + This issue was marked stale because it has been open 60 days with + no activity. Please remove the stale label or comment on this + issue. Otherwise, it will be closed in 15 days. + + As an open-source project, we rely on community contributions to + address many of the reported issues. Without a proposed fix or + active work towards a solution it is our policy to close inactive + issues. This is documented in CONTRIBUTING.rst + + **How to keep this issue open:** + * If you are still experiencing this issue and are willing to + investigate a fix, please comment and let us know. + * If you (or someone else) can propose a pull request with a + solution, that would be fantastic. + * Any significant update or active discussion indicating progress + will also prevent closure. + + We value your input. If you can help provide a fix, we'd be happy + to keep this issue open and support your efforts. + days-before-issue-stale: 60 days-before-issue-close: 15 close-issue-message: > - This issue was closed because it has been marked stale for 15 days with no - activity. If this issue is still valid, please re-open. + This issue was closed because it has been marked stale for 15 days + with no activity. + + This open-source project relies on community contributions, and + while we value all feedback, we have a limited capacity to address + every issue without a clear path forward. + + Currently, this issue hasn't received a proposed fix, and there + hasn't been recent active discussion indicating someone is planning + to work on it. To maintain a manageable backlog and focus our + efforts, we will be closing this issue for now. + + **This doesn't mean the issue isn't valid or important.** If you or + anyone else in the community is willing to investigate and propose + a solution (e.g., by submitting a pull request), please do. + + We believe that those who feel a bug is important enough to fix + should ideally be part of the solution. Your contributions are + highly welcome. + + Thank you for your understanding and potential future + contributions. + + This is documented in CONTRIBUTING.rst stale-pr-message: > This Pull Request (PR) was marked stale because it has been open 90 days @@ -40,4 +80,3 @@ jobs: close-pr-message: > This PR was closed because it has been marked stale for 15 days with no activity. If this PR is still valid, please re-open. - diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 90c6c1e70..9b07ada11 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -9,6 +9,42 @@ You can contribute to the project in multiple ways: * Add unit and functional tests * Everything else you can think of +Issue Management and Our Approach to Contributions +-------------------------------------------------- + +We value every contribution and bug report. However, as an open-source project +with limited maintainer resources, we rely heavily on the community to help us +move forward. + +**Our Policy on Inactive Issues:** + +To keep our issue tracker manageable and focused on actionable items, we have +the following approach: + +* **We encourage reporters to propose solutions:** If you report an issue, we + strongly encourage you to also think about how it might be fixed and try to + implement that fix. +* **Community interest is key:** Issues that garner interest from the community + (e.g., multiple users confirming, discussions on solutions, offers to help) + are more likely to be addressed. +* **Closing inactive issues:** If an issue report doesn't receive a proposed + fix from the original reporter or anyone else in the community, and there's + no active discussion or indication that someone is willing to work on it + after a reasonable period, it may be closed. + + * When closing such an issue, we will typically leave a comment explaining + that it's being closed due to inactivity and a lack of a proposed fix. + +* **Reopening issues:** This doesn't mean the issue isn't valid. If you (or + someone else) are interested in working on a fix for a closed issue, please + comment on the issue. We are more than happy to reopen it and discuss your + proposed pull request or solution. We greatly appreciate it when community + members take ownership of fixing issues they care about. + +We believe this approach helps us focus our efforts effectively and empowers +the community to contribute directly to the areas they are most passionate +about. + Development workflow -------------------- From d827e76c022fb8b81117a4bccf079e8961da0b0a Mon Sep 17 00:00:00 2001 From: Matthias Reiff <69197422+matthias-reiff@users.noreply.github.com> Date: Tue, 24 Jun 2025 10:38:53 +0200 Subject: [PATCH 13/89] feat(const): add PLANNER_ACCESS constant --- gitlab/const.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gitlab/const.py b/gitlab/const.py index 9e0b766ea..7a0492e64 100644 --- a/gitlab/const.py +++ b/gitlab/const.py @@ -93,6 +93,7 @@ class PipelineStatus(GitlabEnum): NO_ACCESS = AccessLevel.NO_ACCESS.value MINIMAL_ACCESS = AccessLevel.MINIMAL_ACCESS.value GUEST_ACCESS = AccessLevel.GUEST.value +PLANNER_ACCESS = AccessLevel.PLANNER.value REPORTER_ACCESS = AccessLevel.REPORTER.value DEVELOPER_ACCESS = AccessLevel.DEVELOPER.value MAINTAINER_ACCESS = AccessLevel.MAINTAINER.value @@ -151,6 +152,7 @@ class PipelineStatus(GitlabEnum): "NOTIFICATION_LEVEL_PARTICIPATING", "NOTIFICATION_LEVEL_WATCH", "OWNER_ACCESS", + "PLANNER_ACCESS", "REPORTER_ACCESS", "SEARCH_SCOPE_BLOBS", "SEARCH_SCOPE_COMMITS", From 9a21fd51c17bc39f53615e1e89d9291d6eb0267e Mon Sep 17 00:00:00 2001 From: semantic-release Date: Sat, 28 Jun 2025 01:13:44 +0000 Subject: [PATCH 14/89] chore: release v6.1.0 --- gitlab/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/_version.py b/gitlab/_version.py index 24f57a764..24c1a84f8 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "6.0.0" +__version__ = "6.1.0" From 74af1c1071f84ada2c6001d6af581bd6db7d917a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 01:49:56 +0000 Subject: [PATCH 15/89] chore(deps): update pre-commit hook maxbrunet/pre-commit-renovate to v41 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3dda94ccf..4f7ac25f0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 40.57.1 + rev: 41.17.2 hooks: - id: renovate-config-validator From f76d2b6826d54fa1debb6620de69da8fa8f9b1d8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 30 Jun 2025 02:07:40 +0000 Subject: [PATCH 16/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 6 +++--- requirements-test.txt | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3acee16f9..396eb59b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.1.0 + uses: python-semantic-release/python-semantic-release@v10.2.0 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4f7ac25f0..e7235f125 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: commitizen stages: [commit-msg] - repo: https://github.com/pycqa/flake8 - rev: 7.2.0 + rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/pycqa/isort @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.0 + rev: v1.16.1 hooks: - id: mypy args: [] diff --git a/requirements-lint.txt b/requirements-lint.txt index 1281b5c87..b6b718d18 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -2,11 +2,11 @@ argcomplete==2.0.0 black==25.1.0 commitizen==4.8.3 -flake8==7.2.0 +flake8==7.3.0 isort==6.0.1 -mypy==1.16.0 +mypy==1.16.1 pylint==3.3.7 -pytest==8.4.0 +pytest==8.4.1 responses==0.25.7 respx==0.22.0 types-PyYAML==6.0.12.20250516 diff --git a/requirements-test.txt b/requirements-test.txt index 307f83782..eb6557cd5 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,7 +5,7 @@ coverage==7.9.1 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 -pytest==8.4.0 +pytest==8.4.1 PyYaml==6.0.2 responses==0.25.7 respx==0.22.0 From 3858611d9cd53b02a59643c5d5e1ecef0a790bcb Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 7 Jul 2025 12:42:02 +0000 Subject: [PATCH 17/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 2 +- requirements-docker.txt | 2 +- requirements-test.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e7235f125..24f9e68df 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.17.2 + rev: 41.23.4 hooks: - id: renovate-config-validator diff --git a/requirements-docker.txt b/requirements-docker.txt index ee34d1fba..532609b3f 100644 --- a/requirements-docker.txt +++ b/requirements-docker.txt @@ -1,3 +1,3 @@ -r requirements.txt -r requirements-test.txt -pytest-docker==3.2.2 +pytest-docker==3.2.3 diff --git a/requirements-test.txt b/requirements-test.txt index eb6557cd5..26d3b35af 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.9.0 build==1.2.2.post1 -coverage==7.9.1 +coverage==7.9.2 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 From 72ba99d3cfc935dcb6458737348d481a3426e681 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 25 Jun 2025 08:38:36 -0700 Subject: [PATCH 18/89] ci(stale): improve formatting of stale message Have it maintain the formatting of the message with the line breaks. --- .github/workflows/stale.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e65835c30..e2f1c1923 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -22,7 +22,7 @@ jobs: # If an issue/PR has an assignee it won't be marked as stale exempt-all-assignees: true - stale-issue-message: > + stale-issue-message: | This issue was marked stale because it has been open 60 days with no activity. Please remove the stale label or comment on this issue. Otherwise, it will be closed in 15 days. @@ -43,9 +43,12 @@ jobs: We value your input. If you can help provide a fix, we'd be happy to keep this issue open and support your efforts. + This is documented in CONTRIBUTING.rst + https://github.com/python-gitlab/python-gitlab/blob/main/CONTRIBUTING.rst + days-before-issue-stale: 60 days-before-issue-close: 15 - close-issue-message: > + close-issue-message: | This issue was closed because it has been marked stale for 15 days with no activity. @@ -70,6 +73,7 @@ jobs: contributions. This is documented in CONTRIBUTING.rst + https://github.com/python-gitlab/python-gitlab/blob/main/CONTRIBUTING.rst stale-pr-message: > This Pull Request (PR) was marked stale because it has been open 90 days From 13b280136c964c07817eb38c1a7099c880f5bb69 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 4 Jul 2025 12:46:49 -0700 Subject: [PATCH 19/89] ci(stale): increase `operations-per-run` to 500 The default value is 30 and it is not able to process all the issues/PRs. In fact it is failing to make progress. Each day it processes the same issues/PRs and then stops. It doesn't reach the other issues/Prs. Increase to 500, the GitLab limit is actually 3000. --- .github/workflows/stale.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e2f1c1923..0b6cbe5db 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -17,6 +17,7 @@ jobs: steps: - uses: actions/stale@v9.1.0 with: + operations-per-run: 500 stale-issue-label: "stale" stale-pr-label: "stale" From 91b52d02c14751a10d3ea5519e5c2f28768d244c Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sat, 7 Jun 2025 09:14:25 -0700 Subject: [PATCH 20/89] build(release): use correct python-semantic-release/publish-action The previous 'python-semantic-release/upload-to-gh-release' action has been deprecated. Closes: #3210 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 396eb59b2..b1495438e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/upload-to-gh-release@0a92b5d7ebfc15a84f9801ebd1bf706343d43711 # v9.8.9 + uses: python-semantic-release/publish-action@v10.0.2 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} From f73ab8c699a690baf80940fbfe7ee28139ceaa49 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 14 Jul 2025 01:02:35 +0000 Subject: [PATCH 21/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1495438e..576c1befb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/publish-action@v10.0.2 + uses: python-semantic-release/publish-action@v10.2.0 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 24f9e68df..f12339fb3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.23.4 + rev: 41.23.5 hooks: - id: renovate-config-validator From f311b5ca9a56b8e60ca8c5fef94bd60baedc5bce Mon Sep 17 00:00:00 2001 From: Massimiliano Riva Date: Fri, 18 Jul 2025 15:31:44 +0200 Subject: [PATCH 22/89] feat(api): add ListMixin to ProjectMergeRequestDiscussionNoteManager Closes: #3180 --- gitlab/v4/objects/notes.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gitlab/v4/objects/notes.py b/gitlab/v4/objects/notes.py index f104c3f5d..56568d273 100644 --- a/gitlab/v4/objects/notes.py +++ b/gitlab/v4/objects/notes.py @@ -164,10 +164,7 @@ class ProjectMergeRequestDiscussionNote(SaveMixin, ObjectDeleteMixin, RESTObject class ProjectMergeRequestDiscussionNoteManager( - GetMixin[ProjectMergeRequestDiscussionNote], - CreateMixin[ProjectMergeRequestDiscussionNote], - UpdateMixin[ProjectMergeRequestDiscussionNote], - DeleteMixin[ProjectMergeRequestDiscussionNote], + CRUDMixin[ProjectMergeRequestDiscussionNote] ): _path = ( "/projects/{project_id}/merge_requests/{mr_iid}/" From 8ea3bff915e255aed7fd3bbd175d761cbf1efd9a Mon Sep 17 00:00:00 2001 From: Massimiliano Riva Date: Fri, 18 Jul 2025 15:52:52 +0200 Subject: [PATCH 23/89] feat(api): add ListMixin to ProjectIssueDiscussionNoteManager --- gitlab/v4/objects/notes.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/gitlab/v4/objects/notes.py b/gitlab/v4/objects/notes.py index 56568d273..3e83d9be1 100644 --- a/gitlab/v4/objects/notes.py +++ b/gitlab/v4/objects/notes.py @@ -128,12 +128,7 @@ class ProjectIssueDiscussionNote(SaveMixin, ObjectDeleteMixin, RESTObject): pass -class ProjectIssueDiscussionNoteManager( - GetMixin[ProjectIssueDiscussionNote], - CreateMixin[ProjectIssueDiscussionNote], - UpdateMixin[ProjectIssueDiscussionNote], - DeleteMixin[ProjectIssueDiscussionNote], -): +class ProjectIssueDiscussionNoteManager(CRUDMixin[ProjectIssueDiscussionNote]): _path = ( "/projects/{project_id}/issues/{issue_iid}/discussions/{discussion_id}/notes" ) From 075989a5bd5ae091cd0a7adab4ea7048fd68abed Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 21 Jul 2025 23:39:56 +0000 Subject: [PATCH 24/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f12339fb3..f18249f20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.16.1 + rev: v1.17.0 hooks: - id: mypy args: [] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.23.5 + rev: 41.42.1 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index b6b718d18..73eb2fda0 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -4,7 +4,7 @@ black==25.1.0 commitizen==4.8.3 flake8==7.3.0 isort==6.0.1 -mypy==1.16.1 +mypy==1.17.0 pylint==3.3.7 pytest==8.4.1 responses==0.25.7 From e1fc986aa8e660c56e46f7e279644aa306aff910 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 22 Jul 2025 00:17:12 +0000 Subject: [PATCH 25/89] chore(deps): update dependency furo to v2025 --- requirements-docs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-docs.txt b/requirements-docs.txt index c951d81d5..39f5f61e2 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,5 +1,5 @@ -r requirements.txt -furo==2024.8.6 +furo==2025.7.19 jinja2==3.1.6 myst-parser==4.0.1 sphinx==8.2.3 From de75df8b07443d5a1606aba03b6dd3e0a5b2175e Mon Sep 17 00:00:00 2001 From: semantic-release Date: Mon, 28 Jul 2025 01:25:29 +0000 Subject: [PATCH 26/89] chore: release v6.2.0 --- gitlab/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/_version.py b/gitlab/_version.py index 24c1a84f8..2f7a85281 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "6.1.0" +__version__ = "6.2.0" From 1400f92c4b0f86c33e5ffc843bae62cb216645f4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 28 Jul 2025 07:43:06 +0000 Subject: [PATCH 27/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 2 +- requirements-test.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f18249f20..b22f87245 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.42.1 + rev: 41.43.0 hooks: - id: renovate-config-validator diff --git a/requirements-test.txt b/requirements-test.txt index 26d3b35af..3b6e94b77 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.9.0 build==1.2.2.post1 -coverage==7.9.2 +coverage==7.10.1 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 From 2d469e59910bf349951fa597593132016bc38cd8 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 4 Aug 2025 08:07:06 +0000 Subject: [PATCH 28/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 ++-- .pre-commit-config.yaml | 2 +- requirements-lint.txt | 4 ++-- requirements-test.txt | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 576c1befb..32b2573be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.2.0 + uses: python-semantic-release/python-semantic-release@v10.3.0 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/publish-action@v10.2.0 + uses: python-semantic-release/publish-action@v10.3.0 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b22f87245..f838e4380 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.0 + rev: v1.17.1 hooks: - id: mypy args: [] diff --git a/requirements-lint.txt b/requirements-lint.txt index 73eb2fda0..1833fd410 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -4,11 +4,11 @@ black==25.1.0 commitizen==4.8.3 flake8==7.3.0 isort==6.0.1 -mypy==1.17.0 +mypy==1.17.1 pylint==3.3.7 pytest==8.4.1 responses==0.25.7 respx==0.22.0 types-PyYAML==6.0.12.20250516 types-requests==2.32.4.20250611 -types-setuptools==80.9.0.20250529 +types-setuptools==80.9.0.20250801 diff --git a/requirements-test.txt b/requirements-test.txt index 3b6e94b77..61f3ab713 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.9.0 -build==1.2.2.post1 -coverage==7.10.1 +build==1.3.0 +coverage==7.10.2 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 From 1b975a6256db4aeb31a1b6d3c801ca766f7ab7fe Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sun, 13 Jul 2025 23:27:01 -0700 Subject: [PATCH 29/89] feat: add sync method to force remote mirror updates Add ProjectRemoteMirror.sync() method to trigger immediate push mirror updates. Closes: #3223 --- docs/gl_objects/remote_mirrors.rst | 4 ++++ gitlab/v4/objects/projects.py | 15 ++++++++++++++- tests/unit/objects/test_remote_mirrors.py | 12 ++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/gl_objects/remote_mirrors.rst b/docs/gl_objects/remote_mirrors.rst index b4610117d..c672ca5bb 100644 --- a/docs/gl_objects/remote_mirrors.rst +++ b/docs/gl_objects/remote_mirrors.rst @@ -36,3 +36,7 @@ Update an existing remote mirror's attributes:: Delete an existing remote mirror:: mirror.delete() + +Force push mirror update:: + + mirror.sync() diff --git a/gitlab/v4/objects/projects.py b/gitlab/v4/objects/projects.py index f74fd64b1..72d5f0ad3 100644 --- a/gitlab/v4/objects/projects.py +++ b/gitlab/v4/objects/projects.py @@ -1233,7 +1233,20 @@ def create(self, data: dict[str, Any] | None = None, **kwargs: Any) -> ProjectFo class ProjectRemoteMirror(ObjectDeleteMixin, SaveMixin, RESTObject): - pass + @cli.register_custom_action(cls_names="ProjectRemoteMirror") + @exc.on_http_error(exc.GitlabCreateError) + def sync(self, **kwargs: Any) -> dict[str, Any] | requests.Response: + """Force push mirror update. + + Args: + **kwargs: Extra options to send to the server (e.g. sudo) + + Raises: + GitlabAuthenticationError: If authentication is not correct + GitlabCreateError: If the server cannot perform the request + """ + path = f"{self.manager.path}/{self.encoded_id}/sync" + return self.manager.gitlab.http_post(path, **kwargs) class ProjectRemoteMirrorManager( diff --git a/tests/unit/objects/test_remote_mirrors.py b/tests/unit/objects/test_remote_mirrors.py index f493032e8..be2aaaaba 100644 --- a/tests/unit/objects/test_remote_mirrors.py +++ b/tests/unit/objects/test_remote_mirrors.py @@ -54,6 +54,12 @@ def resp_remote_mirrors(): url="http://localhost/api/v4/projects/1/remote_mirrors/1", status=204, ) + + rsps.add( + method=responses.POST, + url="http://localhost/api/v4/projects/1/remote_mirrors/1/sync", + status=204, + ) yield rsps @@ -81,3 +87,9 @@ def test_update_project_remote_mirror(project, resp_remote_mirrors): def test_delete_project_remote_mirror(project, resp_remote_mirrors): mirror = project.remote_mirrors.create({"url": "https://example.com"}) mirror.delete() + + +def test_sync_project_remote_mirror(project, resp_remote_mirrors): + mirror = project.remote_mirrors.create({"url": "https://example.com"}) + response = mirror.sync() + assert response.status_code == 204 From 390a59d7eaa3580f2a7aba30c72eda2d2bd4d7b2 Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Wed, 6 Aug 2025 14:52:00 +0100 Subject: [PATCH 30/89] feat(api): add missing ProjectPackageManager list filters `package_version` was introduced in GitLab 16.6 See: https://docs.gitlab.com/api/packages/#for-a-project --- gitlab/v4/objects/packages.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/gitlab/v4/objects/packages.py b/gitlab/v4/objects/packages.py index 1a59c7ec7..99edd2f83 100644 --- a/gitlab/v4/objects/packages.py +++ b/gitlab/v4/objects/packages.py @@ -220,6 +220,9 @@ class GroupPackageManager(ListMixin[GroupPackage]): "sort", "package_type", "package_name", + "package_version", + "include_versionless", + "status", ) @@ -234,7 +237,15 @@ class ProjectPackageManager( _path = "/projects/{project_id}/packages" _obj_cls = ProjectPackage _from_parent_attrs = {"project_id": "id"} - _list_filters = ("order_by", "sort", "package_type", "package_name") + _list_filters = ( + "order_by", + "sort", + "package_type", + "package_name", + "package_version", + "include_versionless", + "status", + ) class ProjectPackageFile(ObjectDeleteMixin, RESTObject): From aba5457e3e73650b86116f27aea57af69682e313 Mon Sep 17 00:00:00 2001 From: Nick Brown Date: Thu, 7 Aug 2025 22:53:08 +0100 Subject: [PATCH 31/89] feat(api): add missing ProjectJob list filters See: https://docs.gitlab.com/api/jobs/#list-project-jobs --- gitlab/v4/objects/jobs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/v4/objects/jobs.py b/gitlab/v4/objects/jobs.py index 6aa6fc460..f0062c989 100644 --- a/gitlab/v4/objects/jobs.py +++ b/gitlab/v4/objects/jobs.py @@ -346,5 +346,5 @@ class ProjectJobManager(RetrieveMixin[ProjectJob]): _path = "/projects/{project_id}/jobs" _obj_cls = ProjectJob _from_parent_attrs = {"project_id": "id"} - _list_filters = ("scope",) + _list_filters = ("scope", "order_by", "sort") _types = {"scope": ArrayAttribute} From 0702c55ad63d2014c5ac3a972162b515c9ce834e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 13:42:33 +0000 Subject: [PATCH 32/89] chore(deps): update all non-major dependencies --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/release.yml | 6 +++--- .github/workflows/test.yml | 10 +++++----- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 10 +++++----- requirements-precommit.txt | 2 +- requirements-test.txt | 6 +++--- 9 files changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c974f3a45..6b41b6147 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: sphinx: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: @@ -37,7 +37,7 @@ jobs: twine-check: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d16f7fe09..6ca867c96 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 with: fetch-depth: 0 - uses: actions/setup-python@v5.6.0 diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 9fadeca81..7e4e913be 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -29,7 +29,7 @@ jobs: pre_commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - uses: actions/setup-python@v5.6.0 with: python-version: "3.13" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32b2573be..9b765529c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,14 +14,14 @@ jobs: id-token: write environment: pypi.org steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 with: fetch-depth: 0 token: ${{ secrets.RELEASE_GITHUB_TOKEN }} - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.3.0 + uses: python-semantic-release/python-semantic-release@v10.3.1 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/publish-action@v10.3.0 + uses: python-semantic-release/publish-action@v10.3.1 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17d514b11..2fea26396 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: version: "3.13" toxenv: py313,smoke steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - name: Set up Python ${{ matrix.python.version }} uses: actions/setup-python@v5.6.0 with: @@ -67,7 +67,7 @@ jobs: matrix: toxenv: [api_func_v4, cli_func_v4] steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: @@ -89,7 +89,7 @@ jobs: coverage: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5.6.0 with: @@ -113,7 +113,7 @@ jobs: runs-on: ubuntu-latest name: Python wheel steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - uses: actions/setup-python@v5.6.0 with: python-version: "3.13" @@ -131,7 +131,7 @@ jobs: runs-on: ubuntu-latest needs: [dist] steps: - - uses: actions/checkout@v4.2.2 + - uses: actions/checkout@v4.3.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f838e4380..2f8c7c10a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: hooks: - id: isort - repo: https://github.com/pycqa/pylint - rev: v3.3.7 + rev: v3.3.8 hooks: - id: pylint additional_dependencies: @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.43.0 + rev: 41.62.2 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 1833fd410..00e69a474 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -5,10 +5,10 @@ commitizen==4.8.3 flake8==7.3.0 isort==6.0.1 mypy==1.17.1 -pylint==3.3.7 +pylint==3.3.8 pytest==8.4.1 -responses==0.25.7 +responses==0.25.8 respx==0.22.0 -types-PyYAML==6.0.12.20250516 -types-requests==2.32.4.20250611 -types-setuptools==80.9.0.20250801 +types-PyYAML==6.0.12.20250809 +types-requests==2.32.4.20250809 +types-setuptools==80.9.0.20250809 diff --git a/requirements-precommit.txt b/requirements-precommit.txt index d5c247795..3ee862221 100644 --- a/requirements-precommit.txt +++ b/requirements-precommit.txt @@ -1 +1 @@ -pre-commit==4.2.0 +pre-commit==4.3.0 diff --git a/requirements-test.txt b/requirements-test.txt index 61f3ab713..000349305 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,13 +1,13 @@ -r requirements.txt -anyio==4.9.0 +anyio==4.10.0 build==1.3.0 -coverage==7.10.2 +coverage==7.10.3 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 pytest==8.4.1 PyYaml==6.0.2 -responses==0.25.7 +responses==0.25.8 respx==0.22.0 trio==0.30.0 wheel==0.45.1 From 333464a4cfd74a7ad699f8eb28410a99884b23e4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 11 Aug 2025 15:09:17 +0000 Subject: [PATCH 33/89] chore(deps): update actions/download-artifact action to v5 --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2fea26396..5858b9ee5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -136,7 +136,7 @@ jobs: uses: actions/setup-python@v5.6.0 with: python-version: '3.13' - - uses: actions/download-artifact@v4.3.0 + - uses: actions/download-artifact@v5.0.0 with: name: dist path: dist From 2265b0ae2dba440b913dc021a5e6ad2067af737e Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Fri, 15 Aug 2025 17:25:30 +0200 Subject: [PATCH 34/89] feat(users): implement support for 'admins' in administrators 'list' Signed-off-by: Adrian DC --- gitlab/v4/objects/users.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gitlab/v4/objects/users.py b/gitlab/v4/objects/users.py index dec0b375d..2c2393eba 100644 --- a/gitlab/v4/objects/users.py +++ b/gitlab/v4/objects/users.py @@ -410,6 +410,7 @@ class UserManager(CRUDMixin[User]): "custom_attributes", "status", "two_factor", + "admins", ) _create_attrs = RequiredOptional( optional=( From 0574c7930ece9e6435d4f7a649f131cc2c0957e0 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 02:09:04 +0000 Subject: [PATCH 35/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 2 +- requirements-test.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2f8c7c10a..5f492caf9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.62.2 + rev: 41.76.0 hooks: - id: renovate-config-validator diff --git a/requirements-test.txt b/requirements-test.txt index 000349305..9435bac32 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.10.0 build==1.3.0 -coverage==7.10.3 +coverage==7.10.4 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 From 80c66cd99fe5ce76aee8ed912f41129663949551 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 18 Aug 2025 03:29:51 +0000 Subject: [PATCH 36/89] chore(deps): update actions/checkout action to v5 --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 10 +++++----- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6b41b6147..cb8eab5d6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: sphinx: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: @@ -37,7 +37,7 @@ jobs: twine-check: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6ca867c96..0647754dc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 with: fetch-depth: 0 - uses: actions/setup-python@v5.6.0 diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 7e4e913be..4da71860a 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -29,7 +29,7 @@ jobs: pre_commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - uses: actions/setup-python@v5.6.0 with: python-version: "3.13" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b765529c..cdf090887 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: id-token: write environment: pypi.org steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 with: fetch-depth: 0 token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5858b9ee5..f43bfe259 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: version: "3.13" toxenv: py313,smoke steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - name: Set up Python ${{ matrix.python.version }} uses: actions/setup-python@v5.6.0 with: @@ -67,7 +67,7 @@ jobs: matrix: toxenv: [api_func_v4, cli_func_v4] steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: @@ -89,7 +89,7 @@ jobs: coverage: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5.6.0 with: @@ -113,7 +113,7 @@ jobs: runs-on: ubuntu-latest name: Python wheel steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - uses: actions/setup-python@v5.6.0 with: python-version: "3.13" @@ -131,7 +131,7 @@ jobs: runs-on: ubuntu-latest needs: [dist] steps: - - uses: actions/checkout@v4.3.0 + - uses: actions/checkout@v5.0.0 - name: Set up Python uses: actions/setup-python@v5.6.0 with: From d6723fbb2580c06c77ed8d2ce565c3d8c78fa95a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 25 Aug 2025 02:12:26 +0000 Subject: [PATCH 37/89] chore(deps): update all non-major dependencies --- .github/workflows/test.yml | 4 ++-- .pre-commit-config.yaml | 2 +- requirements-lint.txt | 4 ++-- requirements-test.txt | 2 +- requirements.txt | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f43bfe259..d8c32dd8d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,7 +79,7 @@ jobs: TOXENV: ${{ matrix.toxenv }} run: tox -- --override-ini='log_cli=True' - name: Upload codecov coverage - uses: codecov/codecov-action@v5.4.3 + uses: codecov/codecov-action@v5.5.0 with: files: ./coverage.xml flags: ${{ matrix.toxenv }} @@ -102,7 +102,7 @@ jobs: TOXENV: cover run: tox - name: Upload codecov coverage - uses: codecov/codecov-action@v5.4.3 + uses: codecov/codecov-action@v5.5.0 with: files: ./coverage.xml flags: unit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5f492caf9..cf5dd8e24 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.76.0 + rev: 41.82.10 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 00e69a474..6d326d8bd 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -9,6 +9,6 @@ pylint==3.3.8 pytest==8.4.1 responses==0.25.8 respx==0.22.0 -types-PyYAML==6.0.12.20250809 +types-PyYAML==6.0.12.20250822 types-requests==2.32.4.20250809 -types-setuptools==80.9.0.20250809 +types-setuptools==80.9.0.20250822 diff --git a/requirements-test.txt b/requirements-test.txt index 9435bac32..36e60a2bb 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.10.0 build==1.3.0 -coverage==7.10.4 +coverage==7.10.5 pytest-console-scripts==1.4.1 pytest-cov==6.2.1 pytest-github-actions-annotate-failures==0.3.0 diff --git a/requirements.txt b/requirements.txt index 7941900de..6930e5d2c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ gql==3.5.3 httpx==0.28.1 -requests==2.32.4 +requests==2.32.5 requests-toolbelt==1.0.0 From 34b29dc28d0c4b51a31cc22e0ce2e152dbef760a Mon Sep 17 00:00:00 2001 From: semantic-release Date: Thu, 28 Aug 2025 01:09:41 +0000 Subject: [PATCH 38/89] chore: release v6.3.0 --- gitlab/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/_version.py b/gitlab/_version.py index 2f7a85281..c9434cd63 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "6.2.0" +__version__ = "6.3.0" From 376fd031ea9f37d4b4d5c5ba77fe2dd95fa7964b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 01:56:18 +0000 Subject: [PATCH 39/89] chore(deps): update actions/setup-python action to v6 --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/test.yml | 10 +++++----- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index cb8eab5d6..40e720b4c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -24,7 +24,7 @@ jobs: steps: - uses: actions/checkout@v5.0.0 - name: Set up Python - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: "3.13" - name: Install dependencies @@ -39,7 +39,7 @@ jobs: steps: - uses: actions/checkout@v5.0.0 - name: Set up Python - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: "3.13" - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0647754dc..230894101 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v5.0.0 with: fetch-depth: 0 - - uses: actions/setup-python@v5.6.0 + - uses: actions/setup-python@v6.0.0 with: python-version: "3.13" - run: pip install --upgrade tox diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 4da71860a..67e943bc8 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5.0.0 - - uses: actions/setup-python@v5.6.0 + - uses: actions/setup-python@v6.0.0 with: python-version: "3.13" - name: install tox diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d8c32dd8d..8397bf002 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -50,7 +50,7 @@ jobs: steps: - uses: actions/checkout@v5.0.0 - name: Set up Python ${{ matrix.python.version }} - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: ${{ matrix.python.version }} - name: Install dependencies @@ -69,7 +69,7 @@ jobs: steps: - uses: actions/checkout@v5.0.0 - name: Set up Python - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: "3.13" - name: Install dependencies @@ -91,7 +91,7 @@ jobs: steps: - uses: actions/checkout@v5.0.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: "3.13" - name: Install dependencies @@ -114,7 +114,7 @@ jobs: name: Python wheel steps: - uses: actions/checkout@v5.0.0 - - uses: actions/setup-python@v5.6.0 + - uses: actions/setup-python@v6.0.0 with: python-version: "3.13" - name: Install dependencies @@ -133,7 +133,7 @@ jobs: steps: - uses: actions/checkout@v5.0.0 - name: Set up Python - uses: actions/setup-python@v5.6.0 + uses: actions/setup-python@v6.0.0 with: python-version: '3.13' - uses: actions/download-artifact@v5.0.0 From b85bf57355207e4227cd8b63d4ed1d66c27c4fe5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Sep 2025 10:27:58 +0000 Subject: [PATCH 40/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 4 ++-- requirements-test.txt | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cdf090887..650d6a88b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.3.1 + uses: python-semantic-release/python-semantic-release@v10.4.0 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/publish-action@v10.3.1 + uses: python-semantic-release/publish-action@v10.4.0 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8397bf002..b10041f30 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -79,7 +79,7 @@ jobs: TOXENV: ${{ matrix.toxenv }} run: tox -- --override-ini='log_cli=True' - name: Upload codecov coverage - uses: codecov/codecov-action@v5.5.0 + uses: codecov/codecov-action@v5.5.1 with: files: ./coverage.xml flags: ${{ matrix.toxenv }} @@ -102,7 +102,7 @@ jobs: TOXENV: cover run: tox - name: Upload codecov coverage - uses: codecov/codecov-action@v5.5.0 + uses: codecov/codecov-action@v5.5.1 with: files: ./coverage.xml flags: unit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf5dd8e24..ccca915e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen - rev: v4.8.3 + rev: v4.8.4 hooks: - id: commitizen stages: [commit-msg] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.82.10 + rev: 41.97.10 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 6d326d8bd..6485cadaa 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,12 +1,12 @@ -r requirements.txt argcomplete==2.0.0 black==25.1.0 -commitizen==4.8.3 +commitizen==4.8.4 flake8==7.3.0 isort==6.0.1 mypy==1.17.1 pylint==3.3.8 -pytest==8.4.1 +pytest==8.4.2 responses==0.25.8 respx==0.22.0 types-PyYAML==6.0.12.20250822 diff --git a/requirements-test.txt b/requirements-test.txt index 36e60a2bb..a0ab0950f 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,11 +1,11 @@ -r requirements.txt anyio==4.10.0 build==1.3.0 -coverage==7.10.5 +coverage==7.10.6 pytest-console-scripts==1.4.1 -pytest-cov==6.2.1 +pytest-cov==6.3.0 pytest-github-actions-annotate-failures==0.3.0 -pytest==8.4.1 +pytest==8.4.2 PyYaml==6.0.2 responses==0.25.8 respx==0.22.0 From 6d6641f9bb14752da422d8c35fae53ab2c05a237 Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Mon, 8 Sep 2025 18:39:02 +0200 Subject: [PATCH 41/89] feat(users): implement missing arguments in users 'list' * feat(users): sort 'user list' arguments against documentation * feat(users): implement support for 'humans' in users 'list' * feat(users): implement support for 'public_email' in users 'list' * feat(users): implement 'created_*/exclude_*/without_*' in users 'list' * feat(users): implement 'without_projects/skip_ldap/auditors' in administrators 'list' Signed-off-by: Adrian DC --- gitlab/v4/objects/users.py | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/gitlab/v4/objects/users.py b/gitlab/v4/objects/users.py index 2c2393eba..1e3941732 100644 --- a/gitlab/v4/objects/users.py +++ b/gitlab/v4/objects/users.py @@ -400,17 +400,29 @@ class UserManager(CRUDMixin[User]): _obj_cls = User _list_filters = ( + "username", + "public_email", + "search", "active", + "external", "blocked", - "username", + "humans", + "created_after", + "created_before", + "exclude_active", + "exclude_external", + "exclude_humans", + "exclude_internal", + "without_project_bots", "extern_uid", "provider", - "external", - "search", - "custom_attributes", - "status", "two_factor", + "without_projects", "admins", + "auditors", + "skip_ldap", + "custom_attributes", + "status", ) _create_attrs = RequiredOptional( optional=( From 8e9bcea96197b8df872d6c1ac5b9add557611dc2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 01:03:10 +0000 Subject: [PATCH 42/89] chore(deps): update actions/stale action to v10 --- .github/workflows/stale.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 0b6cbe5db..1b4e9728d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -15,7 +15,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v9.1.0 + - uses: actions/stale@v10.0.0 with: operations-per-run: 500 stale-issue-label: "stale" From 6bd388ff6603765ce7a21727af0afded6001137c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Sep 2025 01:38:01 +0000 Subject: [PATCH 43/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 ++-- .pre-commit-config.yaml | 6 +++--- requirements-lint.txt | 6 +++--- requirements-test.txt | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 650d6a88b..2a3cc1ec7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.4.0 + uses: python-semantic-release/python-semantic-release@v10.4.1 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/publish-action@v10.4.0 + uses: python-semantic-release/publish-action@v10.4.1 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ccca915e1..67ce206ee 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen - rev: v4.8.4 + rev: v4.9.1 hooks: - id: commitizen stages: [commit-msg] @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.17.1 + rev: v1.18.1 hooks: - id: mypy args: [] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.97.10 + rev: 41.113.3 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 6485cadaa..697c17f54 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,14 +1,14 @@ -r requirements.txt argcomplete==2.0.0 black==25.1.0 -commitizen==4.8.4 +commitizen==4.9.1 flake8==7.3.0 isort==6.0.1 -mypy==1.17.1 +mypy==1.18.1 pylint==3.3.8 pytest==8.4.2 responses==0.25.8 respx==0.22.0 types-PyYAML==6.0.12.20250822 -types-requests==2.32.4.20250809 +types-requests==2.32.4.20250913 types-setuptools==80.9.0.20250822 diff --git a/requirements-test.txt b/requirements-test.txt index a0ab0950f..7553600ea 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -9,5 +9,5 @@ pytest==8.4.2 PyYaml==6.0.2 responses==0.25.8 respx==0.22.0 -trio==0.30.0 +trio==0.31.0 wheel==0.45.1 From fd61d4418ca36f8d2dcc526d4c324de68ba57d7e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 23 Sep 2025 09:06:50 +0000 Subject: [PATCH 44/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 6 +++--- requirements-lint.txt | 6 +++--- requirements-test.txt | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 67ce206ee..1eae958af 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/psf/black - rev: 25.1.0 + rev: 25.9.0 hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.18.1 + rev: v1.18.2 hooks: - id: mypy args: [] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.113.3 + rev: 41.125.3 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 697c17f54..b6d417096 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,14 +1,14 @@ -r requirements.txt argcomplete==2.0.0 -black==25.1.0 +black==25.9.0 commitizen==4.9.1 flake8==7.3.0 isort==6.0.1 -mypy==1.18.1 +mypy==1.18.2 pylint==3.3.8 pytest==8.4.2 responses==0.25.8 respx==0.22.0 -types-PyYAML==6.0.12.20250822 +types-PyYAML==6.0.12.20250915 types-requests==2.32.4.20250913 types-setuptools==80.9.0.20250822 diff --git a/requirements-test.txt b/requirements-test.txt index 7553600ea..2dc907b87 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.10.0 build==1.3.0 -coverage==7.10.6 +coverage==7.10.7 pytest-console-scripts==1.4.1 pytest-cov==6.3.0 pytest-github-actions-annotate-failures==0.3.0 From 952ba19f8f0b10973cd2b3cdf51817528f558f8a Mon Sep 17 00:00:00 2001 From: semantic-release Date: Sun, 28 Sep 2025 01:15:20 +0000 Subject: [PATCH 45/89] chore: release v6.4.0 --- gitlab/_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/_version.py b/gitlab/_version.py index c9434cd63..88108a3fa 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "6.3.0" +__version__ = "6.4.0" From 0e3887bb8cb0457c1dc75b73779c2dd458bb3e44 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 7 Oct 2025 02:38:49 +0000 Subject: [PATCH 46/89] chore(deps): update all non-major dependencies --- .github/workflows/stale.yml | 2 +- .pre-commit-config.yaml | 6 +++--- requirements-docs.txt | 2 +- requirements-lint.txt | 4 ++-- requirements-test.txt | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 1b4e9728d..61e7c4704 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -15,7 +15,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v10.0.0 + - uses: actions/stale@v10.1.0 with: operations-per-run: 500 stale-issue-label: "stale" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1eae958af..34887048e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,11 +16,11 @@ repos: hooks: - id: flake8 - repo: https://github.com/pycqa/isort - rev: 6.0.1 + rev: 6.1.0 hooks: - id: isort - repo: https://github.com/pycqa/pylint - rev: v3.3.8 + rev: v3.3.9 hooks: - id: pylint additional_dependencies: @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.125.3 + rev: 41.138.1 hooks: - id: renovate-config-validator diff --git a/requirements-docs.txt b/requirements-docs.txt index 39f5f61e2..ab492bd7c 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,5 +1,5 @@ -r requirements.txt -furo==2025.7.19 +furo==2025.9.25 jinja2==3.1.6 myst-parser==4.0.1 sphinx==8.2.3 diff --git a/requirements-lint.txt b/requirements-lint.txt index b6d417096..81ca68a17 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -3,9 +3,9 @@ argcomplete==2.0.0 black==25.9.0 commitizen==4.9.1 flake8==7.3.0 -isort==6.0.1 +isort==6.1.0 mypy==1.18.2 -pylint==3.3.8 +pylint==3.3.9 pytest==8.4.2 responses==0.25.8 respx==0.22.0 diff --git a/requirements-test.txt b/requirements-test.txt index 2dc907b87..73a5ea3b4 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,12 +1,12 @@ -r requirements.txt -anyio==4.10.0 +anyio==4.11.0 build==1.3.0 coverage==7.10.7 pytest-console-scripts==1.4.1 pytest-cov==6.3.0 pytest-github-actions-annotate-failures==0.3.0 pytest==8.4.2 -PyYaml==6.0.2 +PyYaml==6.0.3 responses==0.25.8 respx==0.22.0 trio==0.31.0 From 6174ee82f47897896ce009ea43a746e9343f7caf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 7 Oct 2025 03:03:01 +0000 Subject: [PATCH 47/89] chore(deps): update dependency sphinx-autobuild to v2025 --- requirements-docs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-docs.txt b/requirements-docs.txt index ab492bd7c..b83ef6dac 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -4,4 +4,4 @@ jinja2==3.1.6 myst-parser==4.0.1 sphinx==8.2.3 sphinxcontrib-autoprogram==0.1.9 -sphinx-autobuild==2024.10.3 +sphinx-autobuild==2025.8.25 From 14b9e4b4eafebcbd90d83cbaafff3e634004b4c7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 Oct 2025 01:08:43 +0000 Subject: [PATCH 48/89] chore(deps): update all non-major dependencies --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/test.yml | 8 ++++---- .gitlab-ci.yml | 2 +- .pre-commit-config.yaml | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 40e720b4c..001aca5e2 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,7 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6.0.0 with: - python-version: "3.13" + python-version: "3.14" - name: Install dependencies run: pip install tox - name: Build docs @@ -41,7 +41,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6.0.0 with: - python-version: "3.13" + python-version: "3.14" - name: Install dependencies run: pip install tox twine wheel - name: Check twine readme rendering diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 230894101..4148fcaeb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -27,7 +27,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@v6.0.0 with: - python-version: "3.13" + python-version: "3.14" - run: pip install --upgrade tox - name: Run commitizen (https://commitizen-tools.github.io/commitizen/) run: tox -e cz diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 67e943bc8..9bc366f6d 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v5.0.0 - uses: actions/setup-python@v6.0.0 with: - python-version: "3.13" + python-version: "3.14" - name: install tox run: pip install tox==3.26.0 - name: pre-commit diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b10041f30..94dde7910 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -71,7 +71,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6.0.0 with: - python-version: "3.13" + python-version: "3.14" - name: Install dependencies run: pip install tox - name: Run tests @@ -93,7 +93,7 @@ jobs: - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.0.0 with: - python-version: "3.13" + python-version: "3.14" - name: Install dependencies run: pip install tox - name: Run tests @@ -116,7 +116,7 @@ jobs: - uses: actions/checkout@v5.0.0 - uses: actions/setup-python@v6.0.0 with: - python-version: "3.13" + python-version: "3.14" - name: Install dependencies run: | pip install -r requirements-test.txt @@ -135,7 +135,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6.0.0 with: - python-version: '3.13' + python-version: '3.14' - uses: actions/download-artifact@v5.0.0 with: name: dist diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b1094aa9a..8a396443b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: python:3.13 +image: python:3.14 stages: - build diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 34887048e..75b98ce66 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.138.1 + rev: 41.146.0 hooks: - id: renovate-config-validator From b0324b570e679fdc21c35a662555113badceede1 Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Mon, 8 Sep 2025 18:39:02 +0200 Subject: [PATCH 49/89] feat(users): implement 'skip_confirmation' in users 'emails' creation Signed-off-by: Adrian DC --- gitlab/v4/objects/users.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gitlab/v4/objects/users.py b/gitlab/v4/objects/users.py index 1e3941732..be0e36529 100644 --- a/gitlab/v4/objects/users.py +++ b/gitlab/v4/objects/users.py @@ -502,7 +502,9 @@ class UserEmailManager( _path = "/users/{user_id}/emails" _obj_cls = UserEmail _from_parent_attrs = {"user_id": "id"} - _create_attrs = RequiredOptional(required=("email",)) + _create_attrs = RequiredOptional( + required=("email",), optional=("skip_confirmation",) + ) class UserActivities(RESTObject): From ad35763e008f858920512281ab33b35cbcab2dc3 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 17 Oct 2025 10:30:44 -0700 Subject: [PATCH 50/89] ci(stale): fix permission for stale action and allow manual run As documented at: https://github.com/actions/stale it requires the "actions: write" permission. Also allow manually running the stale action. --- .github/workflows/stale.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 61e7c4704..e75866b21 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -3,10 +3,12 @@ name: 'Close stale issues and PRs' on: schedule: - cron: '30 1 * * *' + workflow_dispatch: # For manual runs permissions: issues: write pull-requests: write + actions: write concurrency: group: lock From eab914241e44fbcd1628f8f3b2bd16af047e496d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Oct 2025 19:33:12 +0000 Subject: [PATCH 51/89] chore(deps): update dependency pytest-cov to v7 --- requirements-test.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index 73a5ea3b4..369c95673 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -3,7 +3,7 @@ anyio==4.11.0 build==1.3.0 coverage==7.10.7 pytest-console-scripts==1.4.1 -pytest-cov==6.3.0 +pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 pytest==8.4.2 PyYaml==6.0.3 From 52b3a9ff78e913b2eb5d5b3a0622872a630ad107 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 17 Oct 2025 13:07:33 -0700 Subject: [PATCH 52/89] feat(api): add content_ref and dry_run_ref parameters to ProjectCiLintManager Add support for the new GitLab API parameters for validating existing CI/CD configurations: - content_ref: specify the branch, tag, or SHA to validate - dry_run_ref: set branch/tag context for dry run simulations The deprecated 'ref' parameter is kept for backward compatibility. Also update documentation with examples showing how to validate CI configuration from specific branches and with dry run simulation. Fixes #3260 --- docs/gl_objects/ci_lint.rst | 12 ++++++++++++ gitlab/v4/objects/ci_lint.py | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/gl_objects/ci_lint.rst b/docs/gl_objects/ci_lint.rst index b44b09486..69a403eac 100644 --- a/docs/gl_objects/ci_lint.rst +++ b/docs/gl_objects/ci_lint.rst @@ -46,6 +46,18 @@ Lint a project's CI configuration:: assert lint_result.valid is True # Test that the .gitlab-ci.yml is valid print(lint_result.merged_yaml) # Print the merged YAML file +Lint a project's CI configuration from a specific branch or tag:: + + lint_result = project.ci_lint.get(content_ref="main") + assert lint_result.valid is True # Test that the .gitlab-ci.yml is valid + print(lint_result.merged_yaml) # Print the merged YAML file + +Lint a project's CI configuration with dry run simulation:: + + lint_result = project.ci_lint.get(dry_run=True, dry_run_ref="develop") + assert lint_result.valid is True # Test that the .gitlab-ci.yml is valid + print(lint_result.merged_yaml) # Print the merged YAML file + Lint a CI YAML configuration with a namespace:: lint_result = project.ci_lint.create({"content": gitlab_ci_yml}) diff --git a/gitlab/v4/objects/ci_lint.py b/gitlab/v4/objects/ci_lint.py index 01d38373d..9bbe9f7e4 100644 --- a/gitlab/v4/objects/ci_lint.py +++ b/gitlab/v4/objects/ci_lint.py @@ -51,7 +51,14 @@ class ProjectCiLintManager( _path = "/projects/{project_id}/ci/lint" _obj_cls = ProjectCiLint _from_parent_attrs = {"project_id": "id"} - _optional_get_attrs = ("dry_run", "include_jobs", "ref") + _optional_get_attrs = ( + "content_ref", + "dry_run", + "dry_run_ref", + "include_jobs", + "ref", + ) + _create_attrs = RequiredOptional( required=("content",), optional=("dry_run", "include_jobs", "ref") ) From 2358e5390f84c6e848d9cd421411250cfcfedfa3 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 17 Oct 2025 12:23:19 -0700 Subject: [PATCH 53/89] fix(semantic-release): enable CHANGELOG.md generation Also update CHANGELOG.md with missing entries. Exclude dependency updates from being added to the CHANGELOG.md file in the future. Closes: #3209 --- CHANGELOG.md | 162 +++++++++++++++++++++++++++++++++++++++++++++++++ pyproject.toml | 7 +++ 2 files changed, 169 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index c4cf99cd4..4b057cdbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,167 @@ # CHANGELOG +All versions below are listed in reverse chronological order. + +## v6.4.0 (2025-09-28) + +### Features + +- **users**: Implement missing arguments in users 'list' + ([`99923d4`](https://github.com/python-gitlab/python-gitlab/commit/99923d40dcb4f32f02bcbc5e8ef5ec4b77e3cb02)) + +- **users**: Sort 'user list' arguments against documentation + ([`99923d4`](https://github.com/python-gitlab/python-gitlab/commit/99923d40dcb4f32f02bcbc5e8ef5ec4b77e3cb02)) + + +## v6.3.0 (2025-08-28) + +### Features + +- Add sync method to force remote mirror updates + ([`f3c6678`](https://github.com/python-gitlab/python-gitlab/commit/f3c6678482b7ca35b1dd1e3bc49fc0c56cd03639)) + +- **api**: Add missing ProjectJob list filters + ([`5fe0e71`](https://github.com/python-gitlab/python-gitlab/commit/5fe0e715448b00a666f76cdce6db321686f6a271)) + +- **api**: Add missing ProjectPackageManager list filters + ([`b1696be`](https://github.com/python-gitlab/python-gitlab/commit/b1696be5fb223028755e303069e23e42a11cab42)) + +- **users**: Implement support for 'admins' in administrators 'list' + ([`aaed51c`](https://github.com/python-gitlab/python-gitlab/commit/aaed51cdec65c8acabe8b9a39fd18c7e1e48519c)) + + +## v6.2.0 (2025-07-28) + +### Build System + +- **release**: Use correct python-semantic-release/publish-action + ([`2f20634`](https://github.com/python-gitlab/python-gitlab/commit/2f20634b9700bc802177278ffdd7bdf83ef1605a)) + +### Continuous Integration + +- **stale**: Improve formatting of stale message + ([`0ef20d1`](https://github.com/python-gitlab/python-gitlab/commit/0ef20d1b0ee6cd82c4e34003aca4c0c72935f4d9)) + +- **stale**: Increase `operations-per-run` to 500 + ([`326e1a4`](https://github.com/python-gitlab/python-gitlab/commit/326e1a46881467f41dc3de5f060ac654924fbe40)) + +### Features + +- **api**: Add ListMixin to ProjectIssueDiscussionNoteManager + ([`f908f0e`](https://github.com/python-gitlab/python-gitlab/commit/f908f0e82840a5df374e8fbfb1298608d23f02bd)) + +- **api**: Add ListMixin to ProjectMergeRequestDiscussionNoteManager + ([`865339a`](https://github.com/python-gitlab/python-gitlab/commit/865339ac037fb125280180b05a2c4e44067dc5e9)) + + +## v6.1.0 (2025-06-28) + +### Chores + +- Update to mypy 1.16.0 and resolve issues found + ([`f734c58`](https://github.com/python-gitlab/python-gitlab/commit/f734c586e3fe5a0e866bcf60030107ca142fa763)) + +### Documentation + +- Update CONTRIBUTING.rst with policy on issue management + ([`45dda50`](https://github.com/python-gitlab/python-gitlab/commit/45dda50ff4c0e01307480befa86498600563f818)) + +### Features + +- **api**: Add listing user contributed projects + ([`98c1307`](https://github.com/python-gitlab/python-gitlab/commit/98c13074127ae46d85545498746d55c8b75aef48)) + +- **api**: Add support for project tag list filters + ([`378a836`](https://github.com/python-gitlab/python-gitlab/commit/378a836bf5744ca6c9409dd60899e5d2f90b55be)) + +- **api**: Pipeline inputs support + ([#3194](https://github.com/python-gitlab/python-gitlab/pull/3194), + [`306c4b1`](https://github.com/python-gitlab/python-gitlab/commit/306c4b1931e2b03d7cbcef5773668e876d5644b1)) + +- **const**: Add PLANNER_ACCESS constant + ([`ba6f174`](https://github.com/python-gitlab/python-gitlab/commit/ba6f174896f908ba711e1e3e8ebf4692c86bd3d4)) + +- **groups**: Add protectedbranches to group class + ([#3164](https://github.com/python-gitlab/python-gitlab/pull/3164), + [`bfd31a8`](https://github.com/python-gitlab/python-gitlab/commit/bfd31a867547dffb2c2d54127e184fefa058cb30)) + + +## v6.0.0 (2025-06-04) + +### Chores + +- Add reformat code commit to .git-blame-ignore-revs + ([`a6ac939`](https://github.com/python-gitlab/python-gitlab/commit/a6ac9392b0e543df32adf9058f9808d199149982)) + +- Reformat code with skip_magic_trailing_comma = true + ([`2100aa4`](https://github.com/python-gitlab/python-gitlab/commit/2100aa458ba4f1c084bc97b00f7ba1693541d68a)) + +- Remove trivial get methods in preparation for generic Get mixin + ([`edd01a5`](https://github.com/python-gitlab/python-gitlab/commit/edd01a57aa8c45e6514e618263003beaa0fb68e8)) + +- Upgrade to sphinx 8.2.1 and resolve issues + ([`d0b5ae3`](https://github.com/python-gitlab/python-gitlab/commit/d0b5ae36bd0bc06f1f338adbd93d76a83a0fa459)) + +- **ci**: Replace docs artifact with readthedocs previews + ([`193c5de`](https://github.com/python-gitlab/python-gitlab/commit/193c5de9b443193da3f87d664a777f056d920146)) + +### Documentation + +- Use get_all keyword arg instead of all in docstrings + ([`f62dda7`](https://github.com/python-gitlab/python-gitlab/commit/f62dda7fa44e3bc46f03bd6402eba3f641f365eb)) + +- Use list(get_all=True) in documentation examples + ([`f36614f`](https://github.com/python-gitlab/python-gitlab/commit/f36614f1ce5a873ed1bbb8618ced39fa80f13ee6)) + +- **api-usage**: Fix GitLab API links to the publicly accessible URLs + ([`f55fa15`](https://github.com/python-gitlab/python-gitlab/commit/f55fa152cdccc0dd4815f17df9ff80628115667d)) + +- **api-usage-graphql**: Fix the example graphql query string + ([`8dbdd7e`](https://github.com/python-gitlab/python-gitlab/commit/8dbdd7e75447d01a457ac55f18066ebd355e4dbf)) + +- **job_token_scope**: Fix typo/inconsistency + ([`203bd92`](https://github.com/python-gitlab/python-gitlab/commit/203bd92e524845a3e1287439d78c167133347a69)) + +### Features + +- Adds member role methods + ([`055557e`](https://github.com/python-gitlab/python-gitlab/commit/055557efe9de9d4ab7b8237f7de7e033a6b02cd9)) + +- **api**: Add iteration_id as boards create attribute + ([#3191](https://github.com/python-gitlab/python-gitlab/pull/3191), + [`938b0d9`](https://github.com/python-gitlab/python-gitlab/commit/938b0d9c188bcffc6759184325bf292131307556)) + +- **api**: Add support for adding instance deploy keys + ([`22be96c`](https://github.com/python-gitlab/python-gitlab/commit/22be96cbe698f5d8b18be388edf9b01d6008d1dd)) + +- **api**: Add support for avatar removal + ([`5edd2e6`](https://github.com/python-gitlab/python-gitlab/commit/5edd2e66cd5d4cd48fcf5f996d4ad4c3d495b3fa)) + +- **api**: Add support for token self-rotation + ([`da40e09`](https://github.com/python-gitlab/python-gitlab/commit/da40e09498277467878b810aa44f86b48813d832)) + +- **api**: ListMixin.list typing overload + ([`6eee494`](https://github.com/python-gitlab/python-gitlab/commit/6eee494749ccc5387a0d3af7ce331cfb1e95308b)) + +- **api**: Make RESTManager generic on RESTObject class + ([`91c4f18`](https://github.com/python-gitlab/python-gitlab/commit/91c4f18dc49a7eed101ce5f004f396436c6ef7eb)) + +- **api**: Make RESTObjectList typing generic + ([`befba35`](https://github.com/python-gitlab/python-gitlab/commit/befba35a16c5543c5f270996a9bf7a4277482915)) + +- **settings**: Implement support for 'silent_mode_enabled' + ([`a9163a9`](https://github.com/python-gitlab/python-gitlab/commit/a9163a9775b3f9a7b729048fab83bb0bca7228b5)) + +### Refactoring + +- Use more python3.9 syntax + ([`4e90c11`](https://github.com/python-gitlab/python-gitlab/commit/4e90c113f1af768b8b049f4a64c5978a1bfbf323)) + +### Testing + +- **functional**: Switch to new runner registration API + ([`cbc613d`](https://github.com/python-gitlab/python-gitlab/commit/cbc613d0f2ccd8ec021bf789b337104489a3e5f1)) + ## v5.6.0 (2025-01-28) diff --git a/pyproject.toml b/pyproject.toml index 5104c2b16..5aad28aee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,6 +101,13 @@ version_variables = [ ] commit_message = "chore: release v{version}" +[tool.semantic_release.changelog] +exclude_commit_patterns = [ + '''chore\(deps\): .+''', # Exclude dependency updates from the changelog +] +mode = "update" +insertion_flag = "All versions below are listed in reverse chronological order." + [tool.pylint.messages_control] max-line-length = 88 jobs = 0 # Use auto-detected number of multiple processes to speed up Pylint. From 5dba4d2c1ce008c9cda0c10e479e1569b5a1a107 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Fri, 17 Oct 2025 10:03:07 -0700 Subject: [PATCH 54/89] docs(pull_mirror): fix incorrect start() method usage example The documentation incorrectly showed calling start() on the ProjectPullMirror object (mirror.start()), but the method only exists on the ProjectPullMirrorManager. Updated the example to show the correct usage: project.pull_mirror.start(). Fixes #3269 --- docs/gl_objects/pull_mirror.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/gl_objects/pull_mirror.rst b/docs/gl_objects/pull_mirror.rst index bc83ba36d..19e8a1946 100644 --- a/docs/gl_objects/pull_mirror.rst +++ b/docs/gl_objects/pull_mirror.rst @@ -33,6 +33,6 @@ Update an existing remote mirror's attributes:: mirror.only_protected_branches = True mirror.save() -Start an sync of the pull mirror:: +Start a sync of the pull mirror:: - mirror.start() + project.pull_mirror.start() From 5eafe1251f746a09f797fcf188c44bfc9ec8c70b Mon Sep 17 00:00:00 2001 From: semantic-release Date: Fri, 17 Oct 2025 21:39:38 +0000 Subject: [PATCH 55/89] chore: release v6.5.0 --- CHANGELOG.md | 26 ++++++++++++++++++++++++++ gitlab/_version.py | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b057cdbe..f13242484 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,32 @@ All versions below are listed in reverse chronological order. +## v6.5.0 (2025-10-17) + +### Bug Fixes + +- **semantic-release**: Enable CHANGELOG.md generation + ([`fb9693b`](https://github.com/python-gitlab/python-gitlab/commit/fb9693bf1e6798149196e57fed87bf2588ad3b47)) + +### Continuous Integration + +- **stale**: Fix permission for stale action and allow manual run + ([`9357a37`](https://github.com/python-gitlab/python-gitlab/commit/9357a374702dcc8049a6d8af636f48c736d3f160)) + +### Documentation + +- **pull_mirror**: Fix incorrect start() method usage example + ([`2acac19`](https://github.com/python-gitlab/python-gitlab/commit/2acac19356c8624def90c7e54237b256bceece18)) + +### Features + +- **api**: Add content_ref and dry_run_ref parameters to ProjectCiLintManager + ([`e8d2538`](https://github.com/python-gitlab/python-gitlab/commit/e8d2538cdf85a7c57babbc00074efbdab97548cd)) + +- **users**: Implement 'skip_confirmation' in users 'emails' creation + ([`2981730`](https://github.com/python-gitlab/python-gitlab/commit/298173017be387f26aa0828cae1e9a48e3cce328)) + + ## v6.4.0 (2025-09-28) ### Features diff --git a/gitlab/_version.py b/gitlab/_version.py index 88108a3fa..5c642f8f0 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "6.4.0" +__version__ = "6.5.0" From d371e424d710cbb2a48ef2b4b08d0660be041758 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 02:43:25 +0000 Subject: [PATCH 56/89] chore(deps): update dependency pylint to v4 --- requirements-lint.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-lint.txt b/requirements-lint.txt index 81ca68a17..67fcbb647 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -5,7 +5,7 @@ commitizen==4.9.1 flake8==7.3.0 isort==6.1.0 mypy==1.18.2 -pylint==3.3.9 +pylint==4.0.1 pytest==8.4.2 responses==0.25.8 respx==0.22.0 From efd5a057dc24bef7ec265f51dc420a0724fc870e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 03:01:55 +0000 Subject: [PATCH 57/89] chore(deps): update dependency isort to v7 --- requirements-lint.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements-lint.txt b/requirements-lint.txt index 67fcbb647..b956034b6 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -3,7 +3,7 @@ argcomplete==2.0.0 black==25.9.0 commitizen==4.9.1 flake8==7.3.0 -isort==6.1.0 +isort==7.0.0 mypy==1.18.2 pylint==4.0.1 pytest==8.4.2 From e1d9d16cf78d7684c06b435dcab2dd4e4a5c2d48 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 04:11:53 +0000 Subject: [PATCH 58/89] chore(deps): update pre-commit hook pycqa/isort to v7 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 75b98ce66..fd18f39d1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,7 +16,7 @@ repos: hooks: - id: flake8 - repo: https://github.com/pycqa/isort - rev: 6.1.0 + rev: 7.0.0 hooks: - id: isort - repo: https://github.com/pycqa/pylint From aedba00995f2c5b935cbe8b7cfa724f621c3e2ea Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 20 Oct 2025 04:30:54 +0000 Subject: [PATCH 59/89] chore(deps): update pre-commit hook pycqa/pylint to v4 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd18f39d1..364d107a7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: hooks: - id: isort - repo: https://github.com/pycqa/pylint - rev: v3.3.9 + rev: v4.0.1 hooks: - id: pylint additional_dependencies: From 5a1d0a594257f05109dea18fd944635dc9effe9e Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Sun, 19 Oct 2025 22:27:41 -0700 Subject: [PATCH 60/89] chore(deps): upgrade coverage to 7.11.0 for Python > 3.9 For Python versions newer than 3.9 use 'coverage==7.11.0' For 3.9 and older continue to use 'coverage==7.10.7' --- requirements-test.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements-test.txt b/requirements-test.txt index 369c95673..8be29d41c 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,8 @@ -r requirements.txt anyio==4.11.0 build==1.3.0 -coverage==7.10.7 +coverage==7.10.7 ; python_version <= '3.9' +coverage==7.11.0 ; python_version > '3.9' pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 From 12d8cf3c43e732f58256287ae645debaf854f947 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 00:40:38 +0000 Subject: [PATCH 61/89] chore(deps): update github artifact actions --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 94dde7910..baf3f5262 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -122,7 +122,7 @@ jobs: pip install -r requirements-test.txt - name: Build package run: python -m build -o dist/ - - uses: actions/upload-artifact@v4.6.2 + - uses: actions/upload-artifact@v5.0.0 with: name: dist path: dist @@ -136,7 +136,7 @@ jobs: uses: actions/setup-python@v6.0.0 with: python-version: '3.14' - - uses: actions/download-artifact@v5.0.0 + - uses: actions/download-artifact@v6.0.0 with: name: dist path: dist From a021a8fe095a8b9668d20059f36ae0e41192b01e Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 29 Oct 2025 07:18:00 -0700 Subject: [PATCH 62/89] feat!: drop Python 3.9 support and add Python 3.14 Python 3.9 is End-of-Life (EOL) as of 2025-10 as stated in https://devguide.python.org/versions/ and https://peps.python.org/pep-0596/#lifespan By dropping support for Python 3.9 and requiring Python 3.10 or higher it allows python-gitlab to take advantage of new features in Python 3.10, which are documented at: https://docs.python.org/3/whatsnew/3.10.html Also mark Python 3.14 as officially supported as it has been released. Closes: https://github.com/python-gitlab/python-gitlab/issues/3285 BREAKING CHANGE: As of python-gitlab 7.0.0, Python 3.9 is no longer supported. Python 3.10 or higher is required. --- .github/workflows/test.yml | 12 +++++------- .readthedocs.yml | 2 +- README.rst | 2 +- pyproject.toml | 4 ++-- requirements-test.txt | 3 +-- tox.ini | 4 ++-- 6 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index baf3f5262..7f1b877ca 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,8 +26,6 @@ jobs: matrix: os: [ubuntu-latest] python: - - version: "3.9" - toxenv: py39,smoke - version: "3.10" toxenv: py310,smoke - version: "3.11" @@ -36,17 +34,17 @@ jobs: toxenv: py312,smoke - version: "3.13" toxenv: py313,smoke - - version: "3.14.0-alpha - 3.14" # SemVer's version range syntax + - version: "3.14" toxenv: py314,smoke include: - os: macos-latest python: - version: "3.13" - toxenv: py313,smoke + version: "3.14" + toxenv: py314,smoke - os: windows-latest python: - version: "3.13" - toxenv: py313,smoke + version: "3.14" + toxenv: py314,smoke steps: - uses: actions/checkout@v5.0.0 - name: Set up Python ${{ matrix.python.version }} diff --git a/.readthedocs.yml b/.readthedocs.yml index 2d561b88b..facdbd3f9 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -3,7 +3,7 @@ version: 2 build: os: ubuntu-22.04 tools: - python: "3.11" + python: "3.13" sphinx: configuration: docs/conf.py diff --git a/README.rst b/README.rst index 101add1eb..1b7b7ce48 100644 --- a/README.rst +++ b/README.rst @@ -53,7 +53,7 @@ Features Installation ------------ -As of 5.0.0, ``python-gitlab`` is compatible with Python 3.9+. +As of 7.0.0, ``python-gitlab`` is compatible with Python 3.10+. Use ``pip`` to install the latest stable version of ``python-gitlab``: diff --git a/pyproject.toml b/pyproject.toml index 5aad28aee..7b8510b94 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ maintainers = [ {name = "Nejc Habjan", email="nejc.habjan@siemens.com"}, {name = "Roger Meier", email="r.meier@siemens.com"} ] -requires-python = ">=3.9.0" +requires-python = ">=3.10.0" dependencies = [ "requests>=2.32.0", "requests-toolbelt>=1.0.0", @@ -30,11 +30,11 @@ classifiers = [ "Operating System :: Microsoft :: Windows", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", ] keywords = ["api", "client", "gitlab", "python", "python-gitlab", "wrapper"] license = {text = "LGPL-3.0-or-later"} diff --git a/requirements-test.txt b/requirements-test.txt index 8be29d41c..64b22c3af 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,8 +1,7 @@ -r requirements.txt anyio==4.11.0 build==1.3.0 -coverage==7.10.7 ; python_version <= '3.9' -coverage==7.11.0 ; python_version > '3.9' +coverage==7.11.0 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 diff --git a/tox.ini b/tox.ini index 05a15c6c4..0ba295692 100644 --- a/tox.ini +++ b/tox.ini @@ -2,14 +2,14 @@ minversion = 4.0 skipsdist = True skip_missing_interpreters = True -envlist = py313,py312,py311,py310,py39,black,isort,flake8,mypy,twine-check,cz,pylint +envlist = py314,py313,py312,py311,py310,black,isort,flake8,mypy,twine-check,cz,pylint # NOTE(jlvillal): To use a label use the `-m` flag. # For example to run the `func` label group of environments do: # tox -m func labels = lint = black,isort,flake8,mypy,pylint,cz - unit = py313,py312,py311,py310,py39,py38 + unit = py314,py313,py312,py311,py310 # func is the functional tests. This is very time consuming. func = cli_func_v4,api_func_v4 From 8356459521701aa7e7d5a7c81206851e5e0c7fa7 Mon Sep 17 00:00:00 2001 From: semantic-release Date: Wed, 29 Oct 2025 15:05:36 +0000 Subject: [PATCH 63/89] chore: release v7.0.0 --- CHANGELOG.md | 12 ++++++++++++ gitlab/_version.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f13242484..de7c0d113 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,18 @@ All versions below are listed in reverse chronological order. +## v7.0.0 (2025-10-29) + +### Features + +- Drop Python 3.9 support and add Python 3.14 + ([`22941ac`](https://github.com/python-gitlab/python-gitlab/commit/22941acc3f331d5b683599c014ec962ece5d4b76)) + +### Breaking Changes + +- As of python-gitlab 7.0.0, Python 3.9 is no longer supported. Python 3.10 or higher is required. + + ## v6.5.0 (2025-10-17) ### Bug Fixes diff --git a/gitlab/_version.py b/gitlab/_version.py index 5c642f8f0..e7817062d 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "6.5.0" +__version__ = "7.0.0" From b52b5f44f315df1410a0a93508407a43a2882287 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 29 Oct 2025 22:51:20 +0000 Subject: [PATCH 64/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 364d107a7..684696497 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: hooks: - id: isort - repo: https://github.com/pycqa/pylint - rev: v4.0.1 + rev: v4.0.2 hooks: - id: pylint additional_dependencies: @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.146.0 + rev: 41.165.3 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index b956034b6..3cffe0d99 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -5,7 +5,7 @@ commitizen==4.9.1 flake8==7.3.0 isort==7.0.0 mypy==1.18.2 -pylint==4.0.1 +pylint==4.0.2 pytest==8.4.2 responses==0.25.8 respx==0.22.0 From 20b205834ac1b9c1c2fd9f2b6a26cf04e04002df Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 29 Oct 2025 08:41:03 -0700 Subject: [PATCH 65/89] ci(release): use the correct token for publish to GitHub For the: "Publish package distributions to GitHub Releases" use the correct `secrets.RELEASE_GITHUB_TOKEN`. Before it was using `secrets.GITHUB_TOKEN` The other steps are already using `secrets.RELEASE_GITHUB_TOKEN` Closes: https://github.com/python-gitlab/python-gitlab/issues/3288 --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a3cc1ec7..996c096ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,4 +35,4 @@ jobs: uses: python-semantic-release/publish-action@v10.4.1 if: steps.release.outputs.released == 'true' with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} From 2054e8a1371198f4f3e1e9f5d34edfb50321c636 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 3 Nov 2025 18:04:51 +0000 Subject: [PATCH 66/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 2 +- requirements-test.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 684696497..963fecc3b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.165.3 + rev: 41.169.2 hooks: - id: renovate-config-validator diff --git a/requirements-test.txt b/requirements-test.txt index 64b22c3af..da7703a8b 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -9,5 +9,5 @@ pytest==8.4.2 PyYaml==6.0.3 responses==0.25.8 respx==0.22.0 -trio==0.31.0 +trio==0.32.0 wheel==0.45.1 From 9e6d908073cd55171ae1a81fb55d0a43216fc49d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 10 Nov 2025 03:07:56 +0000 Subject: [PATCH 67/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 2 +- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 2 +- requirements-precommit.txt | 2 +- requirements-test.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 996c096ea..0699b6885 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.4.1 + uses: python-semantic-release/python-semantic-release@v10.5.0 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 963fecc3b..b2e6bf30d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/psf/black - rev: 25.9.0 + rev: 25.11.0 hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.169.2 + rev: 41.173.1 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 3cffe0d99..427e28e23 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,6 +1,6 @@ -r requirements.txt argcomplete==2.0.0 -black==25.9.0 +black==25.11.0 commitizen==4.9.1 flake8==7.3.0 isort==7.0.0 diff --git a/requirements-precommit.txt b/requirements-precommit.txt index 3ee862221..b6927360e 100644 --- a/requirements-precommit.txt +++ b/requirements-precommit.txt @@ -1 +1 @@ -pre-commit==4.3.0 +pre-commit==4.4.0 diff --git a/requirements-test.txt b/requirements-test.txt index da7703a8b..72bc4db00 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.11.0 build==1.3.0 -coverage==7.11.0 +coverage==7.11.3 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 From 0e90cfdb917d84f8fcbd4186c1c4fe5d53a56a0b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 02:08:47 +0000 Subject: [PATCH 68/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 ++-- .pre-commit-config.yaml | 4 ++-- requirements-docker.txt | 2 +- requirements-lint.txt | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0699b6885..3b9630fd9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.5.0 + uses: python-semantic-release/python-semantic-release@v10.5.2 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/publish-action@v10.4.1 + uses: python-semantic-release/publish-action@v10.5.2 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b2e6bf30d..9a2ad6138 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen - rev: v4.9.1 + rev: v4.10.0 hooks: - id: commitizen stages: [commit-msg] @@ -20,7 +20,7 @@ repos: hooks: - id: isort - repo: https://github.com/pycqa/pylint - rev: v4.0.2 + rev: v4.0.3 hooks: - id: pylint additional_dependencies: diff --git a/requirements-docker.txt b/requirements-docker.txt index 532609b3f..123a4438a 100644 --- a/requirements-docker.txt +++ b/requirements-docker.txt @@ -1,3 +1,3 @@ -r requirements.txt -r requirements-test.txt -pytest-docker==3.2.3 +pytest-docker==3.2.5 diff --git a/requirements-lint.txt b/requirements-lint.txt index 427e28e23..4b3722256 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,11 +1,11 @@ -r requirements.txt argcomplete==2.0.0 black==25.11.0 -commitizen==4.9.1 +commitizen==4.10.0 flake8==7.3.0 isort==7.0.0 mypy==1.18.2 -pylint==4.0.2 +pylint==4.0.3 pytest==8.4.2 responses==0.25.8 respx==0.22.0 From f2aa0ca8b88120c1f4ee6c7e2b8201c9206f622d Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 03:01:59 +0000 Subject: [PATCH 69/89] chore(deps): update dependency pytest to v9 --- requirements-lint.txt | 2 +- requirements-test.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements-lint.txt b/requirements-lint.txt index 4b3722256..241dd9042 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -6,7 +6,7 @@ flake8==7.3.0 isort==7.0.0 mypy==1.18.2 pylint==4.0.3 -pytest==8.4.2 +pytest==9.0.1 responses==0.25.8 respx==0.22.0 types-PyYAML==6.0.12.20250915 diff --git a/requirements-test.txt b/requirements-test.txt index 72bc4db00..5271bfa51 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,7 +5,7 @@ coverage==7.11.3 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 -pytest==8.4.2 +pytest==9.0.1 PyYaml==6.0.3 responses==0.25.8 respx==0.22.0 From b074cd6f00ba760b80e0c41e4369169e62259e09 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 17 Nov 2025 03:28:19 +0000 Subject: [PATCH 70/89] chore(deps): update pre-commit hook maxbrunet/pre-commit-renovate to v42 --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9a2ad6138..5a6adb1be 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 41.173.1 + rev: 42.11.0 hooks: - id: renovate-config-validator From 61243593a90ab50349e308d2643aedd22ef8b0ea Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 01:50:32 +0000 Subject: [PATCH 71/89] chore(deps): update all non-major dependencies --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 10 +++++----- .pre-commit-config.yaml | 2 +- requirements-precommit.txt | 2 +- requirements-test.txt | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 001aca5e2..d6bfe26ce 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: sphinx: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Set up Python uses: actions/setup-python@v6.0.0 with: @@ -37,7 +37,7 @@ jobs: twine-check: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Set up Python uses: actions/setup-python@v6.0.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 4148fcaeb..c097b8d30 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 with: fetch-depth: 0 - uses: actions/setup-python@v6.0.0 diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 9bc366f6d..52b5fba96 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -29,7 +29,7 @@ jobs: pre_commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - uses: actions/setup-python@v6.0.0 with: python-version: "3.14" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b9630fd9..7b219c218 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: id-token: write environment: pypi.org steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 with: fetch-depth: 0 token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f1b877ca..2ae02db98 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: version: "3.14" toxenv: py314,smoke steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Set up Python ${{ matrix.python.version }} uses: actions/setup-python@v6.0.0 with: @@ -65,7 +65,7 @@ jobs: matrix: toxenv: [api_func_v4, cli_func_v4] steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Set up Python uses: actions/setup-python@v6.0.0 with: @@ -87,7 +87,7 @@ jobs: coverage: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.0.0 with: @@ -111,7 +111,7 @@ jobs: runs-on: ubuntu-latest name: Python wheel steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - uses: actions/setup-python@v6.0.0 with: python-version: "3.14" @@ -129,7 +129,7 @@ jobs: runs-on: ubuntu-latest needs: [dist] steps: - - uses: actions/checkout@v5.0.0 + - uses: actions/checkout@v5.0.1 - name: Set up Python uses: actions/setup-python@v6.0.0 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5a6adb1be..2fca6428d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.11.0 + rev: 42.19.3 hooks: - id: renovate-config-validator diff --git a/requirements-precommit.txt b/requirements-precommit.txt index b6927360e..917f1957e 100644 --- a/requirements-precommit.txt +++ b/requirements-precommit.txt @@ -1 +1 @@ -pre-commit==4.4.0 +pre-commit==4.5.0 diff --git a/requirements-test.txt b/requirements-test.txt index 5271bfa51..2bd17b92e 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.11.0 build==1.3.0 -coverage==7.11.3 +coverage==7.12.0 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 From 4cb046abed1c334e457bbfc4427a4894f6827d0c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 24 Nov 2025 02:56:33 +0000 Subject: [PATCH 72/89] chore(deps): update actions/checkout action to v6 --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 10 +++++----- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d6bfe26ce..d9eba338d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: sphinx: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Set up Python uses: actions/setup-python@v6.0.0 with: @@ -37,7 +37,7 @@ jobs: twine-check: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Set up Python uses: actions/setup-python@v6.0.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c097b8d30..30dc1e6ce 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 with: fetch-depth: 0 - uses: actions/setup-python@v6.0.0 diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index 52b5fba96..bf29fd478 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -29,7 +29,7 @@ jobs: pre_commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - uses: actions/setup-python@v6.0.0 with: python-version: "3.14" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b219c218..413bdae23 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: id-token: write environment: pypi.org steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 with: fetch-depth: 0 token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ae02db98..78ebbd626 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: version: "3.14" toxenv: py314,smoke steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Set up Python ${{ matrix.python.version }} uses: actions/setup-python@v6.0.0 with: @@ -65,7 +65,7 @@ jobs: matrix: toxenv: [api_func_v4, cli_func_v4] steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Set up Python uses: actions/setup-python@v6.0.0 with: @@ -87,7 +87,7 @@ jobs: coverage: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.0.0 with: @@ -111,7 +111,7 @@ jobs: runs-on: ubuntu-latest name: Python wheel steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - uses: actions/setup-python@v6.0.0 with: python-version: "3.14" @@ -129,7 +129,7 @@ jobs: runs-on: ubuntu-latest needs: [dist] steps: - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@v6.0.0 - name: Set up Python uses: actions/setup-python@v6.0.0 with: From 0b05ef481ab51baea72e72fd17f229553d6ae60f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 02:01:29 +0000 Subject: [PATCH 73/89] chore(deps): update all non-major dependencies --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/test.yml | 10 +++++----- .pre-commit-config.yaml | 6 +++--- requirements-lint.txt | 4 ++-- requirements-test.txt | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index d9eba338d..696abe747 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -24,7 +24,7 @@ jobs: steps: - uses: actions/checkout@v6.0.0 - name: Set up Python - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: "3.14" - name: Install dependencies @@ -39,7 +39,7 @@ jobs: steps: - uses: actions/checkout@v6.0.0 - name: Set up Python - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: "3.14" - name: Install dependencies diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 30dc1e6ce..aa022f474 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -25,7 +25,7 @@ jobs: - uses: actions/checkout@v6.0.0 with: fetch-depth: 0 - - uses: actions/setup-python@v6.0.0 + - uses: actions/setup-python@v6.1.0 with: python-version: "3.14" - run: pip install --upgrade tox diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index bf29fd478..ad22f2a6e 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6.0.0 - - uses: actions/setup-python@v6.0.0 + - uses: actions/setup-python@v6.1.0 with: python-version: "3.14" - name: install tox diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78ebbd626..58b843c77 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,7 +48,7 @@ jobs: steps: - uses: actions/checkout@v6.0.0 - name: Set up Python ${{ matrix.python.version }} - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: ${{ matrix.python.version }} - name: Install dependencies @@ -67,7 +67,7 @@ jobs: steps: - uses: actions/checkout@v6.0.0 - name: Set up Python - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: "3.14" - name: Install dependencies @@ -89,7 +89,7 @@ jobs: steps: - uses: actions/checkout@v6.0.0 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: "3.14" - name: Install dependencies @@ -112,7 +112,7 @@ jobs: name: Python wheel steps: - uses: actions/checkout@v6.0.0 - - uses: actions/setup-python@v6.0.0 + - uses: actions/setup-python@v6.1.0 with: python-version: "3.14" - name: Install dependencies @@ -131,7 +131,7 @@ jobs: steps: - uses: actions/checkout@v6.0.0 - name: Set up Python - uses: actions/setup-python@v6.0.0 + uses: actions/setup-python@v6.1.0 with: python-version: '3.14' - uses: actions/download-artifact@v6.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2fca6428d..08ddcb73a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: hooks: - id: isort - repo: https://github.com/pycqa/pylint - rev: v4.0.3 + rev: v4.0.4 hooks: - id: pylint additional_dependencies: @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.18.2 + rev: v1.19.0 hooks: - id: mypy args: [] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.19.3 + rev: 42.27.0 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 241dd9042..bcf13fe69 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -4,8 +4,8 @@ black==25.11.0 commitizen==4.10.0 flake8==7.3.0 isort==7.0.0 -mypy==1.18.2 -pylint==4.0.3 +mypy==1.19.0 +pylint==4.0.4 pytest==9.0.1 responses==0.25.8 respx==0.22.0 diff --git a/requirements-test.txt b/requirements-test.txt index 2bd17b92e..c42011354 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,5 +1,5 @@ -r requirements.txt -anyio==4.11.0 +anyio==4.12.0 build==1.3.0 coverage==7.12.0 pytest-console-scripts==1.4.1 From 92e5057bd9f0ab048a576419fa8b5784e05cd893 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 8 Dec 2025 08:39:41 +0000 Subject: [PATCH 74/89] chore(deps): update all non-major dependencies --- .github/workflows/docs.yml | 4 ++-- .github/workflows/lint.yml | 2 +- .github/workflows/pre_commit.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/stale.yml | 2 +- .github/workflows/test.yml | 10 +++++----- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 4 ++-- requirements-test.txt | 2 +- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 696abe747..90f7d3fd5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -22,7 +22,7 @@ jobs: sphinx: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Set up Python uses: actions/setup-python@v6.1.0 with: @@ -37,7 +37,7 @@ jobs: twine-check: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Set up Python uses: actions/setup-python@v6.1.0 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index aa022f474..01bee8a33 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 with: fetch-depth: 0 - uses: actions/setup-python@v6.1.0 diff --git a/.github/workflows/pre_commit.yml b/.github/workflows/pre_commit.yml index ad22f2a6e..4be228d66 100644 --- a/.github/workflows/pre_commit.yml +++ b/.github/workflows/pre_commit.yml @@ -29,7 +29,7 @@ jobs: pre_commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - uses: actions/setup-python@v6.1.0 with: python-version: "3.14" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 413bdae23..c48d32445 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,7 +14,7 @@ jobs: id-token: write environment: pypi.org steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 with: fetch-depth: 0 token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index e75866b21..e4fd014a5 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -17,7 +17,7 @@ jobs: stale: runs-on: ubuntu-latest steps: - - uses: actions/stale@v10.1.0 + - uses: actions/stale@v10.1.1 with: operations-per-run: 500 stale-issue-label: "stale" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 58b843c77..b10f50c21 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,7 @@ jobs: version: "3.14" toxenv: py314,smoke steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Set up Python ${{ matrix.python.version }} uses: actions/setup-python@v6.1.0 with: @@ -65,7 +65,7 @@ jobs: matrix: toxenv: [api_func_v4, cli_func_v4] steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Set up Python uses: actions/setup-python@v6.1.0 with: @@ -87,7 +87,7 @@ jobs: coverage: runs-on: ubuntu-24.04 steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v6.1.0 with: @@ -111,7 +111,7 @@ jobs: runs-on: ubuntu-latest name: Python wheel steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - uses: actions/setup-python@v6.1.0 with: python-version: "3.14" @@ -129,7 +129,7 @@ jobs: runs-on: ubuntu-latest needs: [dist] steps: - - uses: actions/checkout@v6.0.0 + - uses: actions/checkout@v6.0.1 - name: Set up Python uses: actions/setup-python@v6.1.0 with: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 08ddcb73a..c9e61446b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ default_language_version: repos: - repo: https://github.com/psf/black - rev: 25.11.0 + rev: 25.12.0 hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.27.0 + rev: 42.39.4 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index bcf13fe69..4eb6779f8 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,12 +1,12 @@ -r requirements.txt argcomplete==2.0.0 -black==25.11.0 +black==25.12.0 commitizen==4.10.0 flake8==7.3.0 isort==7.0.0 mypy==1.19.0 pylint==4.0.4 -pytest==9.0.1 +pytest==9.0.2 responses==0.25.8 respx==0.22.0 types-PyYAML==6.0.12.20250915 diff --git a/requirements-test.txt b/requirements-test.txt index c42011354..e8843be94 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -5,7 +5,7 @@ coverage==7.12.0 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 -pytest==9.0.1 +pytest==9.0.2 PyYaml==6.0.3 responses==0.25.8 respx==0.22.0 From dc1d0af052666d4e9635a5384bf12686a8fe6f90 Mon Sep 17 00:00:00 2001 From: Alexandre Laroche Date: Thu, 4 Dec 2025 06:01:29 -0500 Subject: [PATCH 75/89] fix(utils): prevent negative sleep time in rate limit retry --- gitlab/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/utils.py b/gitlab/utils.py index bf37e09a5..cf1b5b7b0 100644 --- a/gitlab/utils.py +++ b/gitlab/utils.py @@ -133,7 +133,7 @@ def handle_retry_on_status( if "Retry-After" in headers: wait_time = int(headers["Retry-After"]) elif "RateLimit-Reset" in headers: - wait_time = int(headers["RateLimit-Reset"]) - time.time() + wait_time = max(0, int(headers["RateLimit-Reset"]) - time.time()) self.cur_retries += 1 time.sleep(wait_time) return True From 2cd9077d1fffbd2541acd6ada4ca830032fb2b06 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Dec 2025 18:42:30 +0000 Subject: [PATCH 76/89] chore(deps): update all non-major dependencies --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- .pre-commit-config.yaml | 6 +++--- requirements-lint.txt | 4 ++-- requirements-precommit.txt | 2 +- requirements-test.txt | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c48d32445..ff04716dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -21,7 +21,7 @@ jobs: - name: Python Semantic Release id: release - uses: python-semantic-release/python-semantic-release@v10.5.2 + uses: python-semantic-release/python-semantic-release@v10.5.3 with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} @@ -32,7 +32,7 @@ jobs: if: steps.release.outputs.released == 'true' - name: Publish package distributions to GitHub Releases - uses: python-semantic-release/publish-action@v10.5.2 + uses: python-semantic-release/publish-action@v10.5.3 if: steps.release.outputs.released == 'true' with: github_token: ${{ secrets.RELEASE_GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b10f50c21..eec3e1599 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -77,7 +77,7 @@ jobs: TOXENV: ${{ matrix.toxenv }} run: tox -- --override-ini='log_cli=True' - name: Upload codecov coverage - uses: codecov/codecov-action@v5.5.1 + uses: codecov/codecov-action@v5.5.2 with: files: ./coverage.xml flags: ${{ matrix.toxenv }} @@ -100,7 +100,7 @@ jobs: TOXENV: cover run: tox - name: Upload codecov coverage - uses: codecov/codecov-action@v5.5.1 + uses: codecov/codecov-action@v5.5.2 with: files: ./coverage.xml flags: unit diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9e61446b..41e732604 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen - rev: v4.10.0 + rev: v4.10.1 hooks: - id: commitizen stages: [commit-msg] @@ -32,7 +32,7 @@ repos: - requests-toolbelt==1.0.0 files: 'gitlab/' - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.0 + rev: v1.19.1 hooks: - id: mypy args: [] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.39.4 + rev: 42.64.0 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 4eb6779f8..31ec607b9 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,10 +1,10 @@ -r requirements.txt argcomplete==2.0.0 black==25.12.0 -commitizen==4.10.0 +commitizen==4.10.1 flake8==7.3.0 isort==7.0.0 -mypy==1.19.0 +mypy==1.19.1 pylint==4.0.4 pytest==9.0.2 responses==0.25.8 diff --git a/requirements-precommit.txt b/requirements-precommit.txt index 917f1957e..fc2379223 100644 --- a/requirements-precommit.txt +++ b/requirements-precommit.txt @@ -1 +1 @@ -pre-commit==4.5.0 +pre-commit==4.5.1 diff --git a/requirements-test.txt b/requirements-test.txt index e8843be94..b06434452 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.12.0 build==1.3.0 -coverage==7.12.0 +coverage==7.13.0 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 From 8cddd75bde67e0ce766d7dfd84ece8d552faf675 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 18 Dec 2025 19:00:55 +0000 Subject: [PATCH 77/89] chore(deps): update dessant/lock-threads action to v6 --- .github/workflows/lock.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 05e21065c..f6f1c6229 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -15,6 +15,6 @@ jobs: action: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v5.0.1 + - uses: dessant/lock-threads@v6.0.0 with: process-only: 'issues' From 21ccc56c53dbb227fc947f103137c63cdae17e5e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 00:30:50 +0000 Subject: [PATCH 78/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 2 +- requirements-docs.txt | 2 +- requirements-lint.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 41e732604..3b93e8655 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.64.0 + rev: 42.64.1 hooks: - id: renovate-config-validator diff --git a/requirements-docs.txt b/requirements-docs.txt index b83ef6dac..8d756d4f1 100644 --- a/requirements-docs.txt +++ b/requirements-docs.txt @@ -1,5 +1,5 @@ -r requirements.txt -furo==2025.9.25 +furo==2025.12.19 jinja2==3.1.6 myst-parser==4.0.1 sphinx==8.2.3 diff --git a/requirements-lint.txt b/requirements-lint.txt index 31ec607b9..5006460d1 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -11,4 +11,4 @@ responses==0.25.8 respx==0.22.0 types-PyYAML==6.0.12.20250915 types-requests==2.32.4.20250913 -types-setuptools==80.9.0.20250822 +types-setuptools==80.9.0.20251221 From ecaed1392131a95f8f30f1eb3d3e727b5928bc06 Mon Sep 17 00:00:00 2001 From: "John L. Villalovos" Date: Wed, 24 Dec 2025 13:17:55 -0800 Subject: [PATCH 79/89] test(functional): update to GitLab 18.6 and resolve issues found --- tests/functional/api/test_epics.py | 8 ++++--- tests/functional/api/test_keys.py | 10 ++++++++- .../api/test_project_job_token_scope.py | 4 ++++ tests/functional/api/test_projects.py | 4 ++-- tests/functional/fixtures/.env | 2 +- tests/functional/fixtures/docker-compose.yml | 2 +- tests/functional/helpers.py | 22 +++++++++---------- 7 files changed, 33 insertions(+), 19 deletions(-) diff --git a/tests/functional/api/test_epics.py b/tests/functional/api/test_epics.py index a4f6765da..b61e23776 100644 --- a/tests/functional/api/test_epics.py +++ b/tests/functional/api/test_epics.py @@ -15,18 +15,20 @@ def test_epics(group): assert group.epics.list() -@pytest.mark.xfail(reason="404 on issue.id") def test_epic_issues(epic, issue): assert not epic.issues.list() + # FYI: Creating an issue causes a note to be created epic_issue = epic.issues.create({"issue_id": issue.id}) assert epic.issues.list() + # FYI: Deleting an issue causes a note to be created epic_issue.delete() def test_epic_notes(epic): - assert not epic.notes.list() + notes = epic.notes.list(get_all=True) epic.notes.create({"body": "Test note"}) - assert epic.notes.list() + new_notes = epic.notes.list(get_all=True) + assert len(new_notes) == (len(notes) + 1), f"{new_notes} {notes}" diff --git a/tests/functional/api/test_keys.py b/tests/functional/api/test_keys.py index 359649bef..6a2d660ed 100644 --- a/tests/functional/api/test_keys.py +++ b/tests/functional/api/test_keys.py @@ -38,6 +38,14 @@ def test_keys_deploy(gl, project, DEPLOY_KEY): key_by_fingerprint = gl.keys.get(fingerprint=fingerprint) assert key_by_fingerprint.title == key.title assert key_by_fingerprint.key == key.key - assert len(key_by_fingerprint.deploy_keys_projects) == 1 + + if not any( + key_project.get("project_id") == project.id + for key_project in key_by_fingerprint.deploy_keys_projects + ): + raise AssertionError( + f"Project {project} not found in 'deploy_keys_projects' " + f"{key_by_fingerprint.pformat()}" + ) key.delete() diff --git a/tests/functional/api/test_project_job_token_scope.py b/tests/functional/api/test_project_job_token_scope.py index 0d0466182..b1de0a7b2 100644 --- a/tests/functional/api/test_project_job_token_scope.py +++ b/tests/functional/api/test_project_job_token_scope.py @@ -1,3 +1,6 @@ +import pytest + + # https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html#allow-any-project-to-access-your-project def test_enable_limit_access_to_this_project(gl, project): scope = project.job_token_scope.get() @@ -10,6 +13,7 @@ def test_enable_limit_access_to_this_project(gl, project): assert scope.inbound_enabled +@pytest.mark.xfail(reason="https://gitlab.com/gitlab-org/gitlab/-/issues/582271") def test_disable_limit_access_to_this_project(gl, project): scope = project.job_token_scope.get() diff --git a/tests/functional/api/test_projects.py b/tests/functional/api/test_projects.py index 760f95336..c56b23ec7 100644 --- a/tests/functional/api/test_projects.py +++ b/tests/functional/api/test_projects.py @@ -26,9 +26,9 @@ def test_create_project(gl, user): sudo_project = gl.projects.create({"name": "sudo_project"}, sudo=user.id) - created = gl.projects.list() + created = gl.projects.list(get_all=True) created_gen = gl.projects.list(iterator=True) - owned = gl.projects.list(owned=True) + owned = gl.projects.list(owned=True, get_all=True) assert admin_project in created and sudo_project in created assert admin_project in owned and sudo_project not in owned diff --git a/tests/functional/fixtures/.env b/tests/functional/fixtures/.env index e85f85e6f..a96b42f42 100644 --- a/tests/functional/fixtures/.env +++ b/tests/functional/fixtures/.env @@ -1,4 +1,4 @@ GITLAB_IMAGE=gitlab/gitlab-ee -GITLAB_TAG=17.8.2-ee.0 +GITLAB_TAG=18.6.1-ee.0 GITLAB_RUNNER_IMAGE=gitlab/gitlab-runner GITLAB_RUNNER_TAG=96856197 diff --git a/tests/functional/fixtures/docker-compose.yml b/tests/functional/fixtures/docker-compose.yml index f36f3d2fd..17562d5be 100644 --- a/tests/functional/fixtures/docker-compose.yml +++ b/tests/functional/fixtures/docker-compose.yml @@ -34,7 +34,7 @@ services: entrypoint: - /bin/sh - -c - - ruby /create_license.rb && /assets/wrapper + - ruby /create_license.rb && /assets/init-container volumes: - ${PWD}/tests/functional/fixtures/create_license.rb:/create_license.rb ports: diff --git a/tests/functional/helpers.py b/tests/functional/helpers.py index 090673bf7..9d313e540 100644 --- a/tests/functional/helpers.py +++ b/tests/functional/helpers.py @@ -9,6 +9,7 @@ import gitlab import gitlab.base import gitlab.exceptions +import gitlab.v4.objects SLEEP_INTERVAL = 0.5 TIMEOUT = 60 # seconds before timeout will occur @@ -37,6 +38,11 @@ def safe_delete(object: gitlab.base.RESTObject) -> None: object = manager.get(object.get_id()) # type: ignore[attr-defined] except gitlab.exceptions.GitlabGetError: return + # If object is already marked for deletion we have succeeded + if getattr(object, "marked_for_deletion_on", None) is not None: + # 'Group' and 'Project' objects have a 'marked_for_deletion_on' attribute + logging.info(f"{object!r} is marked for deletion.") + return if index: logging.info(f"Attempt {index + 1} to delete {object!r}.") @@ -52,22 +58,16 @@ def safe_delete(object: gitlab.base.RESTObject) -> None: # we shouldn't cause test to fail if it still exists return elif isinstance(object, gitlab.v4.objects.Project): - # Immediately delete rather than waiting for at least 1day - # https://docs.gitlab.com/ee/api/projects.html#delete-project - object.delete(permanently_remove=True) - pass + # Starting in GitLab 18, projects can't be immediately deleted. + # So this will mark it for deletion. + object.delete() else: # We only attempt to delete parent groups to prevent dangling sub-groups - # However parent groups can only be deleted on a delay in Gl 16 + # However parent groups can only be deleted on a delay in GitLab 16 # https://docs.gitlab.com/ee/api/groups.html#remove-group object.delete() except gitlab.exceptions.GitlabDeleteError: - logging.info(f"{object!r} already deleted or scheduled for deletion.") - if isinstance(object, gitlab.v4.objects.Group): - # Parent groups can never be immediately deleted in GL 16, - # so don't cause test to fail if it still exists - return - pass + logging.exception(f"Error attempting to delete: {object.pformat()}") time.sleep(SLEEP_INTERVAL) pytest.fail(f"{object!r} was not deleted") From 9ab5cd7bb103edc13efa1ade4d9242d7efba75f4 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Dec 2025 21:54:12 +0000 Subject: [PATCH 80/89] chore(deps): update gitlab/gitlab-ee docker tag to v18.7.0-ee.0 (#3218) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- tests/functional/fixtures/.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/fixtures/.env b/tests/functional/fixtures/.env index a96b42f42..f33c35752 100644 --- a/tests/functional/fixtures/.env +++ b/tests/functional/fixtures/.env @@ -1,4 +1,4 @@ GITLAB_IMAGE=gitlab/gitlab-ee -GITLAB_TAG=18.6.1-ee.0 +GITLAB_TAG=18.7.0-ee.0 GITLAB_RUNNER_IMAGE=gitlab/gitlab-runner GITLAB_RUNNER_TAG=96856197 From fd55caf3c80083a7f399ce3fc0cc3f879c8e8464 Mon Sep 17 00:00:00 2001 From: Sigurd Spieckermann Date: Thu, 20 Nov 2025 12:58:50 +0100 Subject: [PATCH 81/89] feat(registry-protection): add support for registry protection rule deletion --- .../registry_protection_repository_rules.py | 10 +++++++++- tests/functional/api/test_registry.py | 5 +++++ .../objects/test_registry_protection_rules.py | 15 +++++++++++++++ 3 files changed, 29 insertions(+), 1 deletion(-) diff --git a/gitlab/v4/objects/registry_protection_repository_rules.py b/gitlab/v4/objects/registry_protection_repository_rules.py index 19d4bdf59..2a457a024 100644 --- a/gitlab/v4/objects/registry_protection_repository_rules.py +++ b/gitlab/v4/objects/registry_protection_repository_rules.py @@ -1,5 +1,12 @@ from gitlab.base import RESTObject -from gitlab.mixins import CreateMixin, ListMixin, SaveMixin, UpdateMethod, UpdateMixin +from gitlab.mixins import ( + CreateMixin, + DeleteMixin, + ListMixin, + SaveMixin, + UpdateMethod, + UpdateMixin, +) from gitlab.types import RequiredOptional __all__ = [ @@ -16,6 +23,7 @@ class ProjectRegistryRepositoryProtectionRuleManager( ListMixin[ProjectRegistryRepositoryProtectionRule], CreateMixin[ProjectRegistryRepositoryProtectionRule], UpdateMixin[ProjectRegistryRepositoryProtectionRule], + DeleteMixin[ProjectRegistryRepositoryProtectionRule], ): _path = "/projects/{project_id}/registry/protection/repository/rules" _obj_cls = ProjectRegistryRepositoryProtectionRule diff --git a/tests/functional/api/test_registry.py b/tests/functional/api/test_registry.py index 91fdceacc..d234128ca 100644 --- a/tests/functional/api/test_registry.py +++ b/tests/functional/api/test_registry.py @@ -26,3 +26,8 @@ def test_project_protected_registry(project: Project): protected_registry.minimum_access_level_for_push = "owner" protected_registry.save() assert protected_registry.minimum_access_level_for_push == "owner" + + protected_registry.delete() + + rules = project.registry_protection_repository_rules.list() + assert rules == [] diff --git a/tests/unit/objects/test_registry_protection_rules.py b/tests/unit/objects/test_registry_protection_rules.py index 3078278f5..3e9db414a 100644 --- a/tests/unit/objects/test_registry_protection_rules.py +++ b/tests/unit/objects/test_registry_protection_rules.py @@ -58,6 +58,17 @@ def resp_update_protected_registry(): yield rsps +@pytest.fixture +def resp_delete_protected_registry(): + with responses.RequestsMock() as rsps: + rsps.add( + method=responses.DELETE, + url="http://localhost/api/v4/projects/1/registry/protection/repository/rules/1", + status=204, + ) + yield rsps + + def test_list_project_protected_registries(project, resp_list_protected_registries): protected_registry = project.registry_protection_repository_rules.list()[0] assert isinstance(protected_registry, ProjectRegistryRepositoryProtectionRule) @@ -80,3 +91,7 @@ def test_update_project_protected_registry(project, resp_update_protected_regist 1, {"repository_path_pattern": "abc*"} ) assert updated["repository_path_pattern"] == "abc*" + + +def test_delete_project_protected_registry(project, resp_delete_protected_registry): + project.registry_protection_repository_rules.delete(1) From 845543a79523d48c7889064c795c8b18ba62770e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Wed, 24 Dec 2025 21:37:59 +0000 Subject: [PATCH 82/89] chore(deps): update github artifact actions --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eec3e1599..0f2af115e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -120,7 +120,7 @@ jobs: pip install -r requirements-test.txt - name: Build package run: python -m build -o dist/ - - uses: actions/upload-artifact@v5.0.0 + - uses: actions/upload-artifact@v6.0.0 with: name: dist path: dist @@ -134,7 +134,7 @@ jobs: uses: actions/setup-python@v6.1.0 with: python-version: '3.14' - - uses: actions/download-artifact@v6.0.0 + - uses: actions/download-artifact@v7.0.0 with: name: dist path: dist From 99761a6b2dbcbabbc70de35c8f4066b661f08087 Mon Sep 17 00:00:00 2001 From: semantic-release Date: Sun, 28 Dec 2025 01:26:37 +0000 Subject: [PATCH 83/89] chore: release v7.1.0 --- CHANGELOG.md | 23 +++++++++++++++++++++++ gitlab/_version.py | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index de7c0d113..ef85c5019 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,29 @@ All versions below are listed in reverse chronological order. +## v7.1.0 (2025-12-28) + +### Bug Fixes + +- **utils**: Prevent negative sleep time in rate limit retry + ([`4221195`](https://github.com/python-gitlab/python-gitlab/commit/422119576287de30e1b70411c7ab0bbe39231af7)) + +### Continuous Integration + +- **release**: Use the correct token for publish to GitHub + ([`614a74c`](https://github.com/python-gitlab/python-gitlab/commit/614a74c00f027f70b8e48a6b2a2ddcd3f823bffa)) + +### Features + +- **registry-protection**: Add support for registry protection rule deletion + ([`9dd62c3`](https://github.com/python-gitlab/python-gitlab/commit/9dd62c3f5bcf3e082c2733bd4edc068f993c22ec)) + +### Testing + +- **functional**: Update to GitLab 18.6 and resolve issues found + ([`c7c139b`](https://github.com/python-gitlab/python-gitlab/commit/c7c139b9e7823ec1800a819233aee469355ee8d1)) + + ## v7.0.0 (2025-10-29) ### Features diff --git a/gitlab/_version.py b/gitlab/_version.py index e7817062d..8305f3a6c 100644 --- a/gitlab/_version.py +++ b/gitlab/_version.py @@ -3,4 +3,4 @@ __email__ = "gauvainpocentek@gmail.com" __license__ = "LGPL3" __title__ = "python-gitlab" -__version__ = "7.0.0" +__version__ = "7.1.0" From 11180ac3ddec4897dc362a0feeb39e38346917f7 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 29 Dec 2025 01:14:05 +0000 Subject: [PATCH 84/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 2 +- requirements-lint.txt | 2 +- requirements-test.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b93e8655..714fdfb98 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.64.1 + rev: 42.66.11 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 5006460d1..440d2aac8 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -11,4 +11,4 @@ responses==0.25.8 respx==0.22.0 types-PyYAML==6.0.12.20250915 types-requests==2.32.4.20250913 -types-setuptools==80.9.0.20251221 +types-setuptools==80.9.0.20251223 diff --git a/requirements-test.txt b/requirements-test.txt index b06434452..df8e6f47a 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,7 +1,7 @@ -r requirements.txt anyio==4.12.0 build==1.3.0 -coverage==7.13.0 +coverage==7.13.1 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 pytest-github-actions-annotate-failures==0.3.0 From c21dce41502e2cd27ac9b3654120e9553c128581 Mon Sep 17 00:00:00 2001 From: Derek Schrock Date: Sun, 24 Aug 2025 20:27:38 -0400 Subject: [PATCH 85/89] feat(graphql): update to gql 4.0.0 BREAKING CHANGE: GraphQL.execute() no longer accepts graphql.Source --- .pre-commit-config.yaml | 4 ++-- gitlab/client.py | 7 ++----- pyproject.toml | 2 +- requirements.txt | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 714fdfb98..b9c06a408 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - id: pylint additional_dependencies: - argcomplete==2.0.0 - - gql==3.5.0 + - gql==4.0.0 - httpx==0.27.2 - pytest==7.4.2 - requests==2.28.1 @@ -37,7 +37,7 @@ repos: - id: mypy args: [] additional_dependencies: - - gql==3.5.0 + - gql==4.0.0 - httpx==0.27.2 - jinja2==3.1.2 - pytest==7.4.2 diff --git a/gitlab/client.py b/gitlab/client.py index 37dd4c2e6..a3cf1f31a 100644 --- a/gitlab/client.py +++ b/gitlab/client.py @@ -18,7 +18,6 @@ try: import gql import gql.transport.exceptions - import graphql import httpx from ._backends.graphql import GitlabAsyncTransport, GitlabTransport @@ -1350,7 +1349,7 @@ def __enter__(self) -> GraphQL: def __exit__(self, *args: Any) -> None: self._http_client.close() - def execute(self, request: str | graphql.Source, *args: Any, **kwargs: Any) -> Any: + def execute(self, request: str, *args: Any, **kwargs: Any) -> Any: parsed_document = self._gql(request) retry = utils.Retry( max_retries=self._max_retries, @@ -1420,9 +1419,7 @@ async def __aenter__(self) -> AsyncGraphQL: async def __aexit__(self, *args: Any) -> None: await self._http_client.aclose() - async def execute( - self, request: str | graphql.Source, *args: Any, **kwargs: Any - ) -> Any: + async def execute(self, request: str, *args: Any, **kwargs: Any) -> Any: parsed_document = self._gql(request) retry = utils.Retry( max_retries=self._max_retries, diff --git a/pyproject.toml b/pyproject.toml index 7b8510b94..45e8c36f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dynamic = ["version"] [project.optional-dependencies] autocompletion = ["argcomplete>=1.10.0,<3"] yaml = ["PyYaml>=6.0.1"] -graphql = ["gql[httpx]>=3.5.0,<4"] +graphql = ["gql[httpx]>=3.5.0,<5"] [project.scripts] gitlab = "gitlab.cli:main" diff --git a/requirements.txt b/requirements.txt index 6930e5d2c..d51e14533 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -gql==3.5.3 +gql==4.0.0 httpx==0.28.1 requests==2.32.5 requests-toolbelt==1.0.0 From 01f4a83656a174e23a8482fd5c7cff9f47663564 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 5 Jan 2026 02:53:00 +0000 Subject: [PATCH 86/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 4 ++-- requirements-lint.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9c06a408..79fd2c69c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,7 +7,7 @@ repos: hooks: - id: black - repo: https://github.com/commitizen-tools/commitizen - rev: v4.10.1 + rev: v4.11.1 hooks: - id: commitizen stages: [commit-msg] @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.66.11 + rev: 42.71.0 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index 440d2aac8..cf8092fb1 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -1,7 +1,7 @@ -r requirements.txt argcomplete==2.0.0 black==25.12.0 -commitizen==4.10.1 +commitizen==4.11.0 flake8==7.3.0 isort==7.0.0 mypy==1.19.1 From 77d6d0bec5dcf08d41163718f425b776326a3750 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 01:14:34 +0000 Subject: [PATCH 87/89] chore(deps): update gitlab/gitlab-ee docker tag to v18.7.1-ee.0 (#3321) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- tests/functional/fixtures/.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/fixtures/.env b/tests/functional/fixtures/.env index f33c35752..91f187a12 100644 --- a/tests/functional/fixtures/.env +++ b/tests/functional/fixtures/.env @@ -1,4 +1,4 @@ GITLAB_IMAGE=gitlab/gitlab-ee -GITLAB_TAG=18.7.0-ee.0 +GITLAB_TAG=18.7.1-ee.0 GITLAB_RUNNER_IMAGE=gitlab/gitlab-runner GITLAB_RUNNER_TAG=96856197 From 309b12cb229da10186527d74e76ea37723681054 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 04:56:17 +0000 Subject: [PATCH 88/89] chore(deps): update all non-major dependencies --- .pre-commit-config.yaml | 2 +- requirements-lint.txt | 2 +- requirements-test.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 79fd2c69c..e3c989e3f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -51,6 +51,6 @@ repos: - id: rst-directive-colons - id: rst-inline-touching-normal - repo: https://github.com/maxbrunet/pre-commit-renovate - rev: 42.71.0 + rev: 42.78.2 hooks: - id: renovate-config-validator diff --git a/requirements-lint.txt b/requirements-lint.txt index cf8092fb1..1e0713a35 100644 --- a/requirements-lint.txt +++ b/requirements-lint.txt @@ -10,5 +10,5 @@ pytest==9.0.2 responses==0.25.8 respx==0.22.0 types-PyYAML==6.0.12.20250915 -types-requests==2.32.4.20250913 +types-requests==2.32.4.20260107 types-setuptools==80.9.0.20251223 diff --git a/requirements-test.txt b/requirements-test.txt index df8e6f47a..e1e2b5d81 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,6 +1,6 @@ -r requirements.txt -anyio==4.12.0 -build==1.3.0 +anyio==4.12.1 +build==1.4.0 coverage==7.13.1 pytest-console-scripts==1.4.1 pytest-cov==7.0.0 From 8c4720b15bae8988ede89ab56d2c01bb34655fe1 Mon Sep 17 00:00:00 2001 From: Isaac Philip <4974658+isaac-philip@users.noreply.github.com> Date: Sun, 18 Jan 2026 23:01:56 +0530 Subject: [PATCH 89/89] feat(functional): #2547 merge-train api : CR comments changes --- docs/gl_objects/merge_trains.rst | 4 ++-- gitlab/v4/objects/merge_trains.py | 2 +- tests/unit/objects/test_merge_trains.py | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/gl_objects/merge_trains.rst b/docs/gl_objects/merge_trains.rst index 205053045..4d1551c0f 100644 --- a/docs/gl_objects/merge_trains.rst +++ b/docs/gl_objects/merge_trains.rst @@ -9,8 +9,8 @@ Reference + :class:`gitlab.v4.objects.ProjectMergeTrain` + :class:`gitlab.v4.objects.ProjectMergeTrainManager` - + :class:`gilab.v4.objects.ProjectMergeTrainMergeRequest` - + :class:`gilab.v4.objects.ProjectMergeTrainMergeRequestManager` + + :class:`gitlab.v4.objects.ProjectMergeTrainMergeRequest` + + :class:`gitlab.v4.objects.ProjectMergeTrainMergeRequestManager` + :attr:`gitlab.v4.objects.Project.merge_trains` * GitLab API: https://docs.gitlab.com/api/merge_trains diff --git a/gitlab/v4/objects/merge_trains.py b/gitlab/v4/objects/merge_trains.py index 2b483e157..837860159 100644 --- a/gitlab/v4/objects/merge_trains.py +++ b/gitlab/v4/objects/merge_trains.py @@ -25,7 +25,7 @@ class ProjectMergeTrainMergeRequestManager( _update_method: UpdateMethod = UpdateMethod.POST _update_attrs = RequiredOptional( - optional=("sha", "squash", "when_pipeline_succeeds") + optional=("sha", "squash", "when_pipeline_succeeds", "auto_merge") ) diff --git a/tests/unit/objects/test_merge_trains.py b/tests/unit/objects/test_merge_trains.py index fa5fe6221..bc881e797 100644 --- a/tests/unit/objects/test_merge_trains.py +++ b/tests/unit/objects/test_merge_trains.py @@ -3,6 +3,8 @@ https://docs.gitlab.com/ee/api/merge_trains.html """ +from copy import deepcopy + import pytest import responses @@ -46,7 +48,7 @@ "duration": 70, } -merge_train_update = mr_content.copy() +merge_train_update = deepcopy(mr_content) merge_train_update["iid"] = 4 merge_train_update["pipeline"]["sha"] = "ef33a3zxc3"