From b8e771a1085e406e9a45fccb6cc26beb77330d82 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Wed, 1 Jan 2025 15:18:36 +0100 Subject: [PATCH] fix: delete teams rest api call --- otterdog/providers/github/rest/org_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otterdog/providers/github/rest/org_client.py b/otterdog/providers/github/rest/org_client.py index fc64e24..2d4bede 100644 --- a/otterdog/providers/github/rest/org_client.py +++ b/otterdog/providers/github/rest/org_client.py @@ -1,5 +1,5 @@ # ******************************************************************************* -# Copyright (c) 2023-2024 Eclipse Foundation and others. +# Copyright (c) 2023-2025 Eclipse Foundation and others. # This program and the accompanying materials are made available # under the terms of the Eclipse Public License 2.0 # which is available at http://www.eclipse.org/legal/epl-v20.html @@ -573,7 +573,7 @@ async def remove_member_from_team(self, org_id: str, team_slug: str, user: str) async def delete_team(self, org_id: str, team_slug: str) -> None: _logger.debug("deleting team '%s' for org '%s'", team_slug, org_id) - status, body = await self.requester.request_raw("DELETE", f"/orgs/{org_id}/team/{team_slug}") + status, body = await self.requester.request_raw("DELETE", f"/orgs/{org_id}/teams/{team_slug}") if status != 204: raise RuntimeError(f"failed to delete team '{team_slug}': {body}")