From e654b2b6080b6d946f97c0937983800524f8b5b8 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 3 Oct 2014 12:35:58 -0400 Subject: [PATCH] Branch.name has to use a dot accessor, not a dict lookup --- endpoints/trigger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints/trigger.py b/endpoints/trigger.py index 4a10485ae..c7c47db79 100644 --- a/endpoints/trigger.py +++ b/endpoints/trigger.py @@ -377,7 +377,7 @@ class GithubBuildTrigger(BuildTrigger): gh_client = self._get_client(auth_token) source = config['build_source'] repo = gh_client.get_repo(source) - branches = [branch['name'] for branch in repo.get_branches()] + branches = [branch.name for branch in repo.get_branches()] if not repo.default_branch in branches: branches.insert(0, repo.default_branch)