What's Changed
Breaking Changes
- Method
Github.get_rate_limit()
now returnsRateLimitOverview
rather thanRateLimit
(#3205).
Code like
gh.get_rate_limit().core.remaining
should be replaced with
gh.get_rate_limit().resources.core.remaining
- Method
GitTag.verification
now returnsGitCommitVerification
rather thandict[str, Any]
(#3226).
Code like
tag.verification["reason"]
tag.verification.get("reason")
should be replaced with
tag.verification.reason
New Features
- Add getting list of self-hosted runners of organization by @climbfuji in #3190
- Apply OpenAPI spec by @EnricoMi in #3317
- Add support for Sub-Issues by @e7217 in #3258
Improvement
- Refactor search results into separate classes by @EnricoMi in #3204
- Add
OrganizationInvitation
by @EnricoMi in #3207 - Add and apply missing schemas by @EnricoMi in #3209
- Sync
RepositoryAdvisory
tests with OpenAPI spec by @EnricoMi in #3215 - Sync
ProjectColumn
andProjectCard
tests with OpenAPI spec by @EnricoMi in #3216 - Sync
CopilotSeat
class with API spec by @EnricoMi in #3232 - Sync
HookDeliverySummary
class with API spec by @EnricoMi in #3233 - Sync
RequiredPullRequestReviews
class with API spec by @EnricoMi in #3234 - Sync
RequiredStatusChecks
class with API spec by @EnricoMi in #3236 - Sync
Team
class with API spec by @EnricoMi in #3237 - Replace
deprecated.deprecated()
withtyping_extensions.deprecated()
by @lazka in #3255 - fix(CodeScanAlert): add missing attributes by @ReenigneArcher in #3274
- Allow SHAs when creating PR comments by @tuchfarber in #3248
- Get collaborator role name by @jmgate in #3295
- Adding
prevent_self_review
property toRepository.createEnvironment
by @gopidesupavan in #3246 - Add
PullRequest.get_issue_timeline
method by @kukarkinmm in #3259 - Support built-in
reversed()
onPaginatedList
by @mfocko in #3260 - Relax 404 condition in
Requester
exception handling by @jsmolar in #3299 - Add
delete_self_hosted_runner
toOrganization
by @uncleDecart in #3306
Bug Fixes
- Fix broken pickle support for
Auth
classes by @EnricoMi in #3211 - Remove schema from
Deployment
, removemessage
attribute by @EnricoMi in #3223 - Fix incorrect deprecated import by @EnricoMi in #3225
- Add
CodeSecurityConfigRepository
returned byget_repos_for_code_security_config
by @EnricoMi in #3219 - Fix
Branch.get_required_status_checks
return type by @EnricoMi in #3235 - Adds
multi_select
andtrue_false
options toCustomProperty.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
- Bump actions/checkout from 3 to 4 by @dependabot[bot] in #2754
Maintenance
- Mention removal of
AppAuth.private_key
in changelog by @EnricoMi in #3212 - Remove wrong schema from Repository by @EnricoMi in #3220
- Rename
HookDeliveryRequest
and…Response
private headers fields by @EnricoMi in #3221 - Sort classes' functions by @EnricoMi in #3231
- Move all Python files to future annotations by @EnricoMi in #3241
- Fix return type of
PaginatedList[int]
by @EnricoMi in #3240 - Sync with OpenAPI spec by @EnricoMi in #3244
- Make token auth default in tests by @EnricoMi in #3242
- Add
Organization.get_repos_for_code_security_config
test by @billnapier in #3239 - Add Python 3.13 to CI by @lazka in #3253
- Enhance PyGithub webhook documentation by @ssganesh035 in #3267
- Create codeql.yml by @JLLeitschuh in #3277
- Add schema to
TimingData
by @EnricoMi in #3206 - Remove error schemas from classes by @EnricoMi in #3202
New Contributors
- @ssganesh035 made their first contribution in #3267
- @ReenigneArcher made their first contribution in #3274
- @climbfuji made their first contribution in #3190
- @tuchfarber made their first contribution in #3248
- @jmgate made their first contribution in #3295
- @gopidesupavan made their first contribution in #3246
- @kukarkinmm made their first contribution in #3259
- @mfocko made their first contribution in #3260
- @gfog-floqast made their first contribution in #3173
- @jsmolar made their first contribution in #3299
- @OscarVanL made their first contribution in #3263
- @alecglen made their first contribution in #3313
- @LifeLex made their first contribution in #3268
- @e7217 made their first contribution in #3258
- @x612skm made their first contribution in #3272
- @uncleDecart made their first contribution in #3306
Full Changelog: v2.6.0...v2.7.0