From 4059570194fca905780a4d3f30122dff22ebb8ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Ma=C5=88=C3=A1k?= Date: Mon, 27 Apr 2026 12:51:45 +0200 Subject: [PATCH] Fix type error --- rebasebot/github.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rebasebot/github.py b/rebasebot/github.py index 595f70b..3a1dc8c 100644 --- a/rebasebot/github.py +++ b/rebasebot/github.py @@ -179,7 +179,8 @@ def github_cloner_app(self) -> github3.GitHub: def _github_login_app(credentials: GitHubAppCredentials) -> github3.GitHub: logging.info("Logging to GitHub as an Application for repository %s", credentials.github_branch.url) gh_app = github3.GitHub() - gh_app.login_as_app(credentials.app_key, credentials.app_id, expire_in=300) + app_id = str(credentials.app_id) + gh_app.login_as_app(credentials.app_key, app_id, expire_in=300) gh_branch = credentials.github_branch try: @@ -191,7 +192,7 @@ def _github_login_app(credentials: GitHubAppCredentials) -> github3.GitHub: logging.error(msg) raise builtins.Exception(msg) from err - gh_app.login_as_app_installation(credentials.app_key, credentials.app_id, install.id) + gh_app.login_as_app_installation(credentials.app_key, app_id, install.id) return gh_app def _get_github_user_logged_in_app(self) -> github3.GitHub: