- Add data classes for notifications

- Add basic API for notifications
- Change the password required to be a notification
This commit is contained in:
Joseph Schorr 2014-03-12 00:49:03 -04:00
parent e650da5278
commit 368a8da7db
7 changed files with 80 additions and 6 deletions

View file

@ -203,7 +203,7 @@ class GithubBuildTrigger(BuildTrigger):
try:
repo = gh_client.get_repo(source)
default_commit = repo.get_branch(repo.master_branch).commit
default_commit = repo.get_branch(repo.master_branch or 'master').commit
commit_tree = repo.get_git_tree(default_commit.sha, recursive=True)
return [os.path.dirname(elem.path) for elem in commit_tree.tree
@ -283,4 +283,4 @@ class GithubBuildTrigger(BuildTrigger):
short_sha = GithubBuildTrigger.get_display_name(master_sha)
ref = 'refs/heads/%s' % repo.master_branch
return self._prepare_build(config, repo, master_sha, short_sha, ref)
return self._prepare_build(config, repo, master_sha, short_sha, ref)