Commit Graph
1501 Commits
Author SHA1 Message Date
Wan Liuyang ca6fbc4552 Add download_url to ContentFile, closes #575 2018-04-06 18:30:43 +08:00
Jess Morgan eaa6a508f3 Add PullRequestComment.in_reply_to_id (#718)
Fix for issue #717
2018-04-06 18:17:20 +08:00
Raihaan 5cb5ab71b3 Add team privacy parameter to create team (#702)
* Add team privacy and add additional parameter to test. Still requires replaydata

* Reorder parameters to not break existing code

* Update tests for #702
2018-04-06 17:08:34 +08:00
Wan Liuyang b54ccc784e Implement License API (#734)
* Implement License API

* Update copyright
2018-04-06 09:17:19 +08:00
Wan Liuyang 911bf61522 Fix delete method for RepositoryKey 2018-04-05 10:25:04 +08:00
Wan Liuyang 722f253429 Remove edit for UserKey as it's immutable now 2018-04-05 10:23:01 +08:00
Mateusz Loskot 42e7593871 Labels API: support description (#738)
The description attribute handling requirement is
  a custom media type in the Accept header:
    application/vnd.github.symmetra-preview+json

Limitation: Repository.get_labels does not report description,
possibly something has changed in the preview API.
2018-03-29 18:16:20 +08:00
Shinichi TAMURA 6bf2acc74d Added Issue.as_pull_request() and PullReqest.as_issue() (#630) 2018-03-26 10:25:45 +08:00
Wan Liuyang 0669ab01f0 Add TravisBuddy 2018-03-26 10:17:02 +08:00
Morgan Goose 1497e8269a docs: sort the Github Objects (#735)
It's difficult to follow the API docs when the order isn't alphabetical. This seems like the simplest fix, and worked well locally.
2018-03-25 14:33:30 +08:00
Wan Liuyang ae261c821e Fix a bug for test recording when input is None 2018-03-22 16:38:19 +08:00
Ben Yohay 612c35007e Add support for getting PR single review's comments. (#670) 2018-03-21 20:50:56 +08:00
Laurent Raufaste 5e8c683261 Update the RepositoryKey class (#530)
# The problems I attempt to solve

- `RepositoryKey.created_at` is available on the Github API, but not in
PyGithub
- `RepositoryKey.edit()` is not supported anymore by the Github API,
see https://developer.github.com/v3/repos/keys/#edit-a-deploy-key

# How I went about solving the problem

I added myself a new deploy key to one of my repositories, and recorded
the existing tests using my account.
I could not keep the existing test data as the specified key does not
exist anymore, I added a comment for the next contributor to help him
figure out how to record new tests.
2018-03-21 15:09:31 +08:00
Matt Babineau d85082858e adding since to PR review comments get (#577) 2018-03-21 14:44:10 +08:00
Wan Liuyang 566b28d3fa Remove some duplicate attributes introduced in #522 2018-03-21 14:34:57 +08:00
Daniel Kesler c76e67b737 added tarball_url, zipball_url, prerelease and draft property (#522)
* added tarball_url, zipball_url, prerelease and draft property to GitRelease

* Add tests for new attributes
2018-03-21 14:23:56 +08:00
Hayden Fuss 864c663a16 Source Import API (#673)
* add import source

* add import header

* create/get source import for repo, SourceImport class

* Corrected use_lfs, not considered completed with creation

* vcs creds optional

* SourceImport test, removed unneeded attributes

* create/get source import tests for repo

* Encoding and copyright comment

* styling fixes

* Update SourceImport.py

* Update SourceImport.py

* Update SourceImport.py
2018-03-21 14:04:46 +08:00
Wan Liuyang ecab384885 Fix typo 2018-03-21 10:21:20 +08:00
Wan Liuyang 193aeaad2a Publish version 1.38 2018-03-21 10:19:03 +08:00
Gilad Shefer 162f0397bc Added option to create review for Pull request (#662)
* Added option to create review for Pull request

* Fix tests
2018-03-20 22:28:39 +08:00
Wan Liuyang 3cd176e3c3 Depreciate legacy search API 2018-03-20 20:27:27 +08:00
Wan Liuyang 67091c256c Update introduction.rst, closes #636 2018-03-19 07:38:52 +08:00
Michał Górny 10ee17a25c Filter team members by role (#491)
* Team: support filtering members by role

* Team: support adding membership with role
2018-03-17 22:05:13 +08:00
sfdye 3d31252337 Merge remote-tracking branch 'origin/master' 2018-03-17 20:33:55 +08:00
sfdye 15267c6804 Clean up 2018-03-17 20:33:41 +08:00
Wan Liuyang b63ed20329 Update CONTRIBUTING.md 2018-03-17 20:29:10 +08:00
sfdye 365a0a24d3 Apply fix_headers script to update copyright info 2018-03-17 20:06:16 +08:00
Darragh Bailey 0fb176fd71 Add url attribute to PullRequestReview object (#731)
To compare PullRequestReview objects, they need to have the 'url'
attribute because the CompletableGithubObject expects to be able to
inspect a '_url' attribute on objects when testing for equality.
2018-03-16 22:49:01 +08:00
Shinichi TAMURA 0f0a7d4e68 Added target_commitish option to Repository.create_git_release() (#625)
* Added is_draft and is_prerelease property to GitRelease

* Added target_commitish option to Repository.create_git_release()

* Added test for Repository.create_git_release()

* Renamed attr of GitRelease: is_draft, is_prerelease -> draft, prerelease
2018-03-15 11:17:04 +08:00
sfdye 654b06f6ba Update Sphinx conf 2018-03-13 22:51:56 +08:00
sfdye 58e1ef9ccb Fix copyright formatting 2018-03-13 22:30:47 +08:00
sfdye 020c136a40 Update doc link in copyright text 2018-03-13 22:07:38 +08:00
Wan Liuyang a32a17bf81 Fix broken Github reference link in class docstrings 2018-03-13 15:07:07 +08:00
Anton Nguyen c7f6563c34 Add hook support for organizations (#729)
* Add hook support for organizations
Specifically, the create_hook, get_hook, and get_hooks calls

* Added support for the edit and delete hook functions
2018-03-12 23:02:52 +08:00
sfdye 58f6e6eab5 Use a more modern sphinx theme 2018-03-11 09:21:14 +08:00
Isuru Fernando d9c5a07fcf Get organization from the team (#590)
* Get organization from the team

* Fix ReplayData for Team
2018-03-10 20:13:44 +08:00
Wan Liuyang 28499d0b9e Add gitsuggest, fixes #581 2018-03-10 14:14:34 +08:00
The Gitter Badger 9d1a7b13aa Add a Gitter chat badge to README.md (#728)
* Add Gitter badge

* Update README.md
2018-03-09 17:26:50 +08:00
Wan Liuyang c3a8acabd0 Remove contributing from readthedocs, closes #714 2018-03-09 16:25:20 +08:00
Wan Liuyang d6866ad186 Add codetriage badge 2018-03-09 16:15:49 +08:00
Agor Maxime aa556f85a1 Finished search_commits PR (#727)
* Added support for newer commit search API endpoint

* Added tests for new commit search method on main Github class

* Fixed sort parameter of search_commits
2018-03-09 08:00:47 +08:00
Victor Granic f8b23505da Collaborator site admin (#719)
* Add admin_user property to NamedUser

* Fix type from string to bool for site_admin property

* Add a test for site_admin
2018-03-06 10:35:11 +08:00
bryanhuntesl 6109eb3c2b Fix add_to_watched for AuthenticatedUser (#716)
* 'watching' != 'staring' 

The functionality was completely broken - api endpoints were wrong/didn't work. Tested by logging in as an authenticated user - verified listing watches, add watch, and remove watch.

* fix unit tests
2018-03-03 12:02:41 +08:00
Wan Liuyang 8daae1375e Update doc link for PyPI 2018-03-02 11:37:27 +08:00
Wan Liuyang b2461670d3 Publish version 1.37 2018-03-01 18:09:55 +08:00
Wan Liuyang 99d9e3b092 Using latest version of doc for badge 2018-03-01 18:04:04 +08:00
Wan Liuyang 1ca7d523fb Make sphinx work again 2018-03-01 17:28:48 +08:00
Wan Liuyang a4fb71296f Add @sfdye to MAINTAINERS 2018-03-01 11:52:57 +08:00
namc 8a13b27476 Add __eq__ and __hash__ to NamedUser (#706)
* Add __eq__ and __hash__ to NamedUser

* Remove extra outer brackets from __eq__ in NamedUser

* Add unit tests for __eq__ and __hash__

* Remove redundant brackets in __eq__ : NamedUser
2018-02-21 14:40:01 +08:00
Raihaan 0e5a1d1d53 Add maintainer can modify flag to create pull request (#703)
* Add flag for maintainer can modify when creating pull requests

* Change default to be None to let github decide the behaviour

* Update docstring

* Follow conventions from other functions
2018-02-15 10:07:26 +08:00