"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "buildbot/reporters/github.py" between
buildbot-3.0.2.tar.gz and buildbot-3.1.0.tar.gz

About: Buildbot is a continuous integration testing framework (Python-based). It supports also automation of complex build systems, application deployment, and management of sophisticated software-release processes.

github.py  (buildbot-3.0.2):github.py  (buildbot-3.1.0)
skipping to change at line 32 skipping to change at line 32
from buildbot.process.properties import Properties from buildbot.process.properties import Properties
from buildbot.process.results import CANCELLED from buildbot.process.results import CANCELLED
from buildbot.process.results import EXCEPTION from buildbot.process.results import EXCEPTION
from buildbot.process.results import FAILURE from buildbot.process.results import FAILURE
from buildbot.process.results import RETRY from buildbot.process.results import RETRY
from buildbot.process.results import SKIPPED from buildbot.process.results import SKIPPED
from buildbot.process.results import SUCCESS from buildbot.process.results import SUCCESS
from buildbot.process.results import WARNINGS from buildbot.process.results import WARNINGS
from buildbot.reporters.base import ReporterBase from buildbot.reporters.base import ReporterBase
from buildbot.reporters.generators.build import BuildStartEndStatusGenerator from buildbot.reporters.generators.build import BuildStartEndStatusGenerator
from buildbot.reporters.generators.buildrequest import BuildRequestGenerator
from buildbot.reporters.message import MessageFormatterRenderable from buildbot.reporters.message import MessageFormatterRenderable
from buildbot.util import httpclientservice from buildbot.util import httpclientservice
from buildbot.util.giturlparse import giturlparse from buildbot.util.giturlparse import giturlparse
HOSTED_BASE_URL = 'https://api.github.com' HOSTED_BASE_URL = 'https://api.github.com'
class GitHubStatusPush(ReporterBase): class GitHubStatusPush(ReporterBase):
name = "GitHubStatusPush" name = "GitHubStatusPush"
def checkConfig(self, token, context=None, baseURL=None, verbose=False, def checkConfig(self, token, context=None, baseURL=None, verbose=False,
skipping to change at line 84 skipping to change at line 85
'User-Agent': 'Buildbot' 'User-Agent': 'Buildbot'
}, },
debug=self.debug, verify=self.verify) debug=self.debug, verify=self.verify)
def setup_context(self, context): def setup_context(self, context):
return context or Interpolate('buildbot/%(prop:buildername)s') return context or Interpolate('buildbot/%(prop:buildername)s')
def _create_default_generators(self): def _create_default_generators(self):
start_formatter = MessageFormatterRenderable('Build started.') start_formatter = MessageFormatterRenderable('Build started.')
end_formatter = MessageFormatterRenderable('Build done.') end_formatter = MessageFormatterRenderable('Build done.')
pending_formatter = MessageFormatterRenderable('Build pending.')
return [ return [
BuildRequestGenerator(formatter=pending_formatter),
BuildStartEndStatusGenerator(start_formatter=start_formatter, BuildStartEndStatusGenerator(start_formatter=start_formatter,
end_formatter=end_formatter) end_formatter=end_formatter)
] ]
def createStatus(self, def createStatus(self,
repo_user, repo_name, sha, state, target_url=None, repo_user, repo_name, sha, state, target_url=None,
context=None, issue=None, description=None): context=None, issue=None, description=None):
""" """
:param repo_user: GitHub user or organization :param repo_user: GitHub user or organization
:param repo_name: Name of the repository :param repo_name: Name of the repository
 End of changes. 3 change blocks. 
0 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)