Skip to content

fix(deps): update dependency pygithub to v2.9.0#1182

Open
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/pygithub-2.x
Open

fix(deps): update dependency pygithub to v2.9.0#1182
renovate[bot] wants to merge 1 commit intodevelopfrom
renovate/pygithub-2.x

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jul 31, 2025

This PR contains the following updates:

Package Change Age Confidence
PyGithub ==2.6.1==2.9.0 age confidence

Release Notes

pygithub/pygithub (PyGithub)

v2.9.0

Compare Source

Notable changes
Lazy PyGithub objects

The notion of lazy objects has been added to some PyGithub classes in version 2.6.0. This release now makes all CompletableGithubObjects optionally lazy (if useful). See PyGithub/PyGithub#3403 for a complete list.

In lazy mode, getting a PyGithub object does not send a request to the GitHub API. Only accessing methods and properties sends the necessary requests to the GitHub API:

# Use lazy mode
g = Github(auth=auth, lazy=True)

# these method calls do not send requests to the GitHub API
user = g.get_user("PyGithub")    # get the user
repo = user.get_repo("PyGithub") # get the user's repo
pull = repo.get_pull(3403)       # get a known pull request
issue = pull.as_issue()          # turn the pull request into an issue

# these method and property calls send requests to Github API
issue.create_reaction("rocket")  # create a reaction
created = repo.created_at        # get property of lazy object repo

# once a lazy object has been fetched, all properties are available (no more requests)
licence = repo.license

All PyGithub classes that implement CompletableGithubObject support lazy mode (if useful). This is only useful for classes that have methods creating, changing, or getting objects.

By default, PyGithub objects are not lazy.

PyGithub objects with a paginated property

The GitHub API has the "feature" of paginated properties. Some objects returned by the API have a property that allows for pagination. Fetching subsequent pages of that property means fetching the entire object (with all other properties) and the specified page of the paginated property. Iterating over the paginated property means fetching all other properties multiple times. Fortunately, the allowed size of each page (per_page is usually 300, in contrast to the "usual" per_page maximum of 100).

Objects with paginated properties:

  • Commit.files
  • Comparison.commits
  • EnterpriseConsumedLicenses.users

This PR makes iterating those paginated properties use the configured per_page setting.

It further allows to specify an individual per_page when either retrieving such objects, or fetching paginated properties.

See Classes with paginated properties for details.

Drop Python 3.8 support due to End-of-Life

Python 3.8 reached its end-of-life September 6, 2024. Support has been removed with this release.

Deprecations
  • Method delete of Reaction is deprecated, use IssueComment.delete_reaction,
    PullRequestComment.delete_reaction, CommitComment.delete_reaction or Issue.delete_reaction instead.
  • Method Issue.assignee and parameter Issue.edit(assignee=…) are deprecated,
    use Issue.assignees and Issue.edit(assignees=…) instead.
  • Method Organization.edit_hook is deprecated, use Organization.get_hook(id).edit(…) instead.
    If you need to avoid Organization.get_hook(id) to fetch the Hook object from Github API,
    use a lazy Github instance:
Github(…, lazy=True).get_organization(…).get_hook(id).edit(…)
  • Methods Team.add_to_members and Team.remove_from_members are deprecated,
    use Team.add_membership or Team.remove_membership instead.
New Features
Improvements
Bug Fixes
Maintenance

New Contributors

Full Changelog: PyGithub/PyGithub@v2.8.0...v2.9.0

v2.8.1

Compare Source

What's Changed

Bug Fixes

Full Changelog: PyGithub/PyGithub@v2.8.0...v2.8.1

v2.8.0

Compare Source

What's Changed

New Features
Improvements
Bug Fixes
Maintenance

New Contributors

Full Changelog: PyGithub/PyGithub@v2.7.0...v2.8.0

v2.7.0

Compare Source

What's Changed
Breaking Changes
  • Method Github.get_rate_limit() now returns RateLimitOverview rather than RateLimit (PyGithub/PyGithub#3205).

Code like

gh.get_rate_limit().core.remaining

should be replaced with

gh.get_rate_limit().resources.core.remaining
  • Method GitTag.verification now returns GitCommitVerification rather than dict[str, Any] (PyGithub/PyGithub#3226).

Code like

tag.verification["reason"]
tag.verification.get("reason")

should be replaced with

tag.verification.reason
New Features
Improvements
Bug Fixes
Dependencies
Maintenance
New Contributors

Full Changelog: PyGithub/PyGithub@v2.6.0...v2.7.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested review from a team and codegen-team as code owners July 31, 2025 14:59
@renovate renovate bot enabled auto-merge (squash) July 31, 2025 14:59
@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 2 times, most recently from e558ef8 to c9b80a2 Compare August 11, 2025 03:18
@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 21 times, most recently from da6d9bb to 2026179 Compare August 19, 2025 07:14
@renovate renovate bot changed the title fix(deps): update dependency pygithub to v2.7.0 chore(deps): update dependency pygithub to v2.7.0 Aug 19, 2025
@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 2 times, most recently from 1aacb9a to b1e9ad0 Compare August 19, 2025 18:30
@renovate renovate bot changed the title chore(deps): update dependency pygithub to v2.7.0 fix(deps): update dependency pygithub to v2.7.0 Aug 24, 2025
@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 2 times, most recently from 26a039b to ab09f78 Compare August 28, 2025 22:27
@renovate renovate bot changed the title fix(deps): update dependency pygithub to v2.7.0 fix(deps): update dependency pygithub to v2.8.0 Sep 2, 2025
@renovate renovate bot force-pushed the renovate/pygithub-2.x branch from ab09f78 to 1dd607d Compare September 2, 2025 12:24
@renovate renovate bot changed the title fix(deps): update dependency pygithub to v2.8.0 fix(deps): update dependency pygithub to v2.8.1 Sep 2, 2025
@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 3 times, most recently from 0f0540d to 56d4853 Compare September 3, 2025 18:29
@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 3 times, most recently from 657778f to dd0e0da Compare September 14, 2025 22:08
cursor[bot]

This comment was marked as outdated.

@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 4 times, most recently from 4c9ab5f to 50ea296 Compare September 15, 2025 00:44
cursor[bot]

This comment was marked as outdated.

@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 3 times, most recently from b4358a7 to 9c0b18c Compare September 16, 2025 05:29
cursor[bot]

This comment was marked as outdated.

@renovate renovate bot force-pushed the renovate/pygithub-2.x branch 7 times, most recently from 47f4e83 to 3b2bbbf Compare September 17, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants