Add repo-specific reporting of repository builds

This commit is contained in:
Joseph Schorr 2016-09-09 15:36:54 -04:00
parent c8a1b8abab
commit 818ea38dac
3 changed files with 15 additions and 4 deletions

View file

@ -72,6 +72,11 @@ class BuildJob(object):
""" Returns the namespace under which this build is running. """
return self.repo_build.repository.namespace_user.username
@property
def repo_name(self):
""" Returns the name of the repository under which this build is running. """
return self.repo_build.repository.name
@property
def repo_build(self):
return self._load_repo_build()