Commit Graph
247 Commits
Author SHA1 Message Date
sfdye 365a0a24d3 Apply fix_headers script to update copyright info 2018-03-17 20:06:16 +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 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
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
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
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
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
James D'Amato 01ab4cc6ae Add role parameter to Team.add_membership method (#638) 2018-02-07 01:25:24 -08:00
James D'Amato 5a1424bbc4 Add add_membership testcase (#637) 2018-02-07 01:17:30 -08:00
Michael Behrisch e671fdd035 Fix date format for milestone creation (#593) 2018-02-06 14:21:51 -08:00
R1kk3r cbfe8d0f62 Remove the default "null" input send during GET request (#691)
* Remove the default "null" input send during GET request

* Remove the 'null' value from all tests
2018-01-31 16:16:11 -08:00
edquist 2f9b1e018a make created_at/published_at attrs available for Release objects (#689) 2018-01-26 11:59:30 -08:00
Andrew Smith 45d18436fd Add method to get latest release of a repository (#609) 2018-01-16 13:57:24 -08:00
Iraquitan Cordeiro Filho 6cfe46b712 Add permissions field to NamedUser (#676) 2018-01-16 13:52:52 -08:00
Simon 6bc804dc15 ♻️ Fix all pep8 coding conventions 2018-01-16 13:41:02 -08:00
Hugo 6735be4933 Drop support for EOL Python 2.5-2.6 and 3.2-3.3 (#674) 2017-12-20 22:52:00 -08:00
Nicolas Agustín Torres ba50af53a0 Add Reactions feature (#671)
* List reactions of issue

* Create issue reaction

* List reactions of an issue comment

* Create a reaction on an issue comment

* List reactions of a commit comment

*  Create a reaction on a commit comment

* List reactions of a pull request review comment

* Create a reaction on a pull request review comment

* Delete reaction

* Renames IssueReaction to Reaction

* Fixes docstring in Reaction class

* Removes issue_url on Reaction class

* Fixes string concatenation that does not work on python 2.6
2017-12-14 19:23:33 -08:00
Wan Liuyang 6169d8eaa2 Add ping_url and ping to Hook (#669) 2017-12-10 14:57:28 -08:00
Wan Liuyang e5bfdbeb06 Add unit test for tree attribute of GitCommit (#668) 2017-12-10 14:46:57 -08:00
Jimmy Zelinskie dbc6f5abf0 Add read_only attribute to Deploy Keys (#570) 2017-12-07 20:11:10 -08:00
Balázs Rostás 5c41120a8a Added missing parameters for repo creation (#623)
* Added missing parameters to organisation repo creation

* team_id should already be an id not a team object

* Name arguments in the test

* Fixed assertion check

* Added missing parameters to user repo creation

* Fixed comments
2017-11-27 14:25:00 -08:00
Chris McBride 52449649a4 Add ability to access github Release Asset API. (#525)
* Add ability to access github Release Asset API.
See: https://developer.github.com/v3/repos/releases
2017-11-27 10:01:03 -06:00
Mike Miller ebe7277a7f Add 'submitted at' to PullRequestReview (#565)
This field is not currently listed in the Github documentation at
https://developer.github.com/v3/pulls/reviews/, but it's been included
since Github 2.9

(It even exists in the test data returned for the original
PullRequestReview PR)
2017-11-23 03:49:41 -08:00
Jannis Gebauer 291f6dde62 fix failing tests on py26 2017-07-10 13:21:22 +02:00
Jannis Gebauer 4c64b28920 added repository collaborator invitation 2017-07-10 13:14:09 +02:00
Aaron Levine b6b127d732 Updates to API and changes to resolve testing issues. 2017-03-24 14:45:04 -06:00
Aaron Levine 7a0fcb27b7 Add testing for Pull Request Reviews and Review Requests 2017-03-21 13:00:11 -06:00
Matthew Neal 0154c6b0d5 Support HTTP 302 redirect in Organization.has_in_members 2017-01-18 22:13:14 -06:00
Nhomar Hernández [Vauxoo] 9d14335657 Merge pull request #469 from tmshn/support-multiple-assignees
Support multiple assignees on Issue & PullRequest
2017-01-17 12:53:48 -06:00
Sam Corbett 8ab9082cff Encode GithubObject repr values in utf-8 when using Python2 2016-11-30 10:15:51 +00:00
@tmshn 66430d7831 Added "add_to_assignees" & "remove_from_assignees" method to Issue object. 2016-11-27 21:31:30 +09:00
@tmshn c0de6be5ea Added "assignees" attribute to PullRequest object. 2016-11-22 20:03:30 +09:00
Benjamin Whitney ec633aab5e add html_url to GitRelease 2016-10-20 23:51:51 -04:00
@tmshn ba007dc8a8 Added "assignees" argument in Repository.create_issue() 2016-10-10 11:08:52 +09:00
@tmshn 14dd9f0850 Enhance support of "assignees" argument in Issue.edit() 2016-10-10 11:08:41 +09:00
@tmshn e0e5fdf9c0 Added "assignees" attribute to Issue object. 2016-10-09 01:22:03 +09:00
Jannis Gebauer 8b40674d1d Merge pull request #448 from PyGithub/contentfile-listing
Support directories in repo.get_contents
2016-10-05 11:39:42 +02:00
Jannis Gebauer 3a8edc771a add issue assignee param 2016-10-05 11:31:09 +02:00
mattjmorrison 5dddea78f0 Add ability to set permission for team repo
https://developer.github.com/v3/orgs/teams/#add-or-update-team-repository
2016-09-16 14:16:54 -05:00
Jannis Gebauer 0799753530 adds support for content dirs 2016-09-15 14:22:22 +02:00
Jannis Gebauer 78374b9d5e sort params and make them work on py3 2016-09-08 10:46:06 +02:00
Jannis Gebauer 8571d87c77 adds a nicer __repr__ 2016-09-08 10:25:48 +02:00
Jannis Gebauer 9134aa2b04 adds missing testfile corrections 2016-08-09 09:28:07 +02:00
Martijn Koster 70e30c5371 Patch issue 358 status context (#428)
* Add "context" to CommitStatus
* Add testcase for context in CommitStatus
2016-07-26 20:56:14 -04:00
Matt Babineau 3c6f99feb4 Adding "since" param to Issue.get_comments() (#426) 2016-07-21 11:19:13 -04:00
Jannis Gebauer 446313ea81 Merge branch 'master' of https://github.com/enix223/PyGithub into enix223-master 2016-07-18 17:15:19 +02:00