mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 11:21:16 +00:00
Merge branch 'develop'
This commit is contained in:
+23
@@ -1,3 +1,25 @@
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
*.pyc
|
||||
GithubCredentials.py
|
||||
/dist/
|
||||
@@ -5,3 +27,4 @@ GithubCredentials.py
|
||||
/MANIFEST
|
||||
/PyGithub.egg-info/
|
||||
/.coverage
|
||||
/developer.github.com/
|
||||
|
||||
+67
-11
@@ -1,7 +1,7 @@
|
||||
This is a Python (2 and 3) library to access the `Github API v3 <http://developer.github.com/v3>`_.
|
||||
With it, you can manage your `Github <http://github.com>`_ resources (repositories, user profiles, organizations, etc.) from Python scripts.
|
||||
|
||||
It covers the **full** API, and all methods are tested against the real Github site.
|
||||
It covers the **full** API (except recent additions, see "What's missing" bellow), and all methods are tested against the real Github site.
|
||||
|
||||
Should you have any question, any remark, or if you find a bug, or if there is something you can do with the API but not with PyGithub, please `open an issue <https://github.com/jacquev6/PyGithub/issues>`_.
|
||||
|
||||
@@ -10,19 +10,75 @@ PyGithub is stable. I will maintain it up to date with the API, and fix bugs if
|
||||
What's new?
|
||||
===========
|
||||
|
||||
Summer 2013 - I'm traveling
|
||||
---------------------------
|
||||
|
||||
You may have noticed I'm a bit slower than usual to manage your issues and pull requests.
|
||||
That's because I'm traveling a lot this summer. Please be patient.
|
||||
`Version 1.18.0 <https://github.com/jacquev6/PyGithub/issues?milestone=30&state=closed>`_ (August ??th, 2013) (Bénodet edition)
|
||||
-------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
`Version 1.17.0 <https://github.com/jacquev6/PyGithub/issues?milestone=29&state=closed>`_ (Jully 7th, 2013) (Hamburg edition)
|
||||
-----------------------------------------------------------------------------------------------------------------------------
|
||||
* `Issues <https://github.com/jacquev6/PyGithub/pull/181>`_' ``repository`` attribute will never be ``None``. Thank you `stuglaser <https://github.com/stuglaser>`_ for the pull request
|
||||
* No more false assumption on `rate_limiting <https://github.com/jacquev6/PyGithub/pull/186>`_, and creation of ``rate_limiting_resettime``. Thank you `edjackson <https://github.com/edjackson>`_ for the pull request
|
||||
* `New <https://github.com/jacquev6/PyGithub/pull/187>`_ parameters ``since`` and ``until`` to ``Repository.get_commits``. Thank you `apetresc <https://github.com/apetresc>`_ for the pull request
|
||||
* `Catch <https://github.com/jacquev6/PyGithub/pull/182>`_ Json parsing exception for some internal server errors, and throw a better exception. Thank you `MarkRoddy <https://github.com/MarkRoddy>`_ for the pull request
|
||||
* `Allow <https://github.com/jacquev6/PyGithub/pull/184>`_ reversed iteration of ``PaginatedList``s. Thank you `davidbrai <https://github.com/davidbrai>`_ for the pull request
|
||||
|
||||
* `Fix <https://github.com/jacquev6/PyGithub/pull/176>`_ bug in ``Repository.get_comment`` when using custom ``per_page``. Thank you `davidbrai <https://github.com/davidbrai>`_
|
||||
* `Handle <https://github.com/jacquev6/PyGithub/pull/174>`_ Http redirects in ``Repository.get_dir_contents``. Thank you `MarkRoddy <https://github.com/MarkRoddy>`_
|
||||
* `Implement <https://github.com/jacquev6/PyGithub/issues/173>`_ API ``/user`` in ``Github.get_users``. Thank you `rakeshcusat <https://github.com/rakeshcusat>`_ for asking
|
||||
* `Improve <https://github.com/jacquev6/PyGithub/pull/171>`_ the documentation. Thank you `martinqt <https://github.com/martinqt>`_
|
||||
What's missing?
|
||||
===============
|
||||
|
||||
We now have automated ways to list URLs documented in `the reference of Github API v3 <http://developer.github.com>`_ and not covered by PyGithub.
|
||||
|
||||
Github API v3 URLs not (yet) covered by PyGithub
|
||||
------------------------------------------------
|
||||
|
||||
* ``/applications/:client_id/tokens/:access_token`` (GET)
|
||||
* ``/feeds`` (GET)
|
||||
* ``/gists/:id/forks`` (POST)
|
||||
|
||||
* instead, ``Gist.create_fork`` calls the old URL ``/gists/:id/fork``
|
||||
|
||||
* ``/meta`` (GET)
|
||||
* ``/notifications`` (PUT)
|
||||
* ``/notifications/emails`` (GET)
|
||||
* ``/notifications/emails`` (PATCH)
|
||||
* ``/notifications/global/emails`` (GET)
|
||||
* ``/notifications/global/emails`` (PUT)
|
||||
* ``/notifications/organization/:org/emails`` (GET)
|
||||
* ``/notifications/organization/:org/emails`` (PUT)
|
||||
* ``/notifications/settings`` (GET)
|
||||
* ``/notifications/settings`` (PATCH)
|
||||
* ``/notifications/threads/:id`` (PATCH)
|
||||
* ``/notifications/threads/:id/subscription`` (DELETE)
|
||||
* ``/notifications/threads/:id/subscription`` (GET)
|
||||
* ``/notifications/threads/:id/subscription`` (PUT)
|
||||
* ``/rate_limit`` (GET)
|
||||
|
||||
* should be called in method ``Github.get_rate_limit``. See also ``Github.rate_limiting``
|
||||
|
||||
* ``/repos/:owner/:repo/contents/:path`` (DELETE)
|
||||
* ``/repos/:owner/:repo/contents/:path`` (PUT)
|
||||
* ``/repos/:owner/:repo/hooks/:id/tests`` (POST)
|
||||
|
||||
* instead, ``Hook.test`` calls the old URL ``/repos/:owner/:repo/hooks/:id/test``
|
||||
|
||||
* ``/repos/:owner/:repo/notifications`` (GET)
|
||||
* ``/repos/:owner/:repo/notifications`` (PUT)
|
||||
* ``/repos/:owner/:repo/stats/code_frequency`` (GET)
|
||||
* ``/repos/:owner/:repo/stats/commit_activity`` (GET)
|
||||
* ``/repos/:owner/:repo/stats/contributors`` (GET)
|
||||
* ``/repos/:owner/:repo/stats/participation`` (GET)
|
||||
* ``/repos/:owner/:repo/stats/punch_card`` (GET)
|
||||
* ``/repos/:owner/:repo/subscription`` (DELETE)
|
||||
* ``/repos/:owner/:repo/subscription`` (GET)
|
||||
* ``/repos/:owner/:repo/subscription`` (PUT)
|
||||
* ``/repositories`` (GET)
|
||||
|
||||
* should be called in method ``Github.get_repos``
|
||||
|
||||
* ``/search/code`` (GET)
|
||||
* ``/search/issues`` (GET)
|
||||
* ``/search/repositories`` (GET)
|
||||
* ``/search/users`` (GET)
|
||||
* ``/users/:user/following/:target_user`` (GET)
|
||||
|
||||
* should be called in method ``NamedUser.has_in_following``
|
||||
|
||||
Documentation
|
||||
=============
|
||||
|
||||
+25
-2
@@ -1,3 +1,26 @@
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
/build/
|
||||
github_objects.rst
|
||||
contributing.rst
|
||||
/github_objects.rst
|
||||
/contributing.rst
|
||||
/apis.rst
|
||||
|
||||
-638
@@ -1,638 +0,0 @@
|
||||
APIs
|
||||
====
|
||||
|
||||
* ``/authorizations``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_authorizations`
|
||||
* POST: :meth:`github.AuthenticatedUser.AuthenticatedUser.create_authorization`
|
||||
|
||||
* ``/authorizations/:id``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_authorization`
|
||||
* PATCH: :meth:`github.Authorization.Authorization.edit`
|
||||
* DELETE: :meth:`github.Authorization.Authorization.delete`
|
||||
|
||||
* ``/events``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_events`
|
||||
|
||||
* ``/gists``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_gists`
|
||||
* POST: :meth:`github.AuthenticatedUser.AuthenticatedUser.create_gist`
|
||||
|
||||
* ``/gists/:id``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_gist`
|
||||
* PATCH: :meth:`github.Gist.Gist.edit`
|
||||
* DELETE: :meth:`github.Gist.Gist.delete`
|
||||
|
||||
* ``/gists/:id/comments``
|
||||
|
||||
* GET: :meth:`github.Gist.Gist.get_comments`
|
||||
* POST: :meth:`github.Gist.Gist.create_comment`
|
||||
|
||||
* ``/gists/:id/fork``
|
||||
|
||||
* POST: :meth:`github.Gist.Gist.create_fork`
|
||||
|
||||
* ``/gists/:id/star``
|
||||
|
||||
* GET: :meth:`github.Gist.Gist.is_starred`
|
||||
* PUT: :meth:`github.Gist.Gist.set_starred`
|
||||
* DELETE: :meth:`github.Gist.Gist.reset_starred`
|
||||
|
||||
* ``/gists/comments/:id``
|
||||
|
||||
* GET: :meth:`github.Gist.Gist.get_comment`
|
||||
* PATCH: :meth:`github.GistComment.GistComment.edit`
|
||||
* DELETE: :meth:`github.GistComment.GistComment.delete`
|
||||
|
||||
* ``/gists/public``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_gists`
|
||||
|
||||
* ``/gists/starred``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_starred_gists`
|
||||
|
||||
* ``/gitignore/templates``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_gitignore_templates`
|
||||
|
||||
* ``/gitignore/templates/:name``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_gitignore_template`
|
||||
|
||||
* ``/hooks``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_hooks`
|
||||
|
||||
* ``/hub``
|
||||
|
||||
* POST: :meth:`github.Repository.Repository.subscribe_to_hub` or :meth:`github.Repository.Repository.unsubscribe_to_hub`
|
||||
|
||||
* ``/issues``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_issues`
|
||||
|
||||
* ``/legacy/issues/search/:owner/:repository/:state/:keyword``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.legacy_search_issues`
|
||||
|
||||
* ``/legacy/repos/search/:keyword``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.legacy_search_repos`
|
||||
|
||||
* ``/legacy/user/email/:email``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.legacy_search_user_by_email`
|
||||
|
||||
* ``/legacy/user/search/:keyword``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.legacy_search_users`
|
||||
|
||||
* ``/markdown``
|
||||
|
||||
* POST: :meth:`github.MainClass.Github.render_markdown`
|
||||
|
||||
* ``/markdown/raw``
|
||||
|
||||
* POST: see ``/markdown``
|
||||
|
||||
* ``/networks/:user/:repo/events``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_network_events`
|
||||
|
||||
* ``/notifications``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_notifications`
|
||||
|
||||
* ``/notifications/threads/:id``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_notification`
|
||||
|
||||
* ``/orgs/:org``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_organization`
|
||||
* PATCH: :meth:`github.Organization.Organization.edit`
|
||||
|
||||
* ``/orgs/:org/events``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.get_events`
|
||||
|
||||
* ``/orgs/:org/issues``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.get_issues`
|
||||
|
||||
* ``/orgs/:org/members``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.get_members`
|
||||
|
||||
* ``/orgs/:org/members/:user``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.has_in_members`
|
||||
* DELETE: :meth:`github.Organization.Organization.remove_from_members`
|
||||
|
||||
* ``/orgs/:org/public_members``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.get_public_members`
|
||||
|
||||
* ``/orgs/:org/public_members/:user``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.has_in_public_members`
|
||||
* PUT: :meth:`github.Organization.Organization.add_to_public_members`
|
||||
* DELETE: :meth:`github.Organization.Organization.remove_from_public_members`
|
||||
|
||||
* ``/orgs/:org/repos``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.get_repos`
|
||||
* POST: :meth:`github.Organization.Organization.create_repo`
|
||||
|
||||
* ``/orgs/:org/teams``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.get_teams`
|
||||
* POST: :meth:`github.Organization.Organization.create_team`
|
||||
|
||||
* ``/rate_limit``
|
||||
|
||||
* GET: :meth:Ngithub.ot ot implemented, see `Github.rate_limiting`
|
||||
|
||||
* ``/repos/:user/:repo``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_repo` or :meth:`github.NamedUser.NamedUser.get_repo` or :meth:`github.Organization.Organization.get_repo` or :meth:`github.MainClass.Github.get_repo`
|
||||
* PATCH: :meth:`github.Repository.Repository.edit`
|
||||
* DELETE: :meth:`github.Repository.Repository.delete`
|
||||
|
||||
* ``/repos/:user/:repo/:archive_format/:ref``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_archive_link`
|
||||
|
||||
* ``/repos/:user/:repo/assignees``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_assignees`
|
||||
|
||||
* ``/repos/:user/:repo/assignees/:assignee``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.has_in_assignees`
|
||||
|
||||
* ``/repos/:user/:repo/branches``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_branches`
|
||||
|
||||
* ``/repos/:user/:repo/branches/:branch``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_branch`
|
||||
|
||||
* ``/repos/:user/:repo/collaborators``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_collaborators`
|
||||
|
||||
* ``/repos/:user/:repo/collaborators/:user``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.has_in_collaborators`
|
||||
* PUT: :meth:`github.Repository.Repository.add_to_collaborators`
|
||||
* DELETE: :meth:`github.Repository.Repository.remove_from_collaborators`
|
||||
|
||||
* ``/repos/:user/:repo/comments``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_comments`
|
||||
|
||||
* ``/repos/:user/:repo/comments/:id``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_comment`
|
||||
* PATCH: :meth:`github.CommitComment.CommitComment.edit`
|
||||
* DELETE: :meth:`github.CommitComment.CommitComment.delete`
|
||||
|
||||
* ``/repos/:user/:repo/commits``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_commits`
|
||||
|
||||
* ``/repos/:user/:repo/commits/:sha``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_commit`
|
||||
|
||||
* ``/repos/:user/:repo/commits/:sha/comments``
|
||||
|
||||
* GET: :meth:`github.Commit.Commit.get_comments`
|
||||
* POST: :meth:`github.Commit.Commit.create_comment`
|
||||
|
||||
* ``/repos/:user/:repo/compare/:base...:head``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.compare`
|
||||
|
||||
* ``/repos/:user/:repo/contents/:path``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_contents` or :meth:`github.Repository.Repository.get_file_contents` or :meth:`github.Repository.Repository.get_dir_contents`
|
||||
|
||||
* ``/repos/:user/:repo/contributors``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_contributors`
|
||||
|
||||
* ``/repos/:user/:repo/downloads``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_downloads`
|
||||
* POST: :meth:`github.Repository.Repository.create_download`
|
||||
|
||||
* ``/repos/:user/:repo/downloads/:id``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_download`
|
||||
* DELETE: :meth:`github.Download.Download.delete`
|
||||
|
||||
* ``/repos/:user/:repo/events``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_events`
|
||||
|
||||
* ``/repos/:user/:repo/forks``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_forks`
|
||||
* POST: :meth:`github.AuthenticatedUser.AuthenticatedUser.create_fork` or `Organization.create_fork`
|
||||
|
||||
* ``/repos/:user/:repo/git/blobs``
|
||||
|
||||
* POST: :meth:`github.Repository.Repository.create_git_blob`
|
||||
|
||||
* ``/repos/:user/:repo/git/blobs/:sha``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_git_blob`
|
||||
|
||||
* ``/repos/:user/:repo/git/commits``
|
||||
|
||||
* POST: :meth:`github.Repository.Repository.create_git_commit`
|
||||
|
||||
* ``/repos/:user/:repo/git/commits/:sha``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_git_commit`
|
||||
|
||||
* ``/repos/:user/:repo/git/refs``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_git_refs`
|
||||
* POST: :meth:`github.Repository.Repository.create_git_ref`
|
||||
|
||||
* ``/repos/:user/:repo/git/refs/:ref``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_git_ref`
|
||||
* PATCH: :meth:`github.GitRef.GitRef.edit`
|
||||
* DELETE: :meth:`github.GitRef.GitRef.delete`
|
||||
|
||||
* ``/repos/:user/:repo/git/tags``
|
||||
|
||||
* POST: :meth:`github.Repository.Repository.create_git_tag`
|
||||
|
||||
* ``/repos/:user/:repo/git/tags/:sha``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_git_tag`
|
||||
|
||||
* ``/repos/:user/:repo/git/trees``
|
||||
|
||||
* POST: :meth:`github.Repository.Repository.create_git_tree`
|
||||
|
||||
* ``/repos/:user/:repo/git/trees/:sha``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_git_tree`
|
||||
|
||||
* ``/repos/:user/:repo/hooks``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_hooks`
|
||||
* POST: :meth:`github.Repository.Repository.create_hook`
|
||||
|
||||
* ``/repos/:user/:repo/hooks/:id``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_hook`
|
||||
* PATCH: :meth:`github.Hook.Hook.edit`
|
||||
* DELETE: :meth:`github.Hook.Hook.delete`
|
||||
|
||||
* ``/repos/:user/:repo/hooks/:id/test``
|
||||
|
||||
* POST: :meth:`github.Hook.Hook.test`
|
||||
|
||||
* ``/repos/:user/:repo/issues``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_issues`
|
||||
* POST: :meth:`github.Repository.Repository.create_issue`
|
||||
|
||||
* ``/repos/:user/:repo/issues/:number``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_issue`
|
||||
* PATCH: :meth:`github.Issue.Issue.edit`
|
||||
|
||||
* ``/repos/:user/:repo/issues/:number/comments``
|
||||
|
||||
* GET: :meth:`github.Issue.Issue.get_comments` or :meth:`gituhub.PullRequest.PullRequest.get_issue_comments`
|
||||
* POST: :meth:`github.Issue.Issue.create_comment` or :meth:`gituhub.PullRequest.PullRequest.create_issue_comment`
|
||||
|
||||
* ``/repos/:user/:repo/issues/:number/events``
|
||||
|
||||
* GET: :meth:`github.Issue.Issue.get_events`
|
||||
|
||||
* ``/repos/:user/:repo/issues/:number/labels``
|
||||
|
||||
* GET: :meth:`github.Issue.Issue.get_labels`
|
||||
* POST: :meth:`github.Issue.Issue.add_to_labels`
|
||||
* PUT: :meth:`github.Issue.Issue.set_labels`
|
||||
* DELETE: :meth:`github.Issue.Issue.delete_labels`
|
||||
|
||||
* ``/repos/:user/:repo/issues/:number/labels/:name``
|
||||
|
||||
* DELETE: :meth:`github.Issue.Issue.remove_from_labels`
|
||||
|
||||
* ``/repos/:user/:repo/issues/comments``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_issues_comments`
|
||||
|
||||
* ``/repos/:user/:repo/issues/comments/:id``
|
||||
|
||||
* GET: :meth:`github.Issue.Issue.get_comment` or :meth:`gituhub.PullRequest.PullRequest.get_issue_comment`
|
||||
* PATCH: :meth:`github.IssueComment.IssueComment.edit`
|
||||
* DELETE: :meth:`github.IssueComment.IssueComment.delete`
|
||||
|
||||
* ``/repos/:user/:repo/issues/events``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_issues_events`
|
||||
|
||||
* ``/repos/:user/:repo/issues/events/:id``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_issues_event`
|
||||
|
||||
* ``/repos/:user/:repo/keys``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_keys`
|
||||
* POST: :meth:`github.Repository.Repository.create_key`
|
||||
|
||||
* ``/repos/:user/:repo/keys/:id``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_key`
|
||||
* PATCH: :meth:`github.RepositoryKey.RepositoryKey.edit`
|
||||
* DELETE: :meth:`github.RepositoryKey.RepositoryKey.delete`
|
||||
|
||||
* ``/repos/:user/:repo/labels``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_labels`
|
||||
* POST: :meth:`github.Repository.Repository.create_label`
|
||||
|
||||
* ``/repos/:user/:repo/labels/:name``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_label`
|
||||
* PATCH: :meth:`github.Label.Label.edit`
|
||||
* DELETE: :meth:`github.Label.Label.delete`
|
||||
|
||||
* ``/repos/:user/:repo/languages``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_languages`
|
||||
|
||||
* ``/repos/:user/:repo/merges``
|
||||
|
||||
* POST: :meth:`github.Repository.Repository.merge`
|
||||
|
||||
* ``/repos/:user/:repo/milestones``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_milestones`
|
||||
* POST: :meth:`github.Repository.Repository.create_milestone`
|
||||
|
||||
* ``/repos/:user/:repo/milestones/:number``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_milestone`
|
||||
* PATCH: :meth:`github.Milestone.Milestone.edit`
|
||||
* DELETE: :meth:`github.Milestone.Milestone.delete`
|
||||
|
||||
* ``/repos/:user/:repo/milestones/:number/labels``
|
||||
|
||||
* GET: :meth:`github.Milestone.Milestone.get_labels`
|
||||
|
||||
* ``/repos/:user/:repo/pulls``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_pulls`
|
||||
* POST: :meth:`github.Repository.Repository.create_pull`
|
||||
|
||||
* ``/repos/:user/:repo/pulls/:number``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_pull`
|
||||
* PATCH: :meth:`github.PullRequest.PullRequest.edit`
|
||||
|
||||
* ``/repos/:user/:repo/pulls/:number/comments``
|
||||
|
||||
* GET: :meth:`github.PullRequest.PullRequest.get_comments` or :meth:`github.PullRequest.PullRequest.get_review_comments`
|
||||
* POST: :meth:`github.PullRequest.PullRequest.create_comment` or :meth:`github.PullRequest.PullRequest.create_review_comment`
|
||||
|
||||
* ``/repos/:user/:repo/pulls/:number/commits``
|
||||
|
||||
* GET: :meth:`github.PullRequest.PullRequest.get_commits`
|
||||
|
||||
* ``/repos/:user/:repo/pulls/:number/files``
|
||||
|
||||
* GET: :meth:`github.PullRequest.PullRequest.get_files`
|
||||
|
||||
* ``/repos/:user/:repo/pulls/:number/merge``
|
||||
|
||||
* GET: :meth:`github.PullRequest.PullRequest.is_merged`
|
||||
* PUT: :meth:`github.PullRequest.PullRequest.merge`
|
||||
|
||||
* ``/repos/:user/:repo/pulls/comments``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_pulls_comments` or :meth:`github.Repository.Repository.get_pulls_review_comments`
|
||||
|
||||
* ``/repos/:user/:repo/pulls/comments/:number``
|
||||
|
||||
* GET: :meth:`github.PullRequest.PullRequest.get_comment` or :meth:`github.PullRequest.PullRequest.get_review_comment`
|
||||
* PATCH: :meth:`github.PullRequestComment.PullRequestComment.edit`
|
||||
* DELETE: :meth:`github.PullRequestComment.PullRequestComment.delete`
|
||||
|
||||
* ``/repos/:user/:repo/readme``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_readme`
|
||||
|
||||
* ``/repos/:user/:repo/stargazers``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_stargazers`
|
||||
|
||||
* ``/repos/:user/:repo/statuses/:sha``
|
||||
|
||||
* GET: :meth:`github.Commit.Commit.get_statuses`
|
||||
* POST: :meth:`github.Commit.Commit.create_status`
|
||||
|
||||
* ``/repos/:user/:repo/subscribers``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_subscribers`
|
||||
|
||||
* ``/repos/:user/:repo/tags``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_tags`
|
||||
|
||||
* ``/repos/:user/:repo/teams``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_teams`
|
||||
|
||||
* ``/repos/:user/:repo/watchers``
|
||||
|
||||
* GET: :meth:`github.Repository.Repository.get_watchers`
|
||||
|
||||
* ``/teams/:id``
|
||||
|
||||
* GET: :meth:`github.Organization.Organization.get_team`
|
||||
* PATCH: :meth:`github.Team.Team.edit`
|
||||
* DELETE: :meth:`github.Team.Team.delete`
|
||||
|
||||
* ``/teams/:id/members``
|
||||
|
||||
* GET: :meth:`github.Team.Team.get_members`
|
||||
|
||||
* ``/teams/:id/members/:user``
|
||||
|
||||
* GET: :meth:`github.Team.Team.has_in_members`
|
||||
* PUT: :meth:`github.Team.Team.add_to_members`
|
||||
* DELETE: :meth:`github.Team.Team.remove_from_members`
|
||||
|
||||
* ``/teams/:id/repos``
|
||||
|
||||
* GET: :meth:`github.Team.Team.get_repos`
|
||||
|
||||
* ``/teams/:id/repos/:user/:repo``
|
||||
|
||||
* GET: :meth:`github.Team.Team.has_in_repos`
|
||||
* PUT: :meth:`github.Team.Team.add_to_repos`
|
||||
* DELETE: :meth:`github.Team.Team.remove_from_repos`
|
||||
|
||||
* ``/user``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_user`
|
||||
* PATCH: :meth:`github.AuthenticatedUser.AuthenticatedUser.edit`
|
||||
|
||||
* ``/user/emails``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_emails`
|
||||
* POST: :meth:`github.AuthenticatedUser.AuthenticatedUser.add_to_emails`
|
||||
* DELETE: :meth:`github.AuthenticatedUser.AuthenticatedUser.remove_from_emails`
|
||||
|
||||
* ``/user/followers``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_followers`
|
||||
|
||||
* ``/user/following``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_following`
|
||||
|
||||
* ``/user/following/:user``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.has_in_following`
|
||||
* PUT: :meth:`github.AuthenticatedUser.AuthenticatedUser.add_to_following`
|
||||
* DELETE: :meth:`github.AuthenticatedUser.AuthenticatedUser.remove_from_following`
|
||||
|
||||
* ``/user/issues``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_user_issues`
|
||||
|
||||
* ``/user/keys``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_keys`
|
||||
* POST: :meth:`github.AuthenticatedUser.AuthenticatedUser.create_key`
|
||||
|
||||
* ``/user/keys/:id``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_key`
|
||||
* PATCH: :meth:`github.UserKey.UserKey.edit`
|
||||
* DELETE: :meth:`github.UserKey.UserKey.delete`
|
||||
|
||||
* ``/user/orgs``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_orgs`
|
||||
|
||||
* ``/user/repos``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_repos`
|
||||
* POST: :meth:`github.AuthenticatedUser.AuthenticatedUser.create_repo`
|
||||
|
||||
* ``/user/starred``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_starred`
|
||||
|
||||
* ``/user/starred/:user/:repo``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.has_in_starred`
|
||||
* PUT: :meth:`github.AuthenticatedUser.AuthenticatedUser.add_to_starred`
|
||||
* DELETE: :meth:`github.AuthenticatedUser.AuthenticatedUser.remove_from_starred`
|
||||
|
||||
* ``/user/subscriptions``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_subscriptions`
|
||||
|
||||
* ``/user/subscriptions/:user/:repo``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.has_in_subscriptions`
|
||||
* PUT: :meth:`github.AuthenticatedUser.AuthenticatedUser.add_to_subscriptions`
|
||||
* DELETE: :meth:`github.AuthenticatedUser.AuthenticatedUser.remove_from_subscriptions`
|
||||
|
||||
* ``/user/watched``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_watched`
|
||||
|
||||
* ``/user/watched/:user/:repo``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.has_in_watched`
|
||||
* PUT: :meth:`github.AuthenticatedUser.AuthenticatedUser.add_to_watched`
|
||||
* DELETE: :meth:`github.AuthenticatedUser.AuthenticatedUser.remove_from_watched`
|
||||
|
||||
* ``/users``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_users`
|
||||
|
||||
* ``/users/:user``
|
||||
|
||||
* GET: :meth:`github.MainClass.Github.get_user`
|
||||
|
||||
* ``/users/:user/events``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_events`
|
||||
|
||||
* ``/users/:user/events/orgs/:org``
|
||||
|
||||
* GET: :meth:`github.AuthenticatedUser.AuthenticatedUser.get_organization_events`
|
||||
|
||||
* ``/users/:user/events/public``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_public_events`
|
||||
|
||||
* ``/users/:user/followers``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_followers`
|
||||
|
||||
* ``/users/:user/following``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_following`
|
||||
|
||||
* ``/users/:user/gists``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_gists`
|
||||
* POST: :meth:`github.NamedUser.NamedUser.create_gist`
|
||||
|
||||
* ``/users/:user/keys``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_keys`
|
||||
|
||||
* ``/users/:user/orgs``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_orgs`
|
||||
|
||||
* ``/users/:user/received_events``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_received_events`
|
||||
|
||||
* ``/users/:user/received_events/public``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_public_received_events`
|
||||
|
||||
* ``/users/:user/repos``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_repos`
|
||||
|
||||
* ``/users/:user/starred``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_starred`
|
||||
|
||||
* ``/users/:user/subscriptions``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_subscriptions`
|
||||
|
||||
* ``/users/:user/watched``
|
||||
|
||||
* GET: :meth:`github.NamedUser.NamedUser.get_watched`
|
||||
|
||||
+4
-4
@@ -93,7 +93,7 @@ Version 1.12.1 (February 20th, 2013)
|
||||
* Add a shortcut function :meth:`github.MainClass.Github.get_repo` to get a repo directly from its full name. thank you `lwc <https://github.com/lwc>`_ for the contribution
|
||||
* :meth:`github.MainClass.Github.get_gitignore_templates` and :meth:`github.MainClass.Github.get_gitignore_template` for APIs ``/gitignore/templates``
|
||||
* Add the optional ``ref`` parameter to :meth:`github.Repository.Repository.get_contents` and :meth:`github.Repository.Repository.get_readme`. Thank you `fixxxeruk <https://github.com/fixxxeruk>`_ for the contribution
|
||||
* Get comments for all issues and all pull requests on a repository (``GET /repos/:user/:repo/pulls/comments``: :meth:`github.Repository.Repository.get_pulls_comments` or :meth:`github.Repository.Repository.get_pulls_review_comments`; ``GET /repos/:user/:repo/issues/comments``: :meth:`github.Repository.Repository.get_issues_comments`)
|
||||
* Get comments for all issues and all pull requests on a repository (``GET /repos/:owner/:repo/pulls/comments``: :meth:`github.Repository.Repository.get_pulls_comments` or :meth:`github.Repository.Repository.get_pulls_review_comments`; ``GET /repos/:owner/:repo/issues/comments``: :meth:`github.Repository.Repository.get_issues_comments`)
|
||||
|
||||
`Version 1.9.1 <https://github.com/jacquev6/PyGithub/issues?milestone-17&state-closed>`_ (November 20th, 2012)
|
||||
--------------------------------------------------------------------------------------------------------------
|
||||
@@ -225,9 +225,9 @@ Pre-release versions
|
||||
|
||||
* GET `/gists/public`
|
||||
* GET `/issues`
|
||||
* GET `/repos/:user/:repo/compare/:base...:head`
|
||||
* GET `/repos/:user/:repo/git/trees/:sha?recursive-1`
|
||||
* POST `/repos/:user/:repo/git/trees?base_tree-`
|
||||
* GET `/repos/:owner/:repo/compare/:base...:head`
|
||||
* GET `/repos/:owner/:repo/git/trees/:sha?recursive-1`
|
||||
* POST `/repos/:owner/:repo/git/trees?base_tree-`
|
||||
|
||||
* Gists
|
||||
* Autorizations
|
||||
|
||||
+100
-17
@@ -1,7 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
# PyGithub documentation build configuration file, created by
|
||||
# sphinx-quickstart on Thu Sep 13 22:51:42 2012.
|
||||
@@ -14,7 +33,7 @@
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
import sys, os, shutil
|
||||
import sys, os, shutil, glob
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
@@ -249,20 +268,84 @@ autodoc_default_flags = [ "members" ]
|
||||
autodoc_member_order = "bysource"
|
||||
autoclass_content = "both"
|
||||
|
||||
with open("github_objects.rst", "w") as github_objects:
|
||||
github_objects.write("Github objects\n")
|
||||
github_objects.write("==============\n")
|
||||
github_objects.write("\n")
|
||||
github_objects.write(".. autoclass:: github.GithubObject.GithubObject()\n")
|
||||
github_objects.write("\n")
|
||||
github_objects.write(".. toctree::\n")
|
||||
githubClasses = [
|
||||
fileName[10:-3]
|
||||
for fileName in glob.glob("../github/*.py")
|
||||
if fileName not in [
|
||||
"../github/GithubException.py",
|
||||
"../github/GithubObject.py",
|
||||
"../github/InputFileContent.py",
|
||||
"../github/InputGitAuthor.py",
|
||||
"../github/InputGitTreeElement.py",
|
||||
"../github/Legacy.py",
|
||||
"../github/MainClass.py",
|
||||
"../github/PaginatedList.py",
|
||||
"../github/Requester.py",
|
||||
"../github/__init__.py"]
|
||||
]
|
||||
|
||||
for obj in ["AuthenticatedUser", "Authorization", "AuthorizationApplication", "Branch", "Commit", "CommitComment", "CommitStats", "CommitStatus", "Comparison", "ContentFile", "Download", "Event", "File", "Gist", "GistComment", "GistFile", "GistHistoryState", "GitAuthor", "GitBlob", "GitCommit", "GitObject", "GitignoreTemplate", "GitRef", "GitTag", "GitTree", "GitTreeElement", "Hook", "HookDescription", "HookResponse", "Issue", "IssueComment", "IssueEvent", "IssuePullRequest", "Label", "Milestone", "NamedUser", "Notification", "NotificationSubject", "Organization", "Permissions", "Plan", "PullRequest", "PullRequestComment", "PullRequestMergeStatus", "PullRequestPart", "Repository", "RepositoryKey", "Tag", "Team", "UserKey"]:
|
||||
github_objects.write(" github_objects/" + obj + "\n")
|
||||
with open("github_objects/" + obj + ".rst", "w") as github_object:
|
||||
github_object.write(obj + "\n")
|
||||
github_object.write("=" * len(obj) + "\n")
|
||||
github_object.write("\n")
|
||||
github_object.write(".. autoclass:: github." + obj + "." + obj + "()\n")
|
||||
with open("github_objects.rst", "w") as f:
|
||||
f.write("Github objects\n")
|
||||
f.write("==============\n")
|
||||
f.write("\n")
|
||||
f.write(".. autoclass:: github.GithubObject.GithubObject()\n")
|
||||
f.write("\n")
|
||||
f.write(".. toctree::\n")
|
||||
for githubClass in githubClasses:
|
||||
f.write(" github_objects/" + githubClass + "\n")
|
||||
|
||||
for githubClass in githubClasses:
|
||||
with open("github_objects/" + githubClass + ".rst", "w") as f:
|
||||
f.write(githubClass + "\n")
|
||||
f.write("=" * len(githubClass) + "\n")
|
||||
f.write("\n")
|
||||
f.write(".. autoclass:: github." + githubClass + "." + githubClass + "()\n")
|
||||
|
||||
methods = dict()
|
||||
for githubClass in githubClasses + ["MainClass"]:
|
||||
with open("../github/" + githubClass + ".py") as f:
|
||||
if githubClass == "MainClass":
|
||||
githubClass = "github.MainClass.Github"
|
||||
else:
|
||||
githubClass = "github." + githubClass + "." + githubClass
|
||||
method = None
|
||||
isProperty = False
|
||||
for line in f:
|
||||
line = line.rstrip()
|
||||
if line == " @property":
|
||||
isProperty = True
|
||||
if line.startswith(" def "):
|
||||
if not isProperty:
|
||||
assert method is None, method + " has no :calls: section"
|
||||
method = line.split("(")[0][8:]
|
||||
if method in ["_initAttributes", "_useAttributes", "__init__", "__create_pull_1", "__create_pull_2", "__create_pull", "_hub", "__get_FIX_REPO_GET_GIT_REF", "__set_FIX_REPO_GET_GIT_REF", "__get_per_page", "__set_per_page"]:
|
||||
method = None
|
||||
isProperty = False
|
||||
if line.startswith(" :calls: `"):
|
||||
for callee in line[16:].split(" or "):
|
||||
verb, url = callee[1:].split(" ")[0:2]
|
||||
if url not in methods:
|
||||
methods[url] = dict()
|
||||
if verb not in methods[url]:
|
||||
methods[url][verb] = set()
|
||||
methods[url][verb].add(":meth:`" + githubClass + "." + method + "`")
|
||||
method = None
|
||||
|
||||
methods["/markdown/raw"] = dict()
|
||||
methods["/markdown/raw"]["POST"] = ["Not implemented, see ``/markdown``"]
|
||||
methods["/rate_limit"] = dict()
|
||||
methods["/rate_limit"]["GET"] = ["Not implemented, see `Github.rate_limiting`"]
|
||||
|
||||
with open("apis.rst", "w") as apis:
|
||||
apis.write("APIs\n")
|
||||
apis.write("====\n")
|
||||
apis.write("\n")
|
||||
for url, verbs in sorted(methods.iteritems()):
|
||||
apis.write("* ``" + url + "``\n")
|
||||
apis.write("\n")
|
||||
for verb in ["GET", "PATCH", "POST", "PUT", "DELETE"]:
|
||||
if verb in verbs:
|
||||
apis.write(" * " + verb + ": " + " or ".join(sorted(verbs[verb])) + "\n")
|
||||
apis.write("\n")
|
||||
|
||||
shutil.copyfile("../Contributing.rst", "contributing.rst")
|
||||
|
||||
@@ -1 +1,23 @@
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
*.rst
|
||||
|
||||
+64
-55
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Steve English steve.english@navetas.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Steve English <steve.english@navetas.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
@@ -238,7 +247,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_emails(self, *emails):
|
||||
"""
|
||||
:calls: `POST /user/emails <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /user/emails <http://developer.github.com/v3/users/emails>`_
|
||||
:param email: string
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -253,7 +262,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_following(self, following):
|
||||
"""
|
||||
:calls: `PUT /user/following/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /user/following/:user <http://developer.github.com/v3/users/followers>`_
|
||||
:param following: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -267,7 +276,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_starred(self, starred):
|
||||
"""
|
||||
:calls: `PUT /user/starred/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /user/starred/:owner/:repo <http://developer.github.com/v3/activity/starring>`_
|
||||
:param starred: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -281,7 +290,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_subscriptions(self, subscription):
|
||||
"""
|
||||
:calls: `PUT /user/subscriptions/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /user/subscriptions/:owner/:repo <http://developer.github.com/v3/activity/watching>`_
|
||||
:param subscription: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -295,7 +304,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_watched(self, watched):
|
||||
"""
|
||||
:calls: `PUT /user/watched/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /user/watched/:owner/:repo <http://developer.github.com/v3/activity/starring>`_
|
||||
:param watched: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -309,7 +318,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_authorization(self, scopes=github.GithubObject.NotSet, note=github.GithubObject.NotSet, note_url=github.GithubObject.NotSet, client_id=github.GithubObject.NotSet, client_secret=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /authorizations <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /authorizations <http://developer.github.com/v3/oauth>`_
|
||||
:param scopes: list of string
|
||||
:param note: string
|
||||
:param note_url: string
|
||||
@@ -343,7 +352,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_fork(self, repo):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/forks <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/forks <http://developer.github.com/v3/repos/forks>`_
|
||||
:param repo: :class:`github.Repository.Repository`
|
||||
:rtype: :class:`github.Repository.Repository`
|
||||
"""
|
||||
@@ -358,7 +367,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_gist(self, public, files, description=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /gists <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /gists <http://developer.github.com/v3/gists>`_
|
||||
:param public: bool
|
||||
:param files: dict of string to :class:`github.InputFileContent.InputFileContent`
|
||||
:param description: string
|
||||
@@ -383,7 +392,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_key(self, title, key):
|
||||
"""
|
||||
:calls: `POST /user/keys <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /user/keys <http://developer.github.com/v3/users/keys>`_
|
||||
:param title: string
|
||||
:param key: string
|
||||
:rtype: :class:`github.UserKey.UserKey`
|
||||
@@ -404,7 +413,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_repo(self, name, description=github.GithubObject.NotSet, homepage=github.GithubObject.NotSet, private=github.GithubObject.NotSet, has_issues=github.GithubObject.NotSet, has_wiki=github.GithubObject.NotSet, has_downloads=github.GithubObject.NotSet, auto_init=github.GithubObject.NotSet, gitignore_template=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /user/repos <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /user/repos <http://developer.github.com/v3/repos>`_
|
||||
:param name: string
|
||||
:param description: string
|
||||
:param homepage: string
|
||||
@@ -454,7 +463,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, name=github.GithubObject.NotSet, email=github.GithubObject.NotSet, blog=github.GithubObject.NotSet, company=github.GithubObject.NotSet, location=github.GithubObject.NotSet, hireable=github.GithubObject.NotSet, bio=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /user <http://developer.github.com/v3/users>`_
|
||||
:param name: string
|
||||
:param email: string
|
||||
:param blog: string
|
||||
@@ -496,7 +505,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_authorization(self, id):
|
||||
"""
|
||||
:calls: `GET /authorizations/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /authorizations/:id <http://developer.github.com/v3/oauth>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.Authorization.Authorization`
|
||||
"""
|
||||
@@ -511,7 +520,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_authorizations(self):
|
||||
"""
|
||||
:calls: `GET /authorizations <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /authorizations <http://developer.github.com/v3/oauth>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Authorization.Authorization`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -523,7 +532,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_emails(self):
|
||||
"""
|
||||
:calls: `GET /user/emails <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/emails <http://developer.github.com/v3/users/emails>`_
|
||||
:rtype: list of string
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -536,7 +545,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_events(self):
|
||||
"""
|
||||
:calls: `GET /events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /events <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -548,7 +557,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_followers(self):
|
||||
"""
|
||||
:calls: `GET /user/followers <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/followers <http://developer.github.com/v3/users/followers>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -560,7 +569,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_following(self):
|
||||
"""
|
||||
:calls: `GET /user/following <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/following <http://developer.github.com/v3/users/followers>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -572,7 +581,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_gists(self):
|
||||
"""
|
||||
:calls: `GET /gists <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gists <http://developer.github.com/v3/gists>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Gist.Gist`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -584,7 +593,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issues(self, filter=github.GithubObject.NotSet, state=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /issues <http://developer.github.com/v3/issues/#list-issues>`_
|
||||
:calls: `GET /issues <http://developer.github.com/v3/issues>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
|
||||
:param filter: string
|
||||
:param state: string
|
||||
@@ -622,7 +631,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_user_issues(self, filter=github.GithubObject.NotSet, state=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /user/issues <http://developer.github.com/v3/issues/#list-issues>`_
|
||||
:calls: `GET /user/issues <http://developer.github.com/v3/issues>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
|
||||
:param filter: string
|
||||
:param state: string
|
||||
@@ -660,7 +669,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_key(self, id):
|
||||
"""
|
||||
:calls: `GET /user/keys/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/keys/:id <http://developer.github.com/v3/users/keys>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.UserKey.UserKey`
|
||||
"""
|
||||
@@ -675,7 +684,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_keys(self):
|
||||
"""
|
||||
:calls: `GET /user/keys <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/keys <http://developer.github.com/v3/users/keys>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.UserKey.UserKey`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -687,7 +696,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_notification(self, id):
|
||||
"""
|
||||
:calls: `GET /notifications/threads/:id <http://developer.github.com/v3/activity/notifications/#view-a-single-thread>`_
|
||||
:calls: `GET /notifications/threads/:id <http://developer.github.com/v3/activity/notifications>`_
|
||||
:rtype: :class:`github.Notification.Notification`
|
||||
"""
|
||||
|
||||
@@ -702,7 +711,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_notifications(self, all=github.GithubObject.NotSet, participating=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /notifications <http://developer.github.com/v3/activity/notifications/#list-your-notifications>`_
|
||||
:calls: `GET /notifications <http://developer.github.com/v3/activity/notifications>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Notification.Notification`
|
||||
"""
|
||||
|
||||
@@ -725,7 +734,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_organization_events(self, org):
|
||||
"""
|
||||
:calls: `GET /users/:user/events/orgs/:org <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/events/orgs/:org <http://developer.github.com/v3/activity/events>`_
|
||||
:param org: :class:`github.Organization.Organization`
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
@@ -739,7 +748,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_orgs(self):
|
||||
"""
|
||||
:calls: `GET /user/orgs <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/orgs <http://developer.github.com/v3/orgs>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Organization.Organization`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -751,7 +760,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_repo(self, name):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
|
||||
:param name: string
|
||||
:rtype: :class:`github.Repository.Repository`
|
||||
"""
|
||||
@@ -766,7 +775,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_repos(self, type=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /user/repos <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/repos <http://developer.github.com/v3/repos>`_
|
||||
:param type: string
|
||||
:param sort: string
|
||||
:param direction: string
|
||||
@@ -791,7 +800,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_starred(self):
|
||||
"""
|
||||
:calls: `GET /user/starred <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/starred <http://developer.github.com/v3/activity/starring>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -803,7 +812,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_starred_gists(self):
|
||||
"""
|
||||
:calls: `GET /gists/starred <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gists/starred <http://developer.github.com/v3/gists>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Gist.Gist`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -815,7 +824,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_subscriptions(self):
|
||||
"""
|
||||
:calls: `GET /user/subscriptions <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/subscriptions <http://developer.github.com/v3/activity/watching>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -827,7 +836,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_watched(self):
|
||||
"""
|
||||
:calls: `GET /user/watched <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/watched <http://developer.github.com/v3/activity/starring>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -839,7 +848,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_following(self, following):
|
||||
"""
|
||||
:calls: `GET /user/following/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/following/:user <http://developer.github.com/v3/users/followers>`_
|
||||
:param following: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -854,7 +863,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_starred(self, starred):
|
||||
"""
|
||||
:calls: `GET /user/starred/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/starred/:owner/:repo <http://developer.github.com/v3/activity/starring>`_
|
||||
:param starred: :class:`github.Repository.Repository`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -869,7 +878,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_subscriptions(self, subscription):
|
||||
"""
|
||||
:calls: `GET /user/subscriptions/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/subscriptions/:owner/:repo <http://developer.github.com/v3/activity/watching>`_
|
||||
:param subscription: :class:`github.Repository.Repository`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -884,7 +893,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_watched(self, watched):
|
||||
"""
|
||||
:calls: `GET /user/watched/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /user/watched/:owner/:repo <http://developer.github.com/v3/activity/starring>`_
|
||||
:param watched: :class:`github.Repository.Repository`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -899,7 +908,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_emails(self, *emails):
|
||||
"""
|
||||
:calls: `DELETE /user/emails <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /user/emails <http://developer.github.com/v3/users/emails>`_
|
||||
:param email: string
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -914,7 +923,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_following(self, following):
|
||||
"""
|
||||
:calls: `DELETE /user/following/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /user/following/:user <http://developer.github.com/v3/users/followers>`_
|
||||
:param following: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -928,7 +937,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_starred(self, starred):
|
||||
"""
|
||||
:calls: `DELETE /user/starred/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /user/starred/:owner/:repo <http://developer.github.com/v3/activity/starring>`_
|
||||
:param starred: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -942,7 +951,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_subscriptions(self, subscription):
|
||||
"""
|
||||
:calls: `DELETE /user/subscriptions/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /user/subscriptions/:owner/:repo <http://developer.github.com/v3/activity/watching>`_
|
||||
:param subscription: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -956,7 +965,7 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_watched(self, watched):
|
||||
"""
|
||||
:calls: `DELETE /user/watched/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /user/watched/:owner/:repo <http://developer.github.com/v3/activity/starring>`_
|
||||
:param watched: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
+24
-15
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -98,7 +107,7 @@ class Authorization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /authorizations/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /authorizations/:id <http://developer.github.com/v3/oauth>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -110,7 +119,7 @@ class Authorization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, scopes=github.GithubObject.NotSet, add_scopes=github.GithubObject.NotSet, remove_scopes=github.GithubObject.NotSet, note=github.GithubObject.NotSet, note_url=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /authorizations/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /authorizations/:id <http://developer.github.com/v3/oauth>`_
|
||||
:param scopes: list of string
|
||||
:param add_scopes: list of string
|
||||
:param remove_scopes: list of string
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+23
-14
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+27
-18
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
import github.PaginatedList
|
||||
@@ -97,7 +106,7 @@ class Commit(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_comment(self, body, line=github.GithubObject.NotSet, path=github.GithubObject.NotSet, position=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/commits/:sha/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/commits/:sha/comments <http://developer.github.com/v3/repos/comments>`_
|
||||
:param body: string
|
||||
:param line: integer
|
||||
:param path: string
|
||||
@@ -127,7 +136,7 @@ class Commit(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_status(self, state, target_url=github.GithubObject.NotSet, description=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/statuses/:sha <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/statuses/:sha <http://developer.github.com/v3/repos/statuses>`_
|
||||
:param state: string
|
||||
:param target_url: string
|
||||
:param description: string
|
||||
@@ -153,7 +162,7 @@ class Commit(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comments(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/commits/:sha/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/commits/:sha/comments <http://developer.github.com/v3/repos/comments>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CommitComment.CommitComment`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -165,7 +174,7 @@ class Commit(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_statuses(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/statuses/:sha <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/statuses/:ref <http://developer.github.com/v3/repos/statuses>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CommitStatus.CommitStatus`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
|
||||
+24
-15
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -114,7 +123,7 @@ class CommitComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/comments/:id <http://developer.github.com/v3/repos/comments>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -126,7 +135,7 @@ class CommitComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, body):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/comments/:id <http://developer.github.com/v3/repos/comments>`_
|
||||
:param body: string
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+23
-14
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -184,7 +193,7 @@ class Download(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/downloads/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/downloads/:id <http://developer.github.com/v3/repos/downloads>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
|
||||
+23
-14
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+31
-22
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Steve English steve.english@navetas.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Steve English <steve.english@navetas.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
import github.PaginatedList
|
||||
@@ -151,7 +160,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_comment(self, body):
|
||||
"""
|
||||
:calls: `POST /gists/:id/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /gists/:gist_id/comments <http://developer.github.com/v3/gists/comments>`_
|
||||
:param body: string
|
||||
:rtype: :class:`github.GistComment.GistComment`
|
||||
"""
|
||||
@@ -182,7 +191,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /gists/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /gists/:id <http://developer.github.com/v3/gists>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -194,7 +203,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, description=github.GithubObject.NotSet, files=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /gists/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /gists/:id <http://developer.github.com/v3/gists>`_
|
||||
:param description: string
|
||||
:param files: dict of string to :class:`github.InputFileContent.InputFileContent`
|
||||
:rtype: None
|
||||
@@ -216,7 +225,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comment(self, id):
|
||||
"""
|
||||
:calls: `GET /gists/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gists/:gist_id/comments/:id <http://developer.github.com/v3/gists/comments>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.GistComment.GistComment`
|
||||
"""
|
||||
@@ -231,7 +240,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comments(self):
|
||||
"""
|
||||
:calls: `GET /gists/:id/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gists/:gist_id/comments <http://developer.github.com/v3/gists/comments>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.GistComment.GistComment`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -243,7 +252,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def is_starred(self):
|
||||
"""
|
||||
:calls: `GET /gists/:id/star <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gists/:id/star <http://developer.github.com/v3/gists>`_
|
||||
:rtype: bool
|
||||
"""
|
||||
status, headers, data = self._requester.requestJson(
|
||||
@@ -256,7 +265,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def reset_starred(self):
|
||||
"""
|
||||
:calls: `DELETE /gists/:id/star <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /gists/:id/star <http://developer.github.com/v3/gists>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -268,7 +277,7 @@ class Gist(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def set_starred(self):
|
||||
"""
|
||||
:calls: `PUT /gists/:id/star <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /gists/:id/star <http://developer.github.com/v3/gists>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
|
||||
+24
-15
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -74,7 +83,7 @@ class GistComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /gists/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /gists/:gist_id/comments/:id <http://developer.github.com/v3/gists/comments>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -86,7 +95,7 @@ class GistComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, body):
|
||||
"""
|
||||
:calls: `PATCH /gists/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /gists/:gist_id/comments/:id <http://developer.github.com/v3/gists/comments>`_
|
||||
:param body: string
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+24
-15
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -50,7 +59,7 @@ class GitRef(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/git/refs/:ref <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/git/refs/:ref <http://developer.github.com/v3/git/refs>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -62,7 +71,7 @@ class GitRef(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, sha, force=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/git/refs/:ref <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/git/refs/:ref <http://developer.github.com/v3/git/refs>`_
|
||||
:param sha: string
|
||||
:param force: bool
|
||||
:rtype: None
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
|
||||
class GithubException(Exception):
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
|
||||
+21
-12
@@ -1,17 +1,26 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+25
-16
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -98,7 +107,7 @@ class Hook(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/hooks/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/hooks/:id <http://developer.github.com/v3/repos/hooks>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -110,7 +119,7 @@ class Hook(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, name, config, events=github.GithubObject.NotSet, add_events=github.GithubObject.NotSet, remove_events=github.GithubObject.NotSet, active=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/hooks/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/hooks/:id <http://developer.github.com/v3/repos/hooks>`_
|
||||
:param name: string
|
||||
:param config: dict
|
||||
:param events: list of string
|
||||
@@ -147,7 +156,7 @@ class Hook(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def test(self):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/hooks/:id/test <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/hooks/:id/test <http://developer.github.com/v3/todo>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
|
||||
class InputGitAuthor(object):
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+40
-26
@@ -1,20 +1,30 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Andrew Bettison andrewb@zip.com.au
|
||||
# Copyright 2012 Philip Kimmey philip@rover.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Andrew Bettison <andrewb@zip.com.au> #
|
||||
# Copyright 2012 Philip Kimmey <philip@rover.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Stuart Glaser <stuglaser@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
import github.PaginatedList
|
||||
@@ -135,7 +145,11 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
:type: :class:`github.Repository.Repository`
|
||||
"""
|
||||
self._completeIfNotSet(self._repository)
|
||||
return self._NoneIfNotSet(self._repository)
|
||||
if self._repository is github.GithubObject.NotSet:
|
||||
# The repository was not set automatically, so it must be looked up by url.
|
||||
repo_url = "/".join(self.url.split("/")[:-2])
|
||||
self._repository = github.Repository.Repository(self._requester, {'url': repo_url}, False)
|
||||
return self._repository
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
@@ -179,7 +193,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_labels(self, *labels):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/issues/:number/labels <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:param label: :class:`github.Label.Label`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -194,7 +208,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_comment(self, body):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/issues/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_
|
||||
:param body: string
|
||||
:rtype: :class:`github.IssueComment.IssueComment`
|
||||
"""
|
||||
@@ -212,7 +226,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete_labels(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/issues/:number/labels <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -224,7 +238,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, title=github.GithubObject.NotSet, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, state=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/issues/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/issues/:number <http://developer.github.com/v3/issues>`_
|
||||
:param title: string
|
||||
:param body: string
|
||||
:param assignee: :class:`github.NamedUser.NamedUser` or None
|
||||
@@ -262,7 +276,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comment(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.IssueComment.IssueComment`
|
||||
"""
|
||||
@@ -277,7 +291,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comments(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -289,7 +303,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_events(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/:number/events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/:issue_number/events <http://developer.github.com/v3/issues/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueEvent.IssueEvent`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -301,7 +315,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_labels(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/:number/labels <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -313,7 +327,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_labels(self, label):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/issues/:number/labels/:name <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/issues/:number/labels/:name <http://developer.github.com/v3/issues/labels>`_
|
||||
:param label: :class:`github.Label.Label`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -327,7 +341,7 @@ class Issue(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def set_labels(self, *labels):
|
||||
"""
|
||||
:calls: `PUT /repos/:user/:repo/issues/:number/labels <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /repos/:owner/:repo/issues/:number/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:param label: :class:`github.Label.Label`
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
+25
-16
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 Michael Stead michael.stead@gmail.com
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Michael Stead <michael.stead@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -83,7 +92,7 @@ class IssueComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/issues/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -95,7 +104,7 @@ class IssueComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, body):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/issues/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_
|
||||
:param body: string
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+25
-16
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import urllib
|
||||
|
||||
@@ -51,7 +60,7 @@ class Label(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/labels/:name <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/labels/:name <http://developer.github.com/v3/issues/labels>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -63,7 +72,7 @@ class Label(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, name, color):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/labels/:name <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/labels/:name <http://developer.github.com/v3/issues/labels>`_
|
||||
:param name: string
|
||||
:param color: string
|
||||
:rtype: None
|
||||
|
||||
+23
-14
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Steve English steve.english@navetas.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Steve English <steve.english@navetas.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import urlparse
|
||||
|
||||
|
||||
+60
-26
@@ -1,18 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Peter Golm golm.peter@gmail.com
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 Jonathan J Hunt hunt@braincorporation.com
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Ed Jackson <ed.jackson@gmail.com> #
|
||||
# Copyright 2013 Jonathan J Hunt <hunt@braincorporation.com> #
|
||||
# Copyright 2013 Peter Golm <golm.peter@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import urllib
|
||||
|
||||
@@ -86,10 +96,34 @@ class Github(object):
|
||||
@property
|
||||
def rate_limiting(self):
|
||||
"""
|
||||
First value is requests remaining, second value is request limit.
|
||||
:type: (int, int)
|
||||
"""
|
||||
remaining, limit = self.__requester.rate_limiting
|
||||
if limit < 0:
|
||||
self.__requester.requestJsonAndCheck(
|
||||
'GET',
|
||||
'/rate_limit',
|
||||
None,
|
||||
None
|
||||
)
|
||||
return self.__requester.rate_limiting
|
||||
|
||||
@property
|
||||
def rate_limiting_resettime(self):
|
||||
"""
|
||||
Unix timestamp indicating when rate limiting will reset.
|
||||
:type: int
|
||||
"""
|
||||
if self.__requester.rate_limiting_resettime == 0:
|
||||
self.__requester.requestJsonAndCheck(
|
||||
'GET',
|
||||
'/rate_limit',
|
||||
None,
|
||||
None
|
||||
)
|
||||
return self.__requester.rate_limiting_resettime
|
||||
|
||||
@property
|
||||
def oauth_scopes(self):
|
||||
"""
|
||||
@@ -99,7 +133,7 @@ class Github(object):
|
||||
|
||||
def get_user(self, login=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /users/:user <http://developer.github.com/v3/users/#get-a-single-user>`_ or `GET /user <http://developer.github.com/v3/users/#get-the-authenticated-user>`_
|
||||
:calls: `GET /users/:user <http://developer.github.com/v3/users>`_ or `GET /user <http://developer.github.com/v3/users>`_
|
||||
:param login: string
|
||||
:rtype: :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
@@ -117,7 +151,7 @@ class Github(object):
|
||||
|
||||
def get_users(self, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /users <http://developer.github.com/v3/users/#get-all-users>`_
|
||||
:calls: `GET /users <http://developer.github.com/v3/users>`_
|
||||
:param since: integer
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
@@ -134,7 +168,7 @@ class Github(object):
|
||||
|
||||
def get_organization(self, login):
|
||||
"""
|
||||
:calls: `GET /orgs/:org <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org <http://developer.github.com/v3/orgs>`_
|
||||
:param login: string
|
||||
:rtype: :class:`github.Organization.Organization`
|
||||
"""
|
||||
@@ -149,7 +183,7 @@ class Github(object):
|
||||
|
||||
def get_repo(self, full_name):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
|
||||
:rtype: :class:`github.Repository.Repository`
|
||||
"""
|
||||
assert isinstance(full_name, (str, unicode)), full_name
|
||||
@@ -163,7 +197,7 @@ class Github(object):
|
||||
|
||||
def get_gist(self, id):
|
||||
"""
|
||||
:calls: `GET /gists/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gists/:id <http://developer.github.com/v3/gists>`_
|
||||
:param id: string
|
||||
:rtype: :class:`github.Gist.Gist`
|
||||
"""
|
||||
@@ -178,7 +212,7 @@ class Github(object):
|
||||
|
||||
def get_gists(self):
|
||||
"""
|
||||
:calls: `GET /gists/public <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gists/public <http://developer.github.com/v3/gists>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Gist.Gist`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -190,7 +224,7 @@ class Github(object):
|
||||
|
||||
def legacy_search_repos(self, keyword, language=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /legacy/repos/search/:keyword <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /legacy/repos/search/:keyword <http://developer.github.com/v3/search/legacy>`_
|
||||
:param keyword: string
|
||||
:param language: string
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
@@ -209,7 +243,7 @@ class Github(object):
|
||||
|
||||
def legacy_search_users(self, keyword):
|
||||
"""
|
||||
:calls: `GET /legacy/user/search/:keyword <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /legacy/user/search/:keyword <http://developer.github.com/v3/search/legacy>`_
|
||||
:param keyword: string
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
@@ -225,7 +259,7 @@ class Github(object):
|
||||
|
||||
def legacy_search_user_by_email(self, email):
|
||||
"""
|
||||
:calls: `GET /legacy/user/email/:email <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /legacy/user/email/:email <http://developer.github.com/v3/search/legacy>`_
|
||||
:param email: string
|
||||
:rtype: :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
@@ -240,7 +274,7 @@ class Github(object):
|
||||
|
||||
def render_markdown(self, text, context=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /markdown <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /markdown <http://developer.github.com/v3/markdown>`_
|
||||
:param text: string
|
||||
:param context: :class:`github.Repository.Repository`
|
||||
:rtype: string
|
||||
@@ -263,7 +297,7 @@ class Github(object):
|
||||
|
||||
def get_hooks(self):
|
||||
"""
|
||||
:calls: `GET /hooks <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /hooks <http://developer.github.com/>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.HookDescription.HookDescription`
|
||||
"""
|
||||
headers, data = self.__requester.requestJsonAndCheck(
|
||||
@@ -276,7 +310,7 @@ class Github(object):
|
||||
|
||||
def get_gitignore_templates(self):
|
||||
"""
|
||||
:calls: `GET /gitignore/templates <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gitignore/templates <http://developer.github.com/v3/gitignore>`_
|
||||
:rtype: list of string
|
||||
"""
|
||||
headers, data = self.__requester.requestJsonAndCheck(
|
||||
@@ -289,7 +323,7 @@ class Github(object):
|
||||
|
||||
def get_gitignore_template(self, name):
|
||||
"""
|
||||
:calls: `GET /gitignore/templates/:name <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /gitignore/templates/:name <http://developer.github.com/v3/gitignore>`_
|
||||
:rtype: :class:`github.GitignoreTemplate.GitignoreTemplate`
|
||||
"""
|
||||
assert isinstance(name, (str, unicode)), name
|
||||
|
||||
+26
-17
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
@@ -119,7 +128,7 @@ class Milestone(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/milestones/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/milestones/:number <http://developer.github.com/v3/issues/milestones>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -131,7 +140,7 @@ class Milestone(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, title, state=github.GithubObject.NotSet, description=github.GithubObject.NotSet, due_on=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/milestones/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/milestones/:number <http://developer.github.com/v3/issues/milestones>`_
|
||||
:param title: string
|
||||
:param state: string
|
||||
:param description: string
|
||||
@@ -161,7 +170,7 @@ class Milestone(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_labels(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/milestones/:number/labels <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/milestones/:number/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
|
||||
+37
-28
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Steve English steve.english@navetas.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Steve English <steve.english@navetas.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
import github.PaginatedList
|
||||
@@ -266,7 +275,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_events(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/events <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -278,7 +287,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_followers(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/followers <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/followers <http://developer.github.com/v3/users/followers>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -290,7 +299,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_following(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/following <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/following <http://developer.github.com/v3/users/followers>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -302,7 +311,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_gists(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/gists <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/gists <http://developer.github.com/v3/gists>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Gist.Gist`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -314,7 +323,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_keys(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/keys <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/keys <http://developer.github.com/v3/users/keys>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.UserKey.UserKey`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -326,7 +335,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_orgs(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/orgs <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/orgs <http://developer.github.com/v3/orgs>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Organization.Organization`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -338,7 +347,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_public_events(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/events/public <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/events/public <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -350,7 +359,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_public_received_events(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/received_events/public <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/received_events/public <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -362,7 +371,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_received_events(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/received_events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/received_events <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -374,7 +383,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_repo(self, name):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
|
||||
:param name: string
|
||||
:rtype: :class:`github.Repository.Repository`
|
||||
"""
|
||||
@@ -389,7 +398,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_repos(self, type=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /users/:user/repos <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/repos <http://developer.github.com/v3/repos>`_
|
||||
:param type: string
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
@@ -406,7 +415,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_starred(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/starred <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/starred <http://developer.github.com/v3/activity/starring>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -418,7 +427,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_subscriptions(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/subscriptions <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/subscriptions <http://developer.github.com/v3/activity/watching>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -430,7 +439,7 @@ class NamedUser(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_watched(self):
|
||||
"""
|
||||
:calls: `GET /users/:user/watched <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /users/:user/watched <http://developer.github.com/v3/activity/starring>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
|
||||
+24
-15
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Peter Golm golm.peter@gmail.com
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Peter Golm <golm.peter@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -109,5 +118,5 @@ class Notification(github.GithubObject.CompletableGithubObject):
|
||||
assert attributes["updated_at"] is None or isinstance(attributes["updated_at"], (str, unicode)), attributes["updated_at"]
|
||||
self._updated_at = self._parseDatetime(attributes["updated_at"])
|
||||
if "url" in attributes: # pragma no branch
|
||||
assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"]
|
||||
self._url = attributes["url"]
|
||||
assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"] # pragma no cover (but should be investigated)
|
||||
self._url = attributes["url"] # pragma no cover (but should be investigated)
|
||||
|
||||
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -59,11 +68,11 @@ class NotificationSubject(github.GithubObject.NonCompletableGithubObject):
|
||||
assert attributes["title"] is None or isinstance(attributes["title"], (str, unicode)), attributes["title"]
|
||||
self._title = attributes["title"]
|
||||
if "url" in attributes: # pragma no branch
|
||||
assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"]
|
||||
self._url = attributes["url"]
|
||||
assert attributes["url"] is None or isinstance(attributes["url"], (str, unicode)), attributes["url"] # pragma no cover (but should be investigated)
|
||||
self._url = attributes["url"] # pragma no cover (but should be investigated)
|
||||
if "latest_comment_url" in attributes: # pragma no branch
|
||||
assert attributes["latest_comment_url"] is None or isinstance(attributes["latest_comment_url"], (str, unicode)), attributes["latest_comment_url"]
|
||||
self._latest_comment_url = attributes["latest_comment_url"]
|
||||
assert attributes["latest_comment_url"] is None or isinstance(attributes["latest_comment_url"], (str, unicode)), attributes["latest_comment_url"] # pragma no cover (but should be investigated)
|
||||
self._latest_comment_url = attributes["latest_comment_url"] # pragma no cover (but should be investigated)
|
||||
if "type" in attributes: # pragma no branch
|
||||
assert attributes["type"] is None or isinstance(attributes["type"], (str, unicode)), attributes["type"]
|
||||
self._type = attributes["type"]
|
||||
|
||||
+41
-32
@@ -1,20 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Steve English steve.english@navetas.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Steve English <steve.english@navetas.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
@@ -227,7 +236,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_public_members(self, public_member):
|
||||
"""
|
||||
:calls: `PUT /orgs/:org/public_members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_
|
||||
:param public_member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -241,7 +250,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_fork(self, repo):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/forks <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/forks <http://developer.github.com/v3/repos/forks>`_
|
||||
:param repo: :class:`github.Repository.Repository`
|
||||
:rtype: :class:`github.Repository.Repository`
|
||||
"""
|
||||
@@ -259,7 +268,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_repo(self, name, description=github.GithubObject.NotSet, homepage=github.GithubObject.NotSet, private=github.GithubObject.NotSet, has_issues=github.GithubObject.NotSet, has_wiki=github.GithubObject.NotSet, has_downloads=github.GithubObject.NotSet, team_id=github.GithubObject.NotSet, auto_init=github.GithubObject.NotSet, gitignore_template=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /orgs/:org/repos <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /orgs/:org/repos <http://developer.github.com/v3/repos>`_
|
||||
:param name: string
|
||||
:param description: string
|
||||
:param homepage: string
|
||||
@@ -313,7 +322,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_team(self, name, repo_names=github.GithubObject.NotSet, permission=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /orgs/:org/teams <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param name: string
|
||||
:param repo_names: list of :class:`github.Repository.Repository`
|
||||
:param permission: string
|
||||
@@ -339,7 +348,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, billing_email=github.GithubObject.NotSet, blog=github.GithubObject.NotSet, company=github.GithubObject.NotSet, email=github.GithubObject.NotSet, location=github.GithubObject.NotSet, name=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /orgs/:org <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /orgs/:org <http://developer.github.com/v3/orgs>`_
|
||||
:param billing_email: string
|
||||
:param blog: string
|
||||
:param company: string
|
||||
@@ -377,7 +386,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_events(self):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org/events <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -389,7 +398,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issues(self, filter=github.GithubObject.NotSet, state=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/issues <http://developer.github.com/v3/issues/#list-issues>`_
|
||||
:calls: `GET /orgs/:org/issues <http://developer.github.com/v3/issues>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
|
||||
:param filter: string
|
||||
:param state: string
|
||||
@@ -427,7 +436,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_members(self):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/members <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org/members <http://developer.github.com/v3/orgs/members>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -439,7 +448,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_public_members(self):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/public_members <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org/public_members <http://developer.github.com/v3/orgs/members>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -451,7 +460,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_repo(self, name):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
|
||||
:param name: string
|
||||
:rtype: :class:`github.Repository.Repository`
|
||||
"""
|
||||
@@ -466,7 +475,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_repos(self, type=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/repos <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org/repos <http://developer.github.com/v3/repos>`_
|
||||
:param type: string
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
@@ -483,7 +492,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_team(self, id):
|
||||
"""
|
||||
:calls: `GET /teams/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /teams/:id <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.Team.Team`
|
||||
"""
|
||||
@@ -498,7 +507,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_teams(self):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/teams <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org/teams <http://developer.github.com/v3/orgs/teams>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -510,7 +519,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_members(self, member):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org/members/:user <http://developer.github.com/v3/orgs/members>`_
|
||||
:param member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -525,7 +534,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_public_members(self, public_member):
|
||||
"""
|
||||
:calls: `GET /orgs/:org/public_members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_
|
||||
:param public_member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -540,7 +549,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_members(self, member):
|
||||
"""
|
||||
:calls: `DELETE /orgs/:org/members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /orgs/:org/members/:user <http://developer.github.com/v3/orgs/members>`_
|
||||
:param member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -554,7 +563,7 @@ class Organization(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_public_members(self, public_member):
|
||||
"""
|
||||
:calls: `DELETE /orgs/:org/public_members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /orgs/:org/public_members/:user <http://developer.github.com/v3/orgs/members>`_
|
||||
:param public_member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
+61
-21
@@ -1,19 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Bill Mill bill.mill@gmail.com
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Bill Mill <bill.mill@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 davidbrai <davidbrai@gmail.com> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -84,6 +94,11 @@ class PaginatedList(PaginatedListBase):
|
||||
second_repo = user.get_repos()[1]
|
||||
first_repos = user.get_repos()[:10]
|
||||
|
||||
If you want to iterate in reversed order, just do::
|
||||
|
||||
for repo in user.get_repos().reversed:
|
||||
print repo.name
|
||||
|
||||
And if you really need it, you can explicitely access a specific page::
|
||||
|
||||
some_repos = user.get_repos().get_page(0)
|
||||
@@ -100,6 +115,25 @@ class PaginatedList(PaginatedListBase):
|
||||
self.__nextParams = firstParams or {}
|
||||
if self.__requester.per_page != 30:
|
||||
self.__nextParams["per_page"] = self.__requester.per_page
|
||||
self._reversed = False
|
||||
|
||||
def _getLastPageUrl(self):
|
||||
headers, data = self.__requester.requestJsonAndCheck("GET", self.__firstUrl, self.__nextParams, None)
|
||||
links = self.__parseLinkHeader(headers)
|
||||
lastUrl = links.get("last")
|
||||
return lastUrl
|
||||
|
||||
@property
|
||||
def reversed(self):
|
||||
r = PaginatedList(self.__contentClass, self.__requester, self.__firstUrl, self.__firstParams)
|
||||
r.__reverse()
|
||||
return r
|
||||
|
||||
def __reverse(self):
|
||||
self._reversed = True
|
||||
lastUrl = self._getLastPageUrl()
|
||||
if lastUrl:
|
||||
self.__nextUrl = lastUrl
|
||||
|
||||
def _couldGrow(self):
|
||||
return self.__nextUrl is not None
|
||||
@@ -107,22 +141,28 @@ class PaginatedList(PaginatedListBase):
|
||||
def _fetchNextPage(self):
|
||||
headers, data = self.__requester.requestJsonAndCheck("GET", self.__nextUrl, self.__nextParams, None)
|
||||
|
||||
links = self.__parseLinkHeader(headers)
|
||||
if len(data) > 0 and "next" in links:
|
||||
self.__nextUrl = links["next"]
|
||||
else:
|
||||
self.__nextUrl = None
|
||||
self.__nextUrl = None
|
||||
if len(data) > 0:
|
||||
links = self.__parseLinkHeader(headers)
|
||||
if self._reversed:
|
||||
if "prev" in links:
|
||||
self.__nextUrl = links["prev"]
|
||||
elif "next" in links:
|
||||
self.__nextUrl = links["next"]
|
||||
self.__nextParams = None
|
||||
|
||||
return [
|
||||
content = [
|
||||
self.__contentClass(self.__requester, element, completed=False)
|
||||
for element in data
|
||||
]
|
||||
if self._reversed:
|
||||
return content[::-1]
|
||||
return content
|
||||
|
||||
def __parseLinkHeader(self, headers):
|
||||
links = {}
|
||||
if "link" in headers:
|
||||
linkHeaders = headers["link"].split(",")
|
||||
linkHeaders = headers["link"].split(", ")
|
||||
for linkHeader in linkHeaders:
|
||||
(url, rel) = linkHeader.split("; ")
|
||||
url = url[1:-1]
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+38
-29
@@ -1,20 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Michael Stead michael.stead@gmail.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Michael Stead <michael.stead@gmail.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
import github.PaginatedList
|
||||
@@ -251,7 +260,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_comment(self, body, commit_id, path, position):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/pulls/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_
|
||||
:param body: string
|
||||
:param commit_id: :class:`github.Commit.Commit`
|
||||
:param path: string
|
||||
@@ -262,7 +271,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_review_comment(self, body, commit_id, path, position):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/pulls/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_
|
||||
:param body: string
|
||||
:param commit_id: :class:`github.Commit.Commit`
|
||||
:param path: string
|
||||
@@ -289,7 +298,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_issue_comment(self, body):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/issues/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_
|
||||
:param body: string
|
||||
:rtype: :class:`github.IssueComment.IssueComment`
|
||||
"""
|
||||
@@ -307,7 +316,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, title=github.GithubObject.NotSet, body=github.GithubObject.NotSet, state=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/pulls/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_
|
||||
:param title: string
|
||||
:param body: string
|
||||
:param state: string
|
||||
@@ -333,7 +342,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comment(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/comments/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.PullRequestComment.PullRequestComment`
|
||||
"""
|
||||
@@ -341,7 +350,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_review_comment(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/comments/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.PullRequestComment.PullRequestComment`
|
||||
"""
|
||||
@@ -356,14 +365,14 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comments(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComment`
|
||||
"""
|
||||
return self.get_review_comments()
|
||||
|
||||
def get_review_comments(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/:number/comments <http://developer.github.com/v3/pulls/comments>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequestComment.PullRequestComment`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -375,7 +384,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_commits(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/:number/commits <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/:number/commits <http://developer.github.com/v3/pulls>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit.Commit`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -387,7 +396,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_files(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/:number/files <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/:number/files <http://developer.github.com/v3/pulls>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.File.File`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -399,7 +408,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issue_comment(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/comments/:id <http://developer.github.com/v3/issues/comments>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.IssueComment.IssueComment`
|
||||
"""
|
||||
@@ -414,7 +423,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issue_comments(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/:number/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/:number/comments <http://developer.github.com/v3/issues/comments>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueComment.IssueComment`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -426,7 +435,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def is_merged(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/:number/merge <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_
|
||||
:rtype: bool
|
||||
"""
|
||||
status, headers, data = self._requester.requestJson(
|
||||
@@ -439,7 +448,7 @@ class PullRequest(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def merge(self, commit_message=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PUT /repos/:user/:repo/pulls/:number/merge <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /repos/:owner/:repo/pulls/:number/merge <http://developer.github.com/v3/pulls>`_
|
||||
:param commit_message: string
|
||||
:rtype: :class:`github.PullRequestMergeStatus.PullRequestMergeStatus`
|
||||
"""
|
||||
|
||||
@@ -1,20 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
# Copyright 2013 Michael Stead michael.stead@gmail.com
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Michael Stead <michael.stead@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -124,7 +133,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/pulls/comments/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -136,7 +145,7 @@ class PullRequestComment(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, body):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/pulls/comments/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/pulls/comments/:number <http://developer.github.com/v3/pulls/comments>`_
|
||||
:param body: string
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+107
-86
@@ -1,22 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Christopher Gilbert christopher.john.gilbert@gmail.com
|
||||
# Copyright 2012 Steve English steve.english@navetas.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 Mark Roddy markroddy@gmail.com
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Christopher Gilbert <christopher.john.gilbert@gmail.com> #
|
||||
# Copyright 2012 Steve English <steve.english@navetas.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Adrian Petrescu <adrian.petrescu@maluuba.com> #
|
||||
# Copyright 2013 Mark Roddy <markroddy@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import urllib
|
||||
import datetime
|
||||
@@ -299,7 +309,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_collaborators(self, collaborator):
|
||||
"""
|
||||
:calls: `PUT /repos/:user/:repo/collaborators/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /repos/:owner/:repo/collaborators/:user <http://developer.github.com/v3/repos/collaborators>`_
|
||||
:param collaborator: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -313,7 +323,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def compare(self, base, head):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/compare/:base...:head <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/compare/:base...:head <http://developer.github.com/v3/repos/commits>`_
|
||||
:param base: string
|
||||
:param head: string
|
||||
:rtype: :class:`github.Comparison.Comparison`
|
||||
@@ -330,7 +340,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_download(self, name, size, description=github.GithubObject.NotSet, content_type=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/downloads <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/downloads <http://developer.github.com/v3/repos/downloads>`_
|
||||
:param name: string
|
||||
:param size: integer
|
||||
:param description: string
|
||||
@@ -359,7 +369,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_git_blob(self, content, encoding):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/git/blobs <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/git/blobs <http://developer.github.com/v3/git/blobs>`_
|
||||
:param content: string
|
||||
:param encoding: string
|
||||
:rtype: :class:`github.GitBlob.GitBlob`
|
||||
@@ -380,7 +390,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_git_commit(self, message, tree, parents, author=github.GithubObject.NotSet, committer=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/git/commits <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/git/commits <http://developer.github.com/v3/git/commits>`_
|
||||
:param message: string
|
||||
:param tree: :class:`github.GitTree.GitTree`
|
||||
:param parents: list of :class:`github.GitCommit.GitCommit`
|
||||
@@ -412,7 +422,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_git_ref(self, ref, sha):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/git/refs <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/git/refs <http://developer.github.com/v3/git/refs>`_
|
||||
:param ref: string
|
||||
:param sha: string
|
||||
:rtype: :class:`github.GitRef.GitRef`
|
||||
@@ -433,7 +443,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_git_tag(self, tag, message, object, type, tagger=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/git/tags <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/git/tags <http://developer.github.com/v3/git/tags>`_
|
||||
:param tag: string
|
||||
:param message: string
|
||||
:param object: string
|
||||
@@ -464,7 +474,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_git_tree(self, tree, base_tree=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/git/trees <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/git/trees <http://developer.github.com/v3/git/trees>`_
|
||||
:param tree: list of :class:`github.InputGitTreeElement.InputGitTreeElement`
|
||||
:param base_tree: :class:`github.GitTree.GitTree`
|
||||
:rtype: :class:`github.GitTree.GitTree`
|
||||
@@ -486,7 +496,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_hook(self, name, config, events=github.GithubObject.NotSet, active=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/hooks <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/hooks <http://developer.github.com/v3/repos/hooks>`_
|
||||
:param name: string
|
||||
:param config: dict
|
||||
:param events: list of string
|
||||
@@ -515,7 +525,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_issue(self, title, body=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, milestone=github.GithubObject.NotSet, labels=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/issues <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/issues <http://developer.github.com/v3/issues>`_
|
||||
:param title: string
|
||||
:param body: string
|
||||
:param assignee: :class:`github.NamedUser.NamedUser`
|
||||
@@ -549,7 +559,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_key(self, title, key):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/keys <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/keys <http://developer.github.com/v3/repos/keys>`_
|
||||
:param title: string
|
||||
:param key: string
|
||||
:rtype: :class:`github.RepositoryKey.RepositoryKey`
|
||||
@@ -570,7 +580,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_label(self, name, color):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/labels <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:param name: string
|
||||
:param color: string
|
||||
:rtype: :class:`github.Label.Label`
|
||||
@@ -591,7 +601,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_milestone(self, title, state=github.GithubObject.NotSet, description=github.GithubObject.NotSet, due_on=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/milestones <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/milestones <http://developer.github.com/v3/issues/milestones>`_
|
||||
:param title: string
|
||||
:param state: string
|
||||
:param description: string
|
||||
@@ -621,7 +631,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def create_pull(self, *args, **kwds):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/pulls <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/pulls <http://developer.github.com/v3/pulls>`_
|
||||
:param title: string
|
||||
:param body: string
|
||||
:param issue: :class:`github.Issue.Issue`
|
||||
@@ -659,7 +669,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -671,7 +681,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, name, description=github.GithubObject.NotSet, homepage=github.GithubObject.NotSet, public=github.GithubObject.NotSet, has_issues=github.GithubObject.NotSet, has_wiki=github.GithubObject.NotSet, has_downloads=github.GithubObject.NotSet, default_branch=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /repos/:owner/:repo <http://developer.github.com/v3/repos>`_
|
||||
:param name: string
|
||||
:param description: string
|
||||
:param homepage: string
|
||||
@@ -717,7 +727,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_archive_link(self, archive_format, ref=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/:archive_format/:ref <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/:archive_format/:ref <http://developer.github.com/v3/repos/contents>`_
|
||||
:param archive_format: string
|
||||
:param ref: string
|
||||
:rtype: string
|
||||
@@ -737,7 +747,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_assignees(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/assignees <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/assignees <http://developer.github.com/v3/issues/assignees>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -749,7 +759,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_branch(self, branch):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/branches/:branch <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/branches/:branch <http://developer.github.com/v3/repos>`_
|
||||
:param branch: string
|
||||
:rtype: :class:`github.Branch.Branch`
|
||||
"""
|
||||
@@ -764,7 +774,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_branches(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/branches <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/branches <http://developer.github.com/v3/repos>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Branch.Branch`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -776,7 +786,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_collaborators(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/collaborators <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/collaborators <http://developer.github.com/v3/repos/collaborators>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -788,7 +798,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comment(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/comments/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/comments/:id <http://developer.github.com/v3/repos/comments>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.CommitComment.CommitComment`
|
||||
"""
|
||||
@@ -803,7 +813,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_comments(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/comments <http://developer.github.com/v3/repos/comments>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.CommitComment.CommitComment`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -815,7 +825,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_commit(self, sha):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/commits/:sha <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/commits/:sha <http://developer.github.com/v3/repos/commits>`_
|
||||
:param sha: string
|
||||
:rtype: :class:`github.Commit.Commit`
|
||||
"""
|
||||
@@ -828,20 +838,28 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
)
|
||||
return github.Commit.Commit(self._requester, data, completed=True)
|
||||
|
||||
def get_commits(self, sha=github.GithubObject.NotSet, path=github.GithubObject.NotSet):
|
||||
def get_commits(self, sha=github.GithubObject.NotSet, path=github.GithubObject.NotSet, since=github.GithubObject.NotSet, until=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/commits <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/commits <http://developer.github.com/v3/repos/commits>`_
|
||||
:param sha: string
|
||||
:param path: string
|
||||
:param since: datetime.datetime
|
||||
:param until: datetime.datetime
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Commit.Commit`
|
||||
"""
|
||||
assert sha is github.GithubObject.NotSet or isinstance(sha, (str, unicode)), sha
|
||||
assert path is github.GithubObject.NotSet or isinstance(path, (str, unicode)), path
|
||||
assert since is github.GithubObject.NotSet or isinstance(since, datetime.datetime), since
|
||||
assert until is github.GithubObject.NotSet or isinstance(until, datetime.datetime), until
|
||||
url_parameters = dict()
|
||||
if sha is not github.GithubObject.NotSet:
|
||||
url_parameters["sha"] = sha
|
||||
if path is not github.GithubObject.NotSet:
|
||||
url_parameters["path"] = path
|
||||
if since is not github.GithubObject.NotSet:
|
||||
url_parameters["since"] = since.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
if until is not github.GithubObject.NotSet:
|
||||
url_parameters["until"] = until.strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
return github.PaginatedList.PaginatedList(
|
||||
github.Commit.Commit,
|
||||
self._requester,
|
||||
@@ -851,6 +869,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_contents(self, path, ref=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:owner/:repo/contents/:path <http://developer.github.com/v3/repos/contents>`_
|
||||
:param path: string
|
||||
:param ref: string
|
||||
:rtype: :class:`github.ContentFile.ContentFile`
|
||||
@@ -859,6 +878,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_file_contents(self, path, ref=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:owner/:repo/contents/:path <http://developer.github.com/v3/repos/contents>`_
|
||||
:param path: string
|
||||
:param ref: string
|
||||
:rtype: :class:`github.ContentFile.ContentFile`
|
||||
@@ -878,6 +898,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_dir_contents(self, path, ref=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:owner/:repo/contents/:path <http://developer.github.com/v3/repos/contents>`_
|
||||
:param path: string
|
||||
:param ref: string
|
||||
:rtype: list of :class:`github.ContentFile.ContentFile`
|
||||
@@ -910,7 +931,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_contributors(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/contributors <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/contributors <http://developer.github.com/v3/repos>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -922,7 +943,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_download(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/downloads/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/downloads/:id <http://developer.github.com/v3/repos/downloads>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.Download.Download`
|
||||
"""
|
||||
@@ -937,7 +958,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_downloads(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/downloads <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/downloads <http://developer.github.com/v3/repos/downloads>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Download.Download`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -949,7 +970,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_events(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/events <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -961,7 +982,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_forks(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/forks <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/forks <http://developer.github.com/v3/repos/forks>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -973,7 +994,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_git_blob(self, sha):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/git/blobs/:sha <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/git/blobs/:sha <http://developer.github.com/v3/git/blobs>`_
|
||||
:param sha: string
|
||||
:rtype: :class:`github.GitBlob.GitBlob`
|
||||
"""
|
||||
@@ -988,7 +1009,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_git_commit(self, sha):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/git/commits/:sha <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/git/commits/:sha <http://developer.github.com/v3/git/commits>`_
|
||||
:param sha: string
|
||||
:rtype: :class:`github.GitCommit.GitCommit`
|
||||
"""
|
||||
@@ -1003,7 +1024,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_git_ref(self, ref):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/git/refs/:ref <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/git/refs/:ref <http://developer.github.com/v3/git/refs>`_
|
||||
:param ref: string
|
||||
:rtype: :class:`github.GitRef.GitRef`
|
||||
"""
|
||||
@@ -1021,7 +1042,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_git_refs(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/git/refs <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/git/refs <http://developer.github.com/v3/git/refs>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.GitRef.GitRef`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1033,7 +1054,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_git_tag(self, sha):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/git/tags/:sha <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/git/tags/:sha <http://developer.github.com/v3/git/tags>`_
|
||||
:param sha: string
|
||||
:rtype: :class:`github.GitTag.GitTag`
|
||||
"""
|
||||
@@ -1048,7 +1069,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_git_tree(self, sha, recursive=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/git/trees/:sha <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/git/trees/:sha <http://developer.github.com/v3/git/trees>`_
|
||||
:param sha: string
|
||||
:param recursive: bool
|
||||
:rtype: :class:`github.GitTree.GitTree`
|
||||
@@ -1068,7 +1089,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_hook(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/hooks/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/hooks/:id <http://developer.github.com/v3/repos/hooks>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.Hook.Hook`
|
||||
"""
|
||||
@@ -1083,7 +1104,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_hooks(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/hooks <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/hooks <http://developer.github.com/v3/repos/hooks>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Hook.Hook`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1095,7 +1116,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issue(self, number):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/:number <http://developer.github.com/v3/issues>`_
|
||||
:param number: integer
|
||||
:rtype: :class:`github.Issue.Issue`
|
||||
"""
|
||||
@@ -1110,7 +1131,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issues(self, milestone=github.GithubObject.NotSet, state=github.GithubObject.NotSet, assignee=github.GithubObject.NotSet, mentioned=github.GithubObject.NotSet, labels=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues <http://developer.github.com/v3/issues>`_
|
||||
:param milestone: :class:`github.Milestone.Milestone` or "none" or "*"
|
||||
:param state: string
|
||||
:param assignee: :class:`github.NamedUser.NamedUser` or "none" or "*"
|
||||
@@ -1161,7 +1182,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issues_comments(self, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/comments <http://developer.github.com/v3/issues/comments>`_
|
||||
:param sort: string
|
||||
:param direction: string
|
||||
:param since: datetime.datetime
|
||||
@@ -1186,7 +1207,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issues_event(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/events/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/events/:id <http://developer.github.com/v3/issues/events>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.IssueEvent.IssueEvent`
|
||||
"""
|
||||
@@ -1201,7 +1222,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_issues_events(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/issues/events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/issues/events <http://developer.github.com/v3/issues/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.IssueEvent.IssueEvent`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1213,7 +1234,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_key(self, id):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/keys/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/keys/:id <http://developer.github.com/v3/repos/keys>`_
|
||||
:param id: integer
|
||||
:rtype: :class:`github.RepositoryKey.RepositoryKey`
|
||||
"""
|
||||
@@ -1228,7 +1249,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_keys(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/keys <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/keys <http://developer.github.com/v3/repos/keys>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.RepositoryKey.RepositoryKey`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1240,7 +1261,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_label(self, name):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/labels/:name <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/labels/:name <http://developer.github.com/v3/issues/labels>`_
|
||||
:param name: string
|
||||
:rtype: :class:`github.Label.Label`
|
||||
"""
|
||||
@@ -1255,7 +1276,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_labels(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/labels <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/labels <http://developer.github.com/v3/issues/labels>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Label.Label`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1267,7 +1288,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_languages(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/languages <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/languages <http://developer.github.com/v3/repos>`_
|
||||
:rtype: dict of string to integer
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -1280,7 +1301,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_milestone(self, number):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/milestones/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/milestones/:number <http://developer.github.com/v3/issues/milestones>`_
|
||||
:param number: integer
|
||||
:rtype: :class:`github.Milestone.Milestone`
|
||||
"""
|
||||
@@ -1295,7 +1316,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_milestones(self, state=github.GithubObject.NotSet, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/milestones <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/milestones <http://developer.github.com/v3/issues/milestones>`_
|
||||
:param state: string
|
||||
:param sort: string
|
||||
:param direction: string
|
||||
@@ -1320,7 +1341,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_network_events(self):
|
||||
"""
|
||||
:calls: `GET /networks/:user/:repo/events <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /networks/:owner/:repo/events <http://developer.github.com/v3/activity/events>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Event.Event`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1332,7 +1353,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_pull(self, number):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/:number <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/:number <http://developer.github.com/v3/pulls>`_
|
||||
:param number: integer
|
||||
:rtype: :class:`github.PullRequest.PullRequest`
|
||||
"""
|
||||
@@ -1347,7 +1368,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_pulls(self, state=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls <http://developer.github.com/v3/pulls>`_
|
||||
:param state: string
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.PullRequest.PullRequest`
|
||||
"""
|
||||
@@ -1364,7 +1385,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_pulls_comments(self, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/comments <http://developer.github.com/v3/pulls/comments>`_
|
||||
:param sort: string
|
||||
:param direction: string
|
||||
:param since: datetime.datetime
|
||||
@@ -1374,7 +1395,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_pulls_review_comments(self, sort=github.GithubObject.NotSet, direction=github.GithubObject.NotSet, since=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/pulls/comments <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/pulls/comments <http://developer.github.com/v3/pulls/comments>`_
|
||||
:param sort: string
|
||||
:param direction: string
|
||||
:param since: datetime.datetime
|
||||
@@ -1399,7 +1420,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_readme(self, ref=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/readme <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/readme <http://developer.github.com/v3/repos/contents>`_
|
||||
:param ref: string
|
||||
:rtype: :class:`github.ContentFile.ContentFile`
|
||||
"""
|
||||
@@ -1417,7 +1438,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_stargazers(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/stargazers <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/stargazers <http://developer.github.com/v3/activity/starring>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1429,7 +1450,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_subscribers(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/subscribers <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/subscribers <http://developer.github.com/v3/activity/watching>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1441,7 +1462,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_tags(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/tags <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/tags <http://developer.github.com/v3/repos>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Tag.Tag`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1453,7 +1474,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_teams(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/teams <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/teams <http://developer.github.com/v3/repos>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1465,7 +1486,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_watchers(self):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/watchers <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/watchers <http://developer.github.com/v3/activity/starring>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -1477,7 +1498,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_assignees(self, assignee):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/assignees/:assignee <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/assignees/:assignee <http://developer.github.com/v3/issues/assignees>`_
|
||||
:param assignee: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -1492,7 +1513,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_collaborators(self, collaborator):
|
||||
"""
|
||||
:calls: `GET /repos/:user/:repo/collaborators/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /repos/:owner/:repo/collaborators/:user <http://developer.github.com/v3/repos/collaborators>`_
|
||||
:param collaborator: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -1507,7 +1528,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def legacy_search_issues(self, state, keyword):
|
||||
"""
|
||||
:calls: `GET /legacy/issues/search/:owner/:repository/:state/:keyword <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /legacy/issues/search/:owner/:repository/:state/:keyword <http://developer.github.com/v3/search/legacy>`_
|
||||
:param state: "open" or "closed"
|
||||
:param keyword: string
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Issue.Issue`
|
||||
@@ -1527,7 +1548,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def merge(self, base, head, commit_message=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /repos/:user/:repo/merges <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /repos/:owner/:repo/merges <http://developer.github.com/v3/repos/merging>`_
|
||||
:param base: string
|
||||
:param head: string
|
||||
:param commit_message: string
|
||||
@@ -1555,7 +1576,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_collaborators(self, collaborator):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/collaborators/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/collaborators/:user <http://developer.github.com/v3/repos/collaborators>`_
|
||||
:param collaborator: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -1569,7 +1590,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def subscribe_to_hub(self, event, callback, secret=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `POST /hub <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /hub <http://developer.github.com/>`_
|
||||
:param event: string
|
||||
:param callback: string
|
||||
:param secret: string
|
||||
@@ -1579,7 +1600,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def unsubscribe_from_hub(self, event, callback):
|
||||
"""
|
||||
:calls: `POST /hub <http://developer.github.com/v3/todo>`_
|
||||
:calls: `POST /hub <http://developer.github.com/>`_
|
||||
:param event: string
|
||||
:param callback: string
|
||||
:param secret: string
|
||||
|
||||
+26
-17
@@ -1,20 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
# Copyright 2013 Srijan Choudhary srijan4@gmail.com
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Srijan Choudhary <srijan4@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -74,7 +83,7 @@ class RepositoryKey(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /repos/:user/:repo/keys/:id <http://developer.github.com/v3/keys>`_
|
||||
:calls: `DELETE /repos/:owner/:repo/keys/:id <http://developer.github.com/v3/repos/keys>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -86,7 +95,7 @@ class RepositoryKey(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, title=github.GithubObject.NotSet, key=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /repos/:user/:repo/keys/:id <http://developer.github.com/v3/keys>`_
|
||||
:calls: `PATCH /repos/:owner/:repo/keys/:id <http://developer.github.com/v3/repos/keys>`_
|
||||
:param title: string
|
||||
:param key: string
|
||||
:rtype: None
|
||||
|
||||
+38
-21
@@ -1,24 +1,35 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Andrew Bettison andrewb@zip.com.au
|
||||
# Copyright 2012 Dima Kukushkin dima@kukushkin.me
|
||||
# Copyright 2012 Michael Woodworth mwoodworth@upverter.com
|
||||
# Copyright 2012 Petteri Muilu pmuilu@xena.(none)
|
||||
# Copyright 2012 Steve English steve.english@navetas.com
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 Jonathan J Hunt hunt@braincorporation.com
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Andrew Bettison <andrewb@zip.com.au> #
|
||||
# Copyright 2012 Dima Kukushkin <dima@kukushkin.me> #
|
||||
# Copyright 2012 Michael Woodworth <mwoodworth@upverter.com> #
|
||||
# Copyright 2012 Petteri Muilu <pmuilu@xena.(none)> #
|
||||
# Copyright 2012 Steve English <steve.english@navetas.com> #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Ed Jackson <ed.jackson@gmail.com> #
|
||||
# Copyright 2013 Jonathan J Hunt <hunt@braincorporation.com> #
|
||||
# Copyright 2013 Mark Roddy <markroddy@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import logging
|
||||
import httplib
|
||||
@@ -78,7 +89,8 @@ class Requester:
|
||||
self.__connectionClass = self.__httpConnectionClass
|
||||
else:
|
||||
assert False, "Unknown URL scheme"
|
||||
self.rate_limiting = (5000, 5000)
|
||||
self.rate_limiting = (-1, -1)
|
||||
self.rate_limiting_resettime = 0
|
||||
self.FIX_REPO_GET_GIT_REF = True
|
||||
self.per_page = per_page
|
||||
|
||||
@@ -122,7 +134,10 @@ class Requester:
|
||||
else:
|
||||
if atLeastPython3 and isinstance(data, bytes): # pragma no branch (Covered by Issue142.testDecodeJson with Python 3)
|
||||
data = data.decode("utf-8") # pragma no cover (Covered by Issue142.testDecodeJson with Python 3)
|
||||
return json.loads(data)
|
||||
try:
|
||||
return json.loads(data)
|
||||
except ValueError, e:
|
||||
return {'data': data}
|
||||
|
||||
def requestJson(self, verb, url, parameters, input):
|
||||
def encode(input):
|
||||
@@ -166,6 +181,8 @@ class Requester:
|
||||
|
||||
if "x-ratelimit-remaining" in responseHeaders and "x-ratelimit-limit" in responseHeaders:
|
||||
self.rate_limiting = (int(responseHeaders["x-ratelimit-remaining"]), int(responseHeaders["x-ratelimit-limit"]))
|
||||
if "x-ratelimit-reset" in responseHeaders:
|
||||
self.rate_limiting_resettime = int(responseHeaders["x-ratelimit-reset"])
|
||||
|
||||
if "x-oauth-scopes" in responseHeaders:
|
||||
self.oauth_scopes = responseHeaders["x-oauth-scopes"].split(", ")
|
||||
|
||||
+23
-14
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
|
||||
+33
-24
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
import github.PaginatedList
|
||||
@@ -77,7 +86,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_members(self, member):
|
||||
"""
|
||||
:calls: `PUT /teams/:id/members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -91,7 +100,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def add_to_repos(self, repo):
|
||||
"""
|
||||
:calls: `PUT /teams/:id/repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PUT /teams/:id/repos/:org/:repo <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param repo: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -105,7 +114,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /teams/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /teams/:id <http://developer.github.com/v3/orgs/teams>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -117,7 +126,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, name, permission=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /teams/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /teams/:id <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param name: string
|
||||
:param permission: string
|
||||
:rtype: None
|
||||
@@ -139,7 +148,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_members(self):
|
||||
"""
|
||||
:calls: `GET /teams/:id/members <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /teams/:id/members <http://developer.github.com/v3/orgs/teams>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.NamedUser.NamedUser`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -151,7 +160,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def get_repos(self):
|
||||
"""
|
||||
:calls: `GET /teams/:id/repos <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /teams/:id/repos <http://developer.github.com/v3/orgs/teams>`_
|
||||
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Repository.Repository`
|
||||
"""
|
||||
return github.PaginatedList.PaginatedList(
|
||||
@@ -163,7 +172,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_members(self, member):
|
||||
"""
|
||||
:calls: `GET /teams/:id/members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -178,7 +187,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def has_in_repos(self, repo):
|
||||
"""
|
||||
:calls: `GET /teams/:id/repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `GET /teams/:id/repos/:owner/:repo <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param repo: :class:`github.Repository.Repository`
|
||||
:rtype: bool
|
||||
"""
|
||||
@@ -193,7 +202,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_members(self, member):
|
||||
"""
|
||||
:calls: `DELETE /teams/:id/members/:user <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /teams/:id/members/:user <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param member: :class:`github.NamedUser.NamedUser`
|
||||
:rtype: None
|
||||
"""
|
||||
@@ -207,7 +216,7 @@ class Team(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def remove_from_repos(self, repo):
|
||||
"""
|
||||
:calls: `DELETE /teams/:id/repos/:user/:repo <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /teams/:id/repos/:owner/:repo <http://developer.github.com/v3/orgs/teams>`_
|
||||
:param repo: :class:`github.Repository.Repository`
|
||||
:rtype: None
|
||||
"""
|
||||
|
||||
+25
-16
@@ -1,19 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2013 martinqt m.ki2@laposte.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2013 martinqt <m.ki2@laposte.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github.GithubObject
|
||||
|
||||
@@ -65,7 +74,7 @@ class UserKey(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def delete(self):
|
||||
"""
|
||||
:calls: `DELETE /user/keys/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `DELETE /user/keys/:id <http://developer.github.com/v3/users/keys>`_
|
||||
:rtype: None
|
||||
"""
|
||||
headers, data = self._requester.requestJsonAndCheck(
|
||||
@@ -77,7 +86,7 @@ class UserKey(github.GithubObject.CompletableGithubObject):
|
||||
|
||||
def edit(self, title=github.GithubObject.NotSet, key=github.GithubObject.NotSet):
|
||||
"""
|
||||
:calls: `PATCH /user/keys/:id <http://developer.github.com/v3/todo>`_
|
||||
:calls: `PATCH /user/keys/:id <http://developer.github.com/v3/users/keys>`_
|
||||
:param title: string
|
||||
:param key: string
|
||||
:rtype: None
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
"""
|
||||
The primary class you will instanciate is :class:`github.MainClass.Github`.
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
from AuthenticatedUser import *
|
||||
from Authentication import *
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
import github
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import base64
|
||||
import sys
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+38
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import github
|
||||
import sys
|
||||
@@ -47,6 +56,22 @@ class Exceptions(Framework.TestCase): # To stay compatible with Python 2.6, we
|
||||
)
|
||||
self.assertTrue(raised)
|
||||
|
||||
def testNonJsonDataReturnedByGithub(self):
|
||||
# Replay data was forged according to https://github.com/jacquev6/PyGithub/pull/182
|
||||
raised = False
|
||||
try:
|
||||
self.g.get_user("jacquev6")
|
||||
except github.GithubException, exception:
|
||||
raised = True
|
||||
self.assertEqual(exception.status, 503)
|
||||
self.assertEqual(
|
||||
exception.data,
|
||||
{
|
||||
"data": "<html><body><h1>503 Service Unavailable</h1>No server is available to handle this request.</body></html>",
|
||||
}
|
||||
)
|
||||
self.assertTrue(raised)
|
||||
|
||||
def testUnknownObject(self):
|
||||
raised = False
|
||||
try:
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import datetime
|
||||
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+24
-13
@@ -1,18 +1,28 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Stuart Glaser <stuglaser@gmail.com> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
@@ -45,6 +55,7 @@ class Issue(Framework.TestCase):
|
||||
self.assertEqual(self.issue.updated_at, datetime.datetime(2012, 5, 26, 14, 59, 33))
|
||||
self.assertEqual(self.issue.url, "https://api.github.com/repos/jacquev6/PyGithub/issues/28")
|
||||
self.assertEqual(self.issue.user.login, "jacquev6")
|
||||
self.assertEqual(self.issue.repository.name, "PyGithub")
|
||||
|
||||
def testEditWithoutParameters(self):
|
||||
self.issue.edit()
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
import github
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
import github
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
import github
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import unittest
|
||||
import github
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
import github
|
||||
|
||||
+20
-11
@@ -1,16 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
import github
|
||||
|
||||
+22
-13
@@ -1,18 +1,27 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2012 Vincent Jacques vincent@vincent-jacques.net
|
||||
# Copyright 2012 Zearin zearin@gonk.net
|
||||
# Copyright 2013 Vincent Jacques vincent@vincent-jacques.net
|
||||
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/
|
||||
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License
|
||||
# as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
||||
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
||||
|
||||
# You should have received a copy of the GNU Lesser General Public License along with PyGithub. If not, see <http://www.gnu.org/licenses/>.
|
||||
############################ Copyrights and license ############################
|
||||
# #
|
||||
# Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# Copyright 2012 Zearin <zearin@gonk.net> #
|
||||
# Copyright 2013 Vincent Jacques <vincent@vincent-jacques.net> #
|
||||
# #
|
||||
# This file is part of PyGithub. http://jacquev6.github.com/PyGithub/ #
|
||||
# #
|
||||
# PyGithub is free software: you can redistribute it and/or modify it under #
|
||||
# the terms of the GNU Lesser General Public License as published by the Free #
|
||||
# Software Foundation, either version 3 of the License, or (at your option) #
|
||||
# any later version. #
|
||||
# #
|
||||
# PyGithub is distributed in the hope that it will be useful, but WITHOUT ANY #
|
||||
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS #
|
||||
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more #
|
||||
# details. #
|
||||
# #
|
||||
# You should have received a copy of the GNU Lesser General Public License #
|
||||
# along with PyGithub. If not, see <http://www.gnu.org/licenses/>. #
|
||||
# #
|
||||
################################################################################
|
||||
|
||||
import Framework
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user