Release 1.59.0 (#2563)

This commit is contained in:
Enrico Minack
2023-06-22 19:41:10 +02:00
committed by GitHub
parent ff3b80f8f1
commit 14ae2cad4c
5 changed files with 108 additions and 11 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ import deprecated
from github.Auth import AppAuth, AppInstallationAuth
@deprecated.deprecated("Use app.Auth.AppInstallationAuth instead")
@deprecated.deprecated("Use github.Auth.AppInstallationAuth instead")
class AppAuthentication(AppInstallationAuth):
def __init__(
self,
+4 -2
View File
@@ -22,13 +22,15 @@ class GithubIntegration:
# keep non-deprecated arguments in-sync with Requester
# v2: remove integration_id, private_key, jwt_expiry, jwt_issued_at and jwt_algorithm
# v2: move auth to the front of arguments
# v2: add * before first argument so all arguments must be named,
# v2: move * before first argument so all arguments must be named,
# allows to reorder / add new arguments / remove deprecated arguments without breaking user code
# added here to force named parameters because new parameters have been added
def __init__(
self,
integration_id=None,
private_key=None,
base_url=Consts.DEFAULT_BASE_URL,
*,
timeout=Consts.DEFAULT_TIMEOUT,
user_agent=Consts.DEFAULT_USER_AGENT,
per_page=Consts.DEFAULT_PER_PAGE,
@@ -151,7 +153,7 @@ class GithubIntegration:
)
@deprecated.deprecated(
"Use github.Auth.AppAuth.token or github.Auth.AppAuth.create_jwt(expiration) instead"
"Use github.Github(auth=github.Auth.AppAuth), github.Auth.AppAuth.token or github.Auth.AppAuth.create_jwt(expiration) instead"
)
def create_jwt(self, expiration=None):
"""
+1 -1
View File
@@ -106,7 +106,7 @@ class Github:
"""
:param login_or_token: string deprecated, use auth=github.Auth.Login(...) or auth=github.Auth.Token(...) instead
:param password: string deprecated, use auth=github.Auth.Login(...) instead
:param jwt: string deprecated, use auth=github.Auth.AppAuthToken(...) instead
:param jwt: string deprecated, use auth=github.Auth.AppAuth(...) or auth=github.Auth.AppAuthToken(...) instead
:param app_auth: github.AppAuthentication deprecated, use auth=github.Auth.AppInstallationAuth(...) instead
:param base_url: string
:param timeout: integer