Skip to content

A simple hook which converts push events into Bugzilla Comments

License

Notifications You must be signed in to change notification settings

copasi/bugzillaWebserviceHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Tool for adding Comments about Commits to Bugzilla

Any commits which reference a Bugzilla number will be posted as comments on the bug. Bugs Ids are specified either as '(bug|issue):? *#?(\d+) on the first line or as (resolves?|related|conflicts?):? *#?(\d+) on any line of the commit message. Only one comment per bug per commit is posted in Bugzilla.

The platform

wsgi.py implements the webhook. It's designed in particular for use with mod_wsgi, but there's a main block to facilitate use as a standalone application and that will probably work ok.

The web hook must be running somewhere with a publicly-accessible URL.

Configuration

This service uses several environment variables for its configuration.

Optional configuration:

  • GHBH_GITHUB_SECRET - Recommended If set, this is the secret used to configure the webhook on github, and is used to verify that push events are sent from GitHub.
  • GHBH_HTTP_PORT - The HTTP port to listen on if running the webhook as a standalone service.

On GitHub

Go to the settings for the repository you want to connect to Bugzilla. Under "Webhooks & Services," add a webhook. Put in the URL for the web service, select "application/json" for the content type, set a secret if you're using one.

Under the choices of events to receive, select "Just the push event".

Credits

Lots of the initial code and documentation is taken from Alexander Todorov's https://github.com/atodorov/github-bugzilla-hook

About

A simple hook which converts push events into Bugzilla Comments

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages