Sourced from pygithub's releases.
v2.4.0
New features
Improvements
- Add
has_discussions
toAuthenticatedUser
andRepository
classes@cwlls
(#3020)- Update more
SecurityAndAnalysis
attributes@squatched
(#3025)- Implement support for re-running only failed workflow jobs.
@chrisgavin
(#2983)- Add possibility to mark a thread/notification as done
@m42e
(#2985)- Add "pull_request_review_id" to PullRequestComment object
@stroebs
(#3000)- Add minimize and unminimize functions for IssueComment class
@arash77
(#3005)- Support Organization/Repository custom properties
@jackylamhk
(#2968)- Add
dict
type toadd_attribute
script@jackylamhk
(#2977)- Allow for deleting and restoring branch associated with PR
@austinsasko
(#1784)- Add "archived_at" to Organization object.
@billnapier
(#2974)- Adds Security & Analysis To Repository
@squatched
(#2960)- Add added_by and last_used attributes to RepositoryKey
@ramiro
(#2952)- Add
make_latest
toGitRelease.update_release
@treee111
(#2888)- Make Commit.files return PaginatedList
@iarspider
(#2939)Bug Fixes
- Fix GraphQL Queries with Variables
@kgal-pan
(#3002)Maintenance
- Remove support for Python 3.7
@EnricoMi
@khneal
(#3008, #2975)- docs: add missing code-block
@kumy
(#2982)- Update README.md
@KPCOFGS
(#2961)- CI: Fix test success job
@EnricoMi
(#3010)
Sourced from pygithub's changelog.
Version 2.4.0 (August 26, 2024)
Breaking Changes ^^^^^^^^^^^^^^^^
- The
github.Commit.Commit
class provides afiles
property that used to return alist[github.File.File]
, which has now been changed toPaginatedList[github.File.File]
. This breaks user code that assumes alist
:.. code-block:: python
files = repo.get_commit("7266e812ed2976ea36a4303edecfe5d75522343f").files no_of_files = len(files)
This will raise a
TypeError: object of type 'PaginatedList' has no len()
, as the returnedPaginatedList
does not support thelen()
method. Use thetotalCount
property instead:.. code-block:: python
files = repo.get_commit("7266e812ed2976ea36a4303edecfe5d75522343f").files no_of_files = files.totalCount
- Removed support for Python 3.7.
New features ^^^^^^^^^^^^
- Allow custom authentication (#2987) (32b826fd)
Improvements ^^^^^^^^^^^^
- Add
has_discussions
toAuthenticatedUser
andRepository
classes (#3020) (75224167)- Update more
SecurityAndAnalysis
attributes (#3025) (fa168279)- Implement support for re-running only failed workflow jobs. (#2983) (23e87563)
- Add possibility to mark a thread/notification as done (#2985) (5ba24379)
- Add "pull_request_review_id" to PullRequestComment object (#3000) (6a59cf82)
- Add minimize and unminimize functions for IssueComment class (#3005) (09c4f58e)
- Support Organization/Repository custom properties (#2968) (c5e6b702)
- Add
dict
type toadd_attribute
script (#2977) (2a04f9cc)- Allow for deleting and restoring branch associated with PR (#1784) (4ba1e412)
- Add "archived_at" to Organization object. (#2974) (cc766a6f)
- Adds Security & Analysis To Repository (#2960) (f22af54d)
- Add added_by and last_used attributes to RepositoryKey (#2952) (5dffa64d)
- Add
make_latest
toGitRelease.update_release
(#2888) (60136105)- Make Commit.files return PaginatedList (#2939) (fa885f00)
Bug Fixes ^^^^^^^^^
... (truncated)
8508735
Release v2.4.0 (#3027)7522416
Add has_discussions
to AuthenticatedUser
and
Repository
classes (#3020)fa16827
Update more SecurityAndAnalysis
attributes (#3025)23e8756
Implement support for re-running only failed workflow jobs. (#2983)d0e0507
Complete dropping Python 3.7 (#2975)32b826f
Allow custom authentication (#2987)5ba2437
Add possibility to mark a thread/notification as done (#2985)61d37dc
CI: Fix test success job (#3010)38197d6
Revert "Add has_discussions field to Repository class" (#3009)7213cd0
Add has_discussions field to Repository class (#2995)