mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-22 06:28:53 +02:00
17
osc/gitea_api/user.py
Normal file
17
osc/gitea_api/user.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from .connection import Connection
|
||||
from .connection import GiteaHTTPResponse
|
||||
|
||||
|
||||
class User:
|
||||
@classmethod
|
||||
def get(
|
||||
cls,
|
||||
conn: Connection,
|
||||
) -> GiteaHTTPResponse:
|
||||
"""
|
||||
Retrieve details about the current user.
|
||||
|
||||
:param conn: Gitea ``Connection`` instance.
|
||||
"""
|
||||
url = conn.makeurl("user")
|
||||
return conn.request("GET", url)
|
Reference in New Issue
Block a user