1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-12-05 18:04:48 +01:00

Add 'git-obs pr' command

This commit is contained in:
2025-01-14 16:16:20 +01:00
parent 166cadb31b
commit 124528e68b
13 changed files with 795 additions and 1 deletions

View File

@@ -3,6 +3,18 @@ from .connection import GiteaHTTPResponse
class User:
@classmethod
def to_full_name_email_string(cls, data):
full_name = data["full_name"]
email = data["email"]
if full_name:
return f"{full_name} <{email}>"
return email
@classmethod
def to_login_full_name_email_string(cls, data):
return f"{data['login']} ({cls.to_full_name_email_string(data)})"
@classmethod
def get(
cls,