Skip to content

Releases: PyGithub/PyGithub

v2.8.1

02 Sep 17:41

Choose a tag to compare

What's Changed

Bug Fixes

  • Use default type if known type is not supported by @EnricoMi in #3365

Full Changelog: v2.8.0...v2.8.1

v2.8.0

02 Sep 09:23
18eeb26

Choose a tag to compare

What's Changed

New Features

Improvements

Bug Fixes

Maintenance

New Contributors

Full Changelog: v2.7.0...v2.8.0

v2.7.0

31 Jul 11:52
bccc5aa

Choose a tag to compare

What's Changed

Breaking Changes

  • Method Github.get_rate_limit() now returns RateLimitOverview rather than RateLimit (#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] (#3226).

Code like

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

should be replaced with

tag.verification.reason

New Features

Improvements

Bug Fixes

  • Fix broken pickle support for Auth classes by @EnricoMi in #3211
  • Remove schema from Deployment, remove message attribute by @EnricoMi in #3223
  • Fix incorrect deprecated import by @EnricoMi in #3225
  • Add CodeSecurityConfigRepository returned by get_repos_for_code_security_config by @EnricoMi in #3219
  • Fix Branch.get_required_status_checks return type by @EnricoMi in #3235
  • Adds multi_select and true_false options to CustomProperty.value_type by @gfog-floqast in #3173
  • Fix url encoding of strings with slashes in URLs by @OscarVanL in #3263
  • Fix side-effect when removing Authorization key from headers by @alecglen in #3313
  • Make TimingData.run_duration_ms optional by @LifeLex in #3268
  • Normalize App ID to String & Enhance JWT Issuer Verification by @x612skm in #3272

Dependencies

Maintenance

New Contributors

Full Changelog: v2.6.0...v2.7.0

v2.6.1

21 Feb 13:45
da30d6e

Choose a tag to compare

Bug Fixes

  • Fix broken pickle support for Auth classes by @EnricoMi in #3211
  • Remove schema from Deployment, remove message attribute by @EnricoMi in #3223
  • Fix incorrect deprecated import by @EnricoMi in #3225
  • Add CodeSecurityConfigRepository returned by get_repos_for_code_security_config by @EnricoMi in #3219
  • Make GitTag.verification return GitCommitVerification by @EnricoMi in #3226

Maintenance

  • Mention removal of AppAuth.private_key in changelog by @EnricoMi in #3212

Full Changelog: v2.6.0...v2.6.1

v2.6.0

15 Feb 17:36
e3e07d7

Choose a tag to compare

Breaking Changes

  • Rework Views and Clones by @EnricoMi in #3168:
    View and clones traffic information returned by Repository.get_views_traffic and Repository.get_clones_traffic
    now return proper PyGithub objects, instead of a dict, with all information that used to be provided by the dict:

Code like

repo.get_views_traffic().["views"].timestamp
repo.get_clones_traffic().["clones"].timestamp

should be replaced with

repo.get_views_traffic().views.timestamp
repo.get_clones_traffic().clones.timestamp
  • Fix typos by @kianmeng in #3086:
    Property OrganizationCustomProperty.respository_id renamed to OrganizationCustomProperty.repository_id.

New Features

Improvements

Bug Fixes

  • Patch httpretty socket for latest urllib3 release by @EnricoMi in #3102
  • Fix API break when contents not found by @skinitimski in #3181
  • Change start_side argument of PullRequest.create_review_comment from int to str by @ryanpeach in #3170
  • Create Review Request - transform string params to a list by @a-sido in #3099
  • Fix Repository.get_contents redirection by @EnricoMi in #3183

Others

Maintenance

Read more

v2.5.0

06 Nov 20:49
19ddb9f

Choose a tag to compare

Breaking Changes

  • Parameters of method github.Requester.Requester.graphql_named_mutation have been renamed:
    • Parameter variables renamed to mutation_input
    • Parameter output renamed to output_schema
    • Default value of parameter output has been removed

New features

Improvements

Bug Fixes

  • Fix requesting urls containing parameters with parameters dict @EnricoMi (#2929)
  • PullRequest.delete_branch: fix the remaining pull requests check @fetsko (#3063)

Maintenance

v2.4.0

26 Aug 06:48
8508735

Choose a tag to compare

New features

Improvements

Bug Fixes

Maintenance

v2.3.0

24 Mar 14:24
7266e81

Choose a tag to compare

New features

Improvements

  • Create release with optional name and message when generate_release_notes is true @heitorpolidoro (#2868)
  • Add missing attributes to WorkflowJob @xvega (#2921)
  • Add created and check_suite_id filter for Repository Workflow runs @treee111 (#2891)
  • Assert requester argument type in Auth @EnricoMi (#2912)

Bug Fixes

Maintenance

v2.2.0

30 Jan 07:54
7e7653f

Choose a tag to compare

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

Maintenance

Full Changelog: v2.1.1...v2.2.0

v2.1.1

29 Sep 21:59
e584a90

Choose a tag to compare

Bug Fixes

Maintenance

  • Fix pypi-release workflow, allow for manual run (#2771) (035c88f)