neuro-inc / flow-template

Apolo Platform Flow Template
Apache License 2.0
7 stars 1 forks source link

Bump pygithub from 1.55 to 2.2.0 #672

Closed dependabot[bot] closed 7 months ago

dependabot[bot] commented 8 months ago

Bumps pygithub from 1.55 to 2.2.0.

Release notes

Sourced from pygithub's releases.

v2.2.0

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:

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 returned PaginatedList does not support the len() method. Use the totalCount property instead:

commits = repo.compare("v0.6", "v0.7").commits
no_of_commits = commits.totalCount

New features

  • Add support to call GraphQL API

Improvements

Bug Fixes

... (truncated)

Changelog

Sourced from pygithub's changelog.

Version 2.2.0 (January 28, 2024)

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) (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 to create_repo_from_template of AuthenticatedUser and Organization (#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 on RepositoryAdvisories (#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 have last_modified as a datetime (#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 Make Repository.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 Add include_all_branches to create_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 compatibility score

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 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)
dependabot[bot] commented 7 months ago

Superseded by #682.