mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
## What does this change do? Adds a small demo implementation of how one might use webhooks to listen for new events in a given repository. ### Additions #### doc/examples/Webhook.rst Adds a new `.rst` file, `Webhook.rst`, which can be used for demonstrating the usage of Webhooks in PyGithub. The example that I've added shows how to continually listen for events using Pyramid in conjunction with PyGithub. ## Motivation This example is in the spirit of #874. [It was asked](https://github.com/PyGithub/PyGithub/issues/874#issuecomment-429075695) that someone provide an example of how to listen to events from a repository. ## How has this been tested? I've built the docs locally and made sure the HTML is generated as expected. ## Screenshots  
12 lines
173 B
ReStructuredText
12 lines
173 B
ReStructuredText
Examples
|
|
========
|
|
|
|
|
|
.. toctree::
|
|
examples/MainClass
|
|
examples/Repository
|
|
examples/Commit
|
|
examples/PullRequest
|
|
examples/Issue
|
|
examples/Milestone
|
|
examples/Webhook |