This repository was archived by the owner on Feb 29, 2024. It is now read-only.
chore(deps): update dependency pygithub to v2#14
Open
renovate[bot] wants to merge 1 commit intomasterfrom
Open
chore(deps): update dependency pygithub to v2#14renovate[bot] wants to merge 1 commit intomasterfrom
renovate[bot] wants to merge 1 commit intomasterfrom
Conversation
83e4022 to
a646315
Compare
Signed-off-by: Renovate Bot <bot@renovateapp.com>
a646315 to
1c1fdf2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.54.1->==2.2.0Release Notes
pygithub/pygithub (PyGithub)
v2.2.0Compare Source
Breaking Changes
The
github.Comparison.Comparisoninstance returned byRepository.compareprovides acommitsproperty that used to return alist[github.Commit.Commit], which has now been changed toPaginatedList[github.Commit.Commit]. This breaks user code that assumes alist:This will raise a
TypeError: object of type 'PaginatedList' has no len(), as the returnedPaginatedListdoes not support the
len()method. Use thetotalCountproperty instead:New features
Improvements
Repository.compare().commitsreturn paginated list by @EnricoMi in https://github.com/PyGithub/PyGithub/pull/2882include_all_branchestocreate_repo_from_templateofAuthenticatedUserandOrganizationby @janssonoskar in https://github.com/PyGithub/PyGithub/pull/2871Organization.create_repoby @tekumara in https://github.com/PyGithub/PyGithub/pull/2700Repositorycollaborator permissions by @flying-sheep in https://github.com/PyGithub/PyGithub/pull/1996PullRequestReview.dismissby @ColasGael in https://github.com/PyGithub/PyGithub/pull/2854request_cveonRepositoryAdvisoriesby @JLLeitschuh in https://github.com/PyGithub/PyGithub/pull/2855GithubObject.last_modified_datetimeto havelast_modifiedas adatetimeby @chouetz in https://github.com/PyGithub/PyGithub/pull/2772internalas valid Repository visibility value by @AndrewJDawes in https://github.com/PyGithub/PyGithub/pull/2806Bug Fixes
Maintenance
Repositoryby @trim21 in https://github.com/PyGithub/PyGithub/pull/2798Full Changelog: PyGithub/PyGithub@v2.1.1...v2.2.0
v2.1.1Compare Source
Bug Fixes
001c085)Maintenance
035c88f)v2.1.0.post0Compare Source
Important
Request throttling
This release introduces a default throttling mechanism to mitigate secondary rate limit errors and comply with Github's best practices:
https://docs.github.com/en/rest/guides/best-practices-for-integrators?apiVersion=2022-11-28#dealing-with-secondary-rate-limits
The default throttling of 1 second between writes and 0.25 second between any requests can be configured
for
github.Githubandgithub.GithubIntegration:Set these parameters to
Noneto disable throttling and restore earlier behavior.Request retry
This release introduces a default retry mechanism to retry retry-able 403 responses (primary and secondary rate limit errors only) and any 5xx response.
Class
github.GithubRetryimplements this behavior, and can be configured via theretryargument ofgithub.Githubandgithub.GithubIntegration.Retry behavior is configured similar to
urllib3.Retry: https://urllib3.readthedocs.io/en/stable/reference/urllib3.util.htmlSet this parameter to
Noneto disable retry mechanism and restore earlier behaviour.Breaking Changes
Timestamps
Any timestamps returned by this library are
datetimewith timezone information, usually UTC.Before this release, timestamps used to be naive
datetimeinstances without timezone.Comparing (other than
==) these timestamps with naivedatetimeinstances used to work but will now break.Add a timezone information to your
datetimeinstances before comparison:Netrc authentication
A Netrc file (e.g.
~/.netrc) does not override PyGithub authentication, anymore.If you require authentication through Netrc, then this is a breaking change.
Use a
github.Auth.NetrcAuthinstance to use Netrc credentials:Repository.create_pull
Merged overloaded
create_pullmethodsinto
Please update your usage of
Repository.create_pullaccordingly.New features
9915580)0bb72ca)73236e2)Improvements
0177f7c)Branch.edit_*functions return objects (#2748) (8dee53a)licenseattribute toRepository(#2721) (26d353e)Repository(#2742) (65cfeb1)is_alphanumericattribute toAutolinkandRepository.create_autolink(#2630) (b6a28a2)requestsfallback to netrc, providegithub.Auth.Netrc(#2739) (ac36f6a)AppInstallationAuth.__integration(#2695) (8bf542a)a7bfdf2)eadc241)SecretandVariableclasses (#2623) (bcca758)aedfa0b)required_linear_historyattribute toBranchProtection(#2643) (7a80fad)GithubException, don't log it (#2611) (de80ff4)messageproperty toGithubException(#2591) (f087cad)91b3f40)Workflow.get_runs()(#2346) (766df99)github.Rate.usedfield (#2531) (c4c2e52)Bug Fixes
Branch.bypass_pull_request_allowancesfailing with "nil is not an object" (#2535) (c5542a6)required_conversation_resolutionassertion (#2715) (54f2226)2fa568b)responseHeaderstoint(#2697) (adbfce9)subject_typein creating pull request review comment (#2642) (4933459)GithubRetry.py(#2610) (950a694)Branch.bypass_pull_request_allowancesfailing with "nil is not an object" (#2535) (c5542a6)Maintenance
.pyitype stubs back to.pysources (#2636)e66c163)094538e)6d871d5)a91debf)9a88b6b)95d8b83)2cc1ba2)add_attribute.pyto latest conding style (#2631) (e735972)48d2009)ff0f31c)flake8withruff(#2617) (42c3b47)c5c83eb)1d637e4)2edc0f8)disallow_untyped_defs(#2609) (294c0cc)check_untyped_defs(#2607) (8816889)13e178a)3c880e7)typing_extensionsforTypedDict(#2592) (5fcb0c7)2e5cd31)72840de)7324110)flake8as last (#2595) (11bb6bd)5c60089)8d3b905)v1.59.1Compare Source
Bug Fixes
adbfce9)v1.59.0Compare Source
Important
This release introduces new way of authentication. All authentication-related arguments
github.Github(login_or_token=…, password=…, jwt=…, app_auth=…)andgithub.GithubIntegration(integration_id=…, private_key=…, jwt_expiry=…, jwt_issued_at=…, jwt_algorithm=…)are replaced by a singleauth=…argument. Modulegithub.Authprovides classes for all supported ways of authentication:Login,Token,AppAuth,AppAuthToken,AppInstallationAuth,AppUserAuth. Old arguments are deprecated but continue to work. They are scheduled for removal for version 2.0 release.This project has decided to move all typing information from
.pyifiles into the respective.pysource files. This will happen gradually over time.Breaking Changes
positionargument ingithub.PullRequest.create_review_comment(position=…)has been renamed toline.This breaks user code that calls
create_review_commentwith keyword argumentposition. Call withline=…instead.Calling this method with positional arguments is not breaking.
jwt_expiry,jwt_issued_atandjwt_algorithmarguments ingithub.GithubIntegration()have changed their position.User code calling
github.GithubIntegration(…)with these arguments as positional arguments breaks.Please use keyword arguments:
github.GithubIntegration(…, jwt_expiry=…, jwt_issued_at=…, jwt_algorithm=…).sinceargument ingithub.PullRequest.get_review_comments(…)has changed position.User code callinggithub.PullRequest.get_review_comments(…)with this argument as positional argument breaks. Please use keyword argument:github.PullRequest.get_review_comments(since=…)`.Deprecations
github.Github(login_or_token=…)is deprecated, usegithub.Github(auth=github.Auth.Login(…))orgithub.Github(auth=github.Auth.Token(…))instead.github.Github(password=…)is deprecated, usegithub.Github(auth=github.Auth.Login(…))instead.github.Github(jwt=…)is deprecated, usegithub.Github(auth=github.AppAuth(…))orgithub.Github(auth=github.AppAuthToken(…))instead.github.Github(app_auth=…)is deprecated, usegithub.Github(auth=github.Auth.AppInstallationAuth(…))instead.github.GithubIntegration(integration_id=…, private_key=…, jwt_expiry=…, jwt_issued_at=…, jwt_algorithm=…)is deprecated, usegithub.GithubIntegration(auth=github.Auth.AppAuth(…))instead.github.GithubIntegration.create_jwtis deprecated, usegithub.Github(auth=github.Auth.AppAuth),github.Auth.AppAuth.tokenorgithub.Auth.AppAuth.create_jwt(expiration)instead.AppAuthenticationis deprecated, usegithub.Auth.AppInstallationAuthinstead.github.Github.get_app()without providing argumentslugis deprecated, usegithub.GithubIntegration(auth=github.Auth.AppAuth(…)).get_app().Bug Fixes
ff3b80f)7be3f76)Installation.get_repos(#2547) (6407512)f82ad61)17cd0b7)5011548)822fc05)554b2b2)45f3d72)e414c32)bdceae2)Improvements
517ad33)804c310)6d4b6d1)6a21761)AppUserAuthfor Github App user tokens (#2546) (f291a36)0384e2f)daf62bd)MainClass.get_appreturn completedGithubAppwhen slug is given (#2543) (84912a6)fc2d0e1)a8e7c42)namefilter toRepository.get_artifacts()(#2459) (9f52e94)name,display_titleandpathattributes toWorkflowRun(#2397) (1081638)create_forkarguments (#2493) (b94a83c)refto Deployment (#2489) (e8075c4)check_suite_idinteger toWorkflow.get_runs(#2466) (a485451)generate_release_notesparameter tocreate_git_releaseandcreate_git_tag_and_release(#2417) (49b3ae1)c2f12bd)8c4b946)artifact_idargument toRepository.get_artifact()(#2458) (4fa0a5f)e296dbd)bab4180)5aa544a)4198dbf)Maintenance
d514222)ea45237)f4e9dcb)006766f)cb50dec)b6258f4)52fc107)217d424)8e8cfb3)03a2f69)GithubCredentials.pyto CONTRIBUTING.md (#2482) (297317b)600217f)300c501)def5223)9c96faa)3ea91a3)v1.58.2Compare Source
Fixes
v1.58.1Compare Source
Changes
Bug Fixes
v1.58.0Compare Source
Bug Fixes & Improvements
v1.57Compare Source
Breaking Changes
1e2f10d)Bug Fixes & Improvements
6725ece)run_started_at&run_attempt), remove deprecatedunicodetype (#2273) (3a6235b)0fadd6b)784a3ef)db9337a)437ff84)v1.56Compare Source
Important
This is the last release that will support Python 3.6.
Bug Fixes & Improvements
b50283a)001970d)8d1397a)6452ddf)c8a945b)f1faf94)93b92cd)4f00cbf)d417e4c)b1c8eec)53fb498)html_urlproperty in Team Class. (#1983) (6570892)aa694f8)bc5e595)fcc1236)99e00a2)1da600a)1265747)ed7d0fe)b466470)d1644e3)v1.55Compare Source
Breaking Changes
901af8c)2c77cfa)ad124ef)ddd437a)Bug Fixes & Improvements
27ba783)4faff23)e416810)54b6a97)babcbcd)5aab6f5)7687961)7d6bac9)916da53)0245b75)c27fb91)a68577b)3003e06)6bae9e5)e0acd8f)696793d)aa24030)b2232c8)64f532a)55d9837)c90c050)7db1b0c)290b627)a77d4f4)aaec0a0)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ 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.
This PR has been generated by Mend Renovate. View repository job log here.