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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user