
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
buildbot-github
Advanced tools
A module which listens for Github webhook events and triggers a Buildbot build when a comment with trigger string defined in a config is found in a pull request.
A service which receives webhook events when a comment is added to a pull request and triggers a Buildbot build when a comment with trigger string defined in a config is found in a pull request.
A comment with build status and a link to the build result is added to the pull request when a build has completed.
Configuration is stored in a JSON file. Example configuration can be found at
axample/config.json
.
base
change_hook dialect in your master.cfg
. For example:c['status'].append(html.WebStatus(http_port=8010, allowForce=True,
change_hook_dialects={'base': True}))
f = factory.BuildFactory()
f.addStep(Git(repourl="git://github.com/<user>/<project>.git", mode="copy"))
f.addStep(ShellCommand(command = ['make', 'test']))
c['builders'].append(
{
'name': '<some-builder-which-will-build-pull-requests>',
'slavename': c['slaves'][0].slavename,
'builddir': '<some-builder-which-will-build-pull-requests>',
'factory': f
})
ChangeFilter
and Scheduler
. For examplechange_filter = ChangeFilter(repository='https://github.com/<repository user>/<repository name>')
scheduler = basic.Scheduler("pull request builder", treeStableTimer=1,
builderNames=['<some-builder-which-will-build-pull-requests>'],
change_filter=change_filter)
c['schedulers'].append(scheduler)
Note: repository
setting in the change filter must match repository
setting
in the config file.
curl -u "<github username>/token:<api token>" -H "Content-Type: application/json" -X POST -d '{
"name": "web",
"active": true,
"events": ["issue_comment"],
"config": {
"url": "http://<server ip:server port>/?secret=<secret>",
"content_type": "json"
}
}' https://api.github.com/repos/<user>/<project name>/hooks
This will set up a hook for the repository specified in the config.
FAQs
A module which listens for Github webhook events and triggers a Buildbot build when a comment with trigger string defined in a config is found in a pull request.
The npm package buildbot-github receives a total of 1 weekly downloads. As such, buildbot-github popularity was classified as not popular.
We found that buildbot-github demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.