Enrico Minack
fc2d0e150a
Add authentication classes, move auth logic there ( #2528 )
...
This adds argument `auth` and deprecates `login_or_token`, `password`, `jwt`, and `app_auth` arguments of `github.Github`.
This adds argument `auth` and deprecates `integration_id`, `private_key` of `github.GithubIntegration`.
This deprecates the `create_jwt` method of `github.GithubIntegration`, replaced by `github.Auth.AppAuth.create_jwt`.
2023-06-08 09:17:25 +02:00
Steve Kowalik
2b2ecfad4d
Add some examples for Branch ( #936 )
...
In the spirit of #874 , add some examples for working with Branch
objects. It doesn't add everything, but it's a start.
2018-10-18 19:41:59 +08:00
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
Michell Stuttgart
228e5e8219
New use examples ( #920 )
...
This PR add the follow code examples
* Issue examples (get list, get specific issue, create issue)
* Milestone examples (get list, get specific milestone, create milestone)
Ref.: https://github.com/PyGithub/PyGithub/issues/874
2018-10-08 20:33:12 +08:00
Aaron L. Levine
cc9636af3f
Add Pull Request Examples ( #875 )
...
Per @sfdye request, here is an example to acquire Pull Requests.
2018-08-23 09:06:02 +08:00
Wan Liuyang
3eb695484b
Set up example docs skeleton
2018-08-21 16:03:35 +08:00