- Dec 21, 2017
-
-
Ian Stapleton Cordasco authored
Split up Issue objects
-
Jesse Keating authored
This creates 3 classes; one for iterations (Short), one for direct GETs (Issue), and one for events (EventIssue). Most attributes are directly assigned, except where otherwise commented. Some cassettes needed to be updated for the relatively new 'assignees' attribute that now comes back. A sample json needed to be updated as well. Cassettes that needed updated that were associated with authenticated calls got the calls updated to use auto_login as well. Some cassettes will break between older requests and newer, so tag those tests accordingly. Allow the tests to work in older requests land for now. The search tests needed to be updated as well, label name changed and syntax changed slightly. Related-to #670 Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
- Dec 20, 2017
-
-
Jesse Keating authored
Update AUTHORS.rst
-
- Dec 19, 2017
-
-
Becca James authored
Adding name to contributors list per contributor guidelines
-
Ian Stapleton Cordasco authored
Implement PullRequest refactor
-
Ian Stapleton Cordasco authored
Add "assignees" option to create_issue
-
Jesse Keating authored
There was not an integration test for this code path. Testing this path uncovered a bug in ShortUser when attempting to repr such objects. The name attribute is not available in the short object, so that object should print differently. The argument order for create_issue in github.py needed to match that of create_issue in repo.py, since it just passes through to that function. Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Jesse Keating authored
This cassette was causing failures. Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Becca James authored
This commit attempts to add support for multiple assignees issue creation.
-
Jesse Keating authored
This creates 3 classes; one for iterations (Short), one for direct GETs (PullRequest), and one for events (EventPullRequest). Most attributes are directly assigned, except where otherwise commented. A couple cassettes needed to be updated, and the sample json for pull_request needed to be updated as well. Updating that one required updating the tests for the now current data. Related-to #670 Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
- Dec 18, 2017
-
-
Jesse Keating authored
Related-to #670 Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
Jesse Keating authored
Switch class used when creating a user
-
Mark Troyer authored
-
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.
-
Ian Stapleton Cordasco authored
Implement Organization object refactor
-
Ian Stapleton Cordasco authored
-
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>
-
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
Clean them up as done in #680 for users.py Related-to: #670 Signed-off-by:
Jesse Keating <jkeating@j2solutions.net>
-
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.
-
- Dec 17, 2017
-
-
rco-ableton authored
-
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
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 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
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
rco-ableton authored
-
- Dec 15, 2017
-
-
Ian Stapleton Cordasco authored
Drop preview header from reviews API call
-
Ian Stapleton Cordasco authored
Use correct attribute for pull request review ts
-
Ian Stapleton Cordasco authored
Add exception to indicate an incomplete data set
-
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
-
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 example does not create a commit
-
Ian Stapleton Cordasco authored
Add merge_commit_sha attribute to PullRequest object
-
Ian Stapleton Cordasco authored
Fix flake8 issues
-
Ian Stapleton Cordasco authored
Fix flake8 issues and drop py33
-