mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
16 lines
356 B
Python
16 lines
356 B
Python
import urllib
|
|
|
|
from GithubObject import *
|
|
|
|
Label = GithubObject(
|
|
"Label",
|
|
BaseUrl( lambda obj: obj._repo._baseUrl() + "/labels/" + obj._identity ),
|
|
Identity( lambda obj: urllib.quote( obj.name ) ),
|
|
InternalSimpleAttributes(
|
|
"url", "name", "color",
|
|
"_repo",
|
|
),
|
|
Editable( [ "name", "color" ], [] ),
|
|
Deletable(),
|
|
)
|