github3.py
github3.py copied to clipboard
Hi, I'm a library for interacting with GItHub's REST API in a convenient and ergonomic way. I work on Python 3.6+.
This PR adds the "permission" parameter to `repo.add_collaborator`, which was missing and is only valid for organisation repositories. (see [here](https://docs.github.com/en/rest/collaborators/collaborators#add-a-repository-collaborator--parameters)) Fixes #954
Organization invitation can be cancelled based on invitation id and fetch failed invitation list, as described here: - https://docs.github.com/en/rest/orgs/members#cancel-an-organization-invitation - https://docs.github.com/en/rest/orgs/members#list-failed-organization-invitations
When trying to create a card in a Github Enterprise repository the url that is built isn't for the Enterprise server, but for `api.github.com`. Creating a project and columns worked...
At https://github.com/sigmavirus24/github3.py/blob/5fe88ae5decbcbd21f53bb0b97eb79eed83afc84/src/github3/projects.py#L428-L429 the `project_card["updated_at"]` is not converted to datetime like in the other object. See `ProjectColumn.updated_at` for example: https://github.com/sigmavirus24/github3.py/blob/5fe88ae5decbcbd21f53bb0b97eb79eed83afc84/src/github3/projects.py#L207.
I'm trying to update a very old project of mine that uses github3.py. I've been having difficulties getting even just the authorization to work, and it appears that the basic...
Repos can be configured to delete branches when PRs are merged, as described here: https://help.github.com/en/github/administering-a-repository/managing-the-automatic-deletion-of-branches The GitHub API now supports a `delete_branch_on_merge` flag on the following endpoints: * https://developer.github.com/v3/repos/#create *...
It reached end-of-life in 2021-12-23 https://www.python.org/dev/peps/pep-0494/
[The documentation](https://github3.readthedocs.io/en/latest/api-reference/github.html#github3.github.GitHub.gists) for `gists()` says: > Retrieve the authenticated user’s gists. But in reality, it returns other people's gists: ```python import github3 gh = github3.login(username='Aran-Fey', password='foobar') for gist in gh.gists(number=5):...
See [the announcement](https://developer.github.com/changes/2014-12-03-preview-the-new-organization-webhooks-api/) for more details ## --- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/6797101-add-organization-webhooks-preview?utm_campaign=plugin&utm_content=tracker%2F183477&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F183477&utm_medium=issues&utm_source=github).
Currently if you do: ``` $ tox -e py34 -- tests/unit ``` The tests take about **12 seconds**. If you just run ``` $ tox -e py34 ``` The tests...