Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions rebasebot/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down