Commits on Source (35)
-
cclauss authored
-
cclauss authored
-
Paulus Schoutsen authored
-
Jesse Keating authored
The timestamp for pull request reviews is 'submitted_at' instead of 'created_at' like most other objects. In addition, this attribute is not documented at https://developer.github.com/v3/pulls/reviews/#get-a-single-review Closes #742 Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Jesse Keating authored
Ran into these in an unrelated PR. Don't have a bare except Don't use single char variables Also cap pytest at below 3.3.0, which drops support for py33 (we could drop py33 support as well) Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Jesse Keating authored
Ran into these in an unrelated PR. Don't have a bare except Don't use single char variables Drop py33 testing, that release is no longer supported by pytest and they are EOL upstream as well. ( https://github.com/pytest-dev/pytest/issues/2812 ) Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Ian Stapleton Cordasco authored
Fix flake8 issues and drop py33
-
Ian Stapleton Cordasco authored
Fix flake8 issues
-
Ian Stapleton Cordasco authored
Add merge_commit_sha attribute to PullRequest object
-
Ian Stapleton Cordasco authored
This example does not create a commit
-
Jesse Keating authored
As of https://developer.github.com/changes/2017-05-09-end-black-cat-preview/ the reviews endpoint is no longer preview, and is now an official part of the API. It is no longer necessary to set a header when accessing this endpoint. Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Ian Stapleton Cordasco authored
This communicates far more clearly to the user what may have happened to cause issues with the response they were expecting. In the case of the issue raised, this points people towards the token they may be using and its scopes. Closes #693
-
Ian Stapleton Cordasco authored
Add exception to indicate an incomplete data set
-
Ian Stapleton Cordasco authored
Use correct attribute for pull request review ts
-
Ian Stapleton Cordasco authored
Drop preview header from reviews API call
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
The Projects API allows a user to fetch a project directly, without reference to an organisation or repository. This commit exposes this ability by adding a `project()` method to the `GitHub` class. Callers may obtain any project to which they have access by calling this method directly: import github3 project = github3.login(token='token').project(1234)
-
rco-ableton authored
The Projects API allows a user to fetch a project column directly, without reference to an organisation or repository. This commit exposes this ability by adding a `project_column()` method to the `GitHub` class. Callers may obtain any project column to which they have access by calling this method directly: import github3 column = github3.login(token='token').project_column(1234)
-
rco-ableton authored
The Projects API allows a user to fetch a project card directly, without reference to an organisation or repository. This commit exposes this ability by adding a `project_card()` method to the `GitHub` class. Callers may obtain any project card to which they have access by calling this method directly: import github3 card = github3.login(token='token').project_card(1234)
-
rco-ableton authored
-
Ian Stapleton Cordasco authored
Jesse and I are working on making the internals somewhat simpler and the API more descriptive. This brings the Projects API Support in-line with that effort.
-
Jesse Keating authored
Clean them up as done in #680 for users.py Related-to: #670 Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Jesse Keating authored
Alter how we import models as well, and fix a missing attribute on a call. Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Jesse Keating authored
This creates 3 new objects, one for iterations (Short), one for direct GETs (Organization), and one for events (EventOrganization). Most attributes can now be directly assigned, aside from a few that are only returned in the API if they are set on the server. Default those to None. Many test cassettes needed to be updated to pick up attributes added to orgs since the cassette was recorded (yay for additive REST APIs...). Introduce a 'auto_login' method to handle either token auth or username/password auth. Use it in the places I needed to update the cassette. Fix a few POST calls that were sending malformed (according to GitHub API) json data. Specifically an empty permission is not accepted. Related-to: #670 Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Ian Stapleton Cordasco authored
-
Ian Stapleton Cordasco authored
Implement Organization object refactor
-
Mark Troyer authored
create_user fails because the github3.users.User class expects data that is not present at the time of user creation. github3.users.ShortUser needs to be used instead.
-
Mark Troyer authored
-
Jesse Keating authored
Switch class used when creating a user
Showing
- .travis.yml 0 additions, 4 deletions.travis.yml
- AUTHORS.rst 6 additions, 0 deletionsAUTHORS.rst
- appveyor.yml 0 additions, 4 deletionsappveyor.yml
- dev-requirements.txt 1 addition, 1 deletiondev-requirements.txt
- docs/examples/git.rst 1 addition, 1 deletiondocs/examples/git.rst
- docs/examples/github.rst 7 additions, 0 deletionsdocs/examples/github.rst
- github3/api.py 1 addition, 1 deletiongithub3/api.py
- github3/events.py 19 additions, 2 deletionsgithub3/events.py
- github3/exceptions.py 17 additions, 1 deletiongithub3/exceptions.py
- github3/github.py 53 additions, 10 deletionsgithub3/github.py
- github3/models.py 4 additions, 1 deletiongithub3/models.py
- github3/orgs.py 155 additions, 52 deletionsgithub3/orgs.py
- github3/projects.py 388 additions, 0 deletionsgithub3/projects.py
- github3/pulls.py 8 additions, 5 deletionsgithub3/pulls.py
- github3/repos/repo.py 48 additions, 0 deletionsgithub3/repos/repo.py
- github3/users.py 4 additions, 3 deletionsgithub3/users.py
- setup.py 1 addition, 1 deletionsetup.py
- tests/cassettes/GitHub_all_organizations.json 1 addition, 1 deletiontests/cassettes/GitHub_all_organizations.json
- tests/cassettes/GitHub_organization.json 1 addition, 1 deletiontests/cassettes/GitHub_organization.json
- tests/cassettes/GitHub_project.json 1 addition, 0 deletionstests/cassettes/GitHub_project.json
github3/projects.py
0 → 100644
tests/cassettes/GitHub_project.json
0 → 100644