Skip to content

Commit b1eee29

Browse files
chore: allow skip setting permission in get access token (#229)
1 parent 0e50b95 commit b1eee29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codegen/git/clients/git_integration_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ def get_app_installation(self, installation_id: int) -> Installation | None:
5151
logger.warning(f"Error getting app installation with installation_id: {installation_id}\n\t{e}")
5252
return None
5353

54-
def get_access_token(self, installation_id: int, permissions: dict[str, str]) -> InstallationAuthorization:
54+
def get_access_token(self, installation_id: int, permissions: dict[str, str] | None = None) -> InstallationAuthorization:
5555
# TODO: add try/catch error handling around this
5656
return self.client.get_access_token(installation_id=installation_id, permissions=permissions)

0 commit comments

Comments
 (0)