mirror of https://github.com/zcash/developers.git
Shorten the representation of long repo names
This commit is contained in:
parent
fb57882712
commit
5c21905c82
|
@ -127,7 +127,11 @@ class GitHubIssue:
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
if self.repo_id in REPOS:
|
if self.repo_id in REPOS:
|
||||||
repo = '/'.join(REPOS[self.repo_id])
|
repo = REPOS[self.repo_id]
|
||||||
|
# Shorten the representation of long repo names.
|
||||||
|
if repo[0] == 'Electric-Coin-Company':
|
||||||
|
repo = ('ECC', repo[1])
|
||||||
|
repo = '/'.join(repo)
|
||||||
return '%s#%d' % (repo, self.issue_number)
|
return '%s#%d' % (repo, self.issue_number)
|
||||||
else:
|
else:
|
||||||
return 'Unknown'
|
return 'Unknown'
|
||||||
|
|
Loading…
Reference in New Issue