aboutsummaryrefslogtreecommitdiffstats
path: root/docs/pull_requests.rst
blob: 40c3435f68825841a00fcaf75df7c8e75d7e976e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.. _Pull Requests service:

Pull Requests service
=====================

**Example**::

    from pygithub3 import Github

    gh = Github()

    pull_requests = gh.pull_requests.list().all()
    for pr in pull_requests:
        commits = gh.pull_requests.list_commits(pr.number).all()

Pull Requests
-------------

.. autoclass:: pygithub3.services.pull_requests.PullRequests
    :members:

    .. attribute:: comments

        :ref:`Pull Request Comments service`


.. _Pull Request Comments service:

Pull Request Comments
---------------------

.. autoclass:: pygithub3.services.pull_requests.Comments
    :members: