Levi Matus
|
9d2129c7b9
|
Example: Listen for New Events with PyGithub and Pyramid (#930)
## 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


|
2018-10-16 23:14:40 +08:00 |
|