git-extra-commands
git-extra-commands copied to clipboard
build(deps): bump pygithub from 2.1.1 to 2.2.0
Bumps pygithub from 2.1.1 to 2.2.0.
Release notes
Sourced from pygithub's releases.
v2.2.0
Breaking Changes
The
github.Comparison.Comparison
instance returned byRepository.compare
provides acommits
property that used to return alist[github.Commit.Commit]
, which has now been changed toPaginatedList[github.Commit.Commit]
. This breaks user code that assumes alist
:commits = repo.compare("v0.6", "v0.7").commits no_of_commits = len(commits) # will raise a TypeError
This will raise a
TypeError: object of type 'PaginatedList' has no len()
, as the returnedPaginatedList
does not support thelen()
method. Use thetotalCount
property instead: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. by
@Cheshirez
in PyGithub/PyGithub#2863- Add support for issue reactions summary by
@smuzaffar
in PyGithub/PyGithub#2866- Support for DependabotAlert APIs by
@coopernetes
in PyGithub/PyGithub#2879- Derive GraphQL URL from base_url by
@EnricoMi
in PyGithub/PyGithub#2880- Make
Repository.compare().commits
return paginated list by@EnricoMi
in PyGithub/PyGithub#2882- Add missing branch protection fields by
@treee111
in PyGithub/PyGithub#2873- Add
include_all_branches
tocreate_repo_from_template
ofAuthenticatedUser
andOrganization
by@janssonoskar
in PyGithub/PyGithub#2871- Add and update organisation dependabot secrets by
@mohy01
in PyGithub/PyGithub#2316- Add missing params to
Organization.create_repo
by@tekumara
in PyGithub/PyGithub#2700- Update allowed values for
Repository
collaborator permissions by@flying-sheep
in PyGithub/PyGithub#1996- Support editing PullRequestReview by
@ColasGael
in PyGithub/PyGithub#2851- Update attributes after calling
PullRequestReview.dismiss
by@ColasGael
in PyGithub/PyGithub#2854- Add
request_cve
onRepositoryAdvisories
by@JLLeitschuh
in PyGithub/PyGithub#2855- Filter collaborators of a repository by permissions by
@notmicaelfilipe
in PyGithub/PyGithub#2792- Set pull request to auto merge via GraphQL API by
@heitorpolidoro
in PyGithub/PyGithub#2816- Support Environment Variables and Secrets by
@AndrewJDawes
in PyGithub/PyGithub#2848- Update workflow.get_runs & pullrequest.add_to_assignees function signature by
@sd-kialo
in PyGithub/PyGithub#2799- Add
GithubObject.last_modified_datetime
to havelast_modified
as adatetime
by@chouetz
in PyGithub/PyGithub#2772- Add support for global advisories and unify some shared logic with repository advisories by
@crimsonknave
in PyGithub/PyGithub#2702- Add
internal
as valid Repository visibility value by@AndrewJDawes
in PyGithub/PyGithub#2806- Add support for issue comments reactions summary by
@smuzaffar
in PyGithub/PyGithub#2813Bug Fixes
- Add a bunch of missing urllib.parse.quote calls by
@ExplodingCabbage
in PyGithub/PyGithub#1976- Fix Variable and Secret url bugs by
@AndrewJDawes
in PyGithub/PyGithub#2835
... (truncated)
Changelog
Sourced from pygithub's changelog.
Version 2.2.0 (January 28, 2024)
Breaking Changes ^^^^^^^^^^^^^^^^
- The
github.Comparison.Comparison
instance returned byRepository.compare
provides acommits
property that used to return alist[github.Commit.Commit]
, which has now been changed toPaginatedList[github.Commit.Commit]
. This breaks user code that assumes alist
:.. 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 returnedPaginatedList
does not support thelen()
method. Use thetotalCount
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) (49d07d16)
- Add support for issue reactions summary (#2866) (cc4c5269)
- Support for DependabotAlert APIs (#2879) (14af7051)
- Derive GraphQL URL from base_url (#2880) (d0caa3c3)
- Make
Repository.compare().commits
return paginated list (#2882) (2d284d1e)- Add missing branch protection fields (#2873) (e47c153b)
- Add
include_all_branches
tocreate_repo_from_template
ofAuthenticatedUser
andOrganization
(#2871) (34c4642e)- Add and update organisation dependabot secrets (#2316) (603896f4)
- Add missing params to
Organization.create_repo
(#2700) (9c61a2a4)- Update allowed values for
Repository
collaborator permissions (#1996) (b5b66da8)- Support editing PullRequestReview (#2851) (b1c4c561)
- Update attributes after calling
PullRequestReview.dismiss
(#2854) (6f3d714c)- Add
request_cve
onRepositoryAdvisories
(#2855) (41b617b7)- Filter collaborators of a repository by permissions (#2792) (702c127a)
- Set pull request to auto merge via GraphQL API (#2816) (232df79a)
- Support Environment Variables and Secrets (#2848) (7df97398)
- Update workflow.get_runs & pullrequest.add_to_assignees function signature (#2799) (26eedbb0)
- Add
GithubObject.last_modified_datetime
to havelast_modified
as adatetime
(#2772) (e7ce8189)
... (truncated)
Commits
7e7653f
Release v2.2.0 (#2886)49d07d1
Add parent_team_id, maintainers and notification_setting for creating and upd...cc4c526
Add support for issue reactions summary (#2866)2d284d1
MakeRepository.compare().commits
return paginated list (#2882)14af705
Support for DependabotAlert APIs (#2879)d0caa3c
Derive GraphQL URL from base_url (#2880)e47c153
Add missing branch protection fields (#2873)34c4642
Addinclude_all_branches
tocreate_repo_from_template
of `AuthenticatedUs...603896f
Add and update organisation dependabot secrets (#2316)2f44b2e
Update the class name for NetrcAuth in the examples (#2860)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)