Skip to content

Commit

Permalink
Add a project field that is needed for the TreeHerder API
Browse files Browse the repository at this point in the history
  • Loading branch information
tomrittervg committed Jul 16, 2020
1 parent 38561dd commit 7d94d60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions apis/taskcluster.py
Expand Up @@ -15,6 +15,16 @@ def __init__(self, config):
if 'url' in config:
self.url = config['url']

self.project = ""
if 'project' in config:
self.project = "project/" + config['project'] + "/"

self.HEADERS = {
'User-Agent': 'Updatebot'
}

# =================================================================
# =================================================================
@logEntryExit
def _vcs_setup(self):
if not self._vcs_setup_initialized:
Expand Down
4 changes: 3 additions & 1 deletion localconfig.py.example
Expand Up @@ -23,6 +23,8 @@ localconfig = {
'apikey': '<foobar>'
},
'Taskcluster': {
'url': 'https://treeherder.mozilla.org/'
'url': 'https://treeherder.mozilla.org/',
# project should be blank or absent if running on central
'project': 'holly'
}
}

0 comments on commit 7d94d60

Please sign in to comment.