auto tools in github action

This commit is contained in:
mrT23
2023-09-25 18:56:10 +03:00
parent 34ed598c20
commit 4c72cfbff4
4 changed files with 23 additions and 5 deletions

View File

@ -239,9 +239,10 @@ class GithubProvider(GitProvider):
def get_user_id(self):
if not self.github_user_id:
try:
self.github_user_id = self.github_client.get_user().login
self.github_user_id = self.github_client.get_user().raw_data['login']
except Exception as e:
logging.exception(f"Failed to get user id, error: {e}")
self.github_user_id = ""
# logging.exception(f"Failed to get user id, error: {e}")
return self.github_user_id
def get_notifications(self, since: datetime):