--------------------------------
Breaking Changes
^^^^^^^^^^^^^^^^
* The ``github.Comparison.Comparison`` instance returned by ``Repository.compare`` provides a ``commits``
property that used to return a ``list[github.Commit.Commit]``, which has now been changed
to ``PaginatedList[github.Commit.Commit]``. This breaks user code that assumes a ``list``:
.. code-block:: python
commits = repo.compare("v0.6", "v0.7").commits
no_of_commits = len(commits)
This will raise a ``TypeError: object of type 'PaginatedList' has no len()``, as the returned ``PaginatedList``
does not support the ``len()`` method. Use the ``totalCount`` property instead:
.. code-block:: python
commits = repo.compare("v0.6", "v0.7").commits
no_of_commits = commits.totalCount
New features
^^^^^^^^^^^^
* Add support to call GraphQL API
Improvements
^^^^^^^^^^^^
* Add parent_team_id, maintainers and notification_setting for creating and updating teams. (`2863 <https://github.com/PyGithub/PyGithub/pull/2863>`_) (`49d07d16 <https://github.com/PyGithub/PyGithub/commit/49d07d16>`_)
* Add support for issue reactions summary (`2866 <https://github.com/PyGithub/PyGithub/pull/2866>`_) (`cc4c5269 <https://github.com/PyGithub/PyGithub/commit/cc4c5269>`_)
* Support for DependabotAlert APIs (`2879 <https://github.com/PyGithub/PyGithub/pull/2879>`_) (`14af7051 <https://github.com/PyGithub/PyGithub/commit/14af7051>`_)
* Derive GraphQL URL from base_url (`2880 <https://github.com/PyGithub/PyGithub/pull/2880>`_) (`d0caa3c3 <https://github.com/PyGithub/PyGithub/commit/d0caa3c3>`_)
* Make ``Repository.compare().commits`` return paginated list (`2882 <https://github.com/PyGithub/PyGithub/pull/2882>`_) (`2d284d1e <https://github.com/PyGithub/PyGithub/commit/2d284d1e>`_)
* Add missing branch protection fields (`2873 <https://github.com/PyGithub/PyGithub/pull/2873>`_) (`e47c153b <https://github.com/PyGithub/PyGithub/commit/e47c153b>`_)
* Add ``include_all_branches`` to ``create_repo_from_template`` of ``AuthenticatedUser`` and ``Organization`` (`2871 <https://github.com/PyGithub/PyGithub/pull/2871>`_) (`34c4642e <https://github.com/PyGithub/PyGithub/commit/34c4642e>`_)
* Add and update organisation dependabot secrets (`2316 <https://github.com/PyGithub/PyGithub/pull/2316>`_) (`603896f4 <https://github.com/PyGithub/PyGithub/commit/603896f4>`_)
* Add missing params to ``Organization.create_repo`` (`2700 <https://github.com/PyGithub/PyGithub/pull/2700>`_) (`9c61a2a4 <https://github.com/PyGithub/PyGithub/commit/9c61a2a4>`_)
* Update allowed values for ``Repository`` collaborator permissions (`1996 <https://github.com/PyGithub/PyGithub/pull/1996>`_) (`b5b66da8 <https://github.com/PyGithub/PyGithub/commit/b5b66da8>`_)
* Support editing PullRequestReview (`2851 <https://github.com/PyGithub/PyGithub/pull/2851>`_) (`b1c4c561 <https://github.com/PyGithub/PyGithub/commit/b1c4c561>`_)
* Update attributes after calling ``PullRequestReview.dismiss`` (`2854 <https://github.com/PyGithub/PyGithub/pull/2854>`_) (`6f3d714c <https://github.com/PyGithub/PyGithub/commit/6f3d714c>`_)
* Add ``request_cve`` on ``RepositoryAdvisories`` (`2855 <https://github.com/PyGithub/PyGithub/pull/2855>`_) (`41b617b7 <https://github.com/PyGithub/PyGithub/commit/41b617b7>`_)
* Filter collaborators of a repository by permissions (`2792 <https://github.com/PyGithub/PyGithub/pull/2792>`_) (`702c127a <https://github.com/PyGithub/PyGithub/commit/702c127a>`_)
* Set pull request to auto merge via GraphQL API (`2816 <https://github.com/PyGithub/PyGithub/pull/2816>`_) (`232df79a <https://github.com/PyGithub/PyGithub/commit/232df79a>`_)
* Support Environment Variables and Secrets (`2848 <https://github.com/PyGithub/PyGithub/pull/2848>`_) (`7df97398 <https://github.com/PyGithub/PyGithub/commit/7df97398>`_)
* Update workflow.get_runs & pullrequest.add_to_assignees function signature (`2799 <https://github.com/PyGithub/PyGithub/pull/2799>`_) (`26eedbb0 <https://github.com/PyGithub/PyGithub/commit/26eedbb0>`_)
* Add ``GithubObject.last_modified_datetime`` to have ``last_modified`` as a ``datetime`` (`2772 <https://github.com/PyGithub/PyGithub/pull/2772>`_) (`e7ce8189 <https://github.com/PyGithub/PyGithub/commit/e7ce8189>`_)
* Add support for global advisories and unify some shared logic with repository advisories (`2702 <https://github.com/PyGithub/PyGithub/pull/2702>`_) (`c8b4fcbe <https://github.com/PyGithub/PyGithub/commit/c8b4fcbe>`_)
* Add internal as valid Repository visibility value (`2806 <https://github.com/PyGithub/PyGithub/pull/2806>`_) (`d4a5a40f <https://github.com/PyGithub/PyGithub/commit/d4a5a40f>`_)
* Add support for issue comments reactions summary (`2813 <https://github.com/PyGithub/PyGithub/pull/2813>`_) (`67397491 <https://github.com/PyGithub/PyGithub/commit/67397491>`_)
Bug Fixes
^^^^^^^^^
* Add a bunch of missing urllib.parse.quote calls (`1976 <https://github.com/PyGithub/PyGithub/pull/1976>`_) (`13194be2 <https://github.com/PyGithub/PyGithub/commit/13194be2>`_)
* Fix Variable and Secret URL (`2835 <https://github.com/PyGithub/PyGithub/pull/2835>`_) (`aa763431 <https://github.com/PyGithub/PyGithub/commit/aa763431>`_)
Maintenance
^^^^^^^^^^^
* Update the class name for NetrcAuth in the examples (`2860 <https://github.com/PyGithub/PyGithub/pull/2860>`_) (`2f44b2e8 <https://github.com/PyGithub/PyGithub/commit/2f44b2e8>`_)
* Move build to PEP517 (`2800 <https://github.com/PyGithub/PyGithub/pull/2800>`_) (`c589bf9e <https://github.com/PyGithub/PyGithub/commit/c589bf9e>`_)
* Use new type assert functions in ``Repository`` (`2798 <https://github.com/PyGithub/PyGithub/pull/2798>`_) (`2783e671 <https://github.com/PyGithub/PyGithub/commit/2783e671>`_)
* PyTest: Move config to pyproject.toml (`2859 <https://github.com/PyGithub/PyGithub/pull/2859>`_) (`61fb728b <https://github.com/PyGithub/PyGithub/commit/61fb728b>`_)
* codespell: ignore-words-list (`2858 <https://github.com/PyGithub/PyGithub/pull/2858>`_) (`dcf6d8a1 <https://github.com/PyGithub/PyGithub/commit/dcf6d8a1>`_)
* Improve fix-headers.py script (`2728 <https://github.com/PyGithub/PyGithub/pull/2728>`_) (`a48c37fa <https://github.com/PyGithub/PyGithub/commit/a48c37fa>`_)
* Remove dependency on python-dateutil (`2804 <https://github.com/PyGithub/PyGithub/pull/2804>`_) (`ab131a2f <https://github.com/PyGithub/PyGithub/commit/ab131a2f>`_)
* CI: update precommit & apply (`2600 <https://github.com/PyGithub/PyGithub/pull/2600>`_) (`d92cfba2 <https://github.com/PyGithub/PyGithub/commit/d92cfba2>`_)
* Fix parameter order according to Version 2.1.0 (`2786 <https://github.com/PyGithub/PyGithub/pull/2786>`_) (`dc37d5c1 <https://github.com/PyGithub/PyGithub/commit/dc37d5c1>`_)
* Add missing GitHub classes to docs (`2783 <https://github.com/PyGithub/PyGithub/pull/2783>`_) (`9af9b6e5 <https://github.com/PyGithub/PyGithub/commit/9af9b6e5>`_)
* Fix mypy error with urllib3>=2.0.0a1 by ignoring (`2779 <https://github.com/PyGithub/PyGithub/pull/2779>`_) (`64b1cdea <https://github.com/PyGithub/PyGithub/commit/64b1cdea>`_)