GRM-25: feat: auto-delete branch after merge in configure_repo script
This commit was merged in pull request #3.
This commit is contained in:
@@ -53,6 +53,13 @@ class GiteaClient:
|
||||
raise APIError(status, message) from e
|
||||
return response
|
||||
|
||||
# -- repo settings --
|
||||
|
||||
def update_repo_settings(self, settings: dict[str, Any]) -> dict[str, Any]:
|
||||
"""Update repository settings (e.g. auto-delete branch after merge)."""
|
||||
r = self._request("PATCH", "", json=settings)
|
||||
return r.json()
|
||||
|
||||
# -- branch protection --
|
||||
|
||||
def list_branch_protections(self) -> list[dict[str, Any]]:
|
||||
|
||||
Reference in New Issue
Block a user