Skip to content

Commit 63426b9

Browse files
committed
fix linter
1 parent 4248118 commit 63426b9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

GitHubRepoAPI.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -191,9 +191,8 @@ def get_forks(self, repo: Repository) -> list[Repository]:
191191
return result
192192

193193
def get_comments(self, repo, obj) -> list[Comment]:
194-
result = []
195194
repo_client = self.client.get_repo(repo._id)
196-
195+
197196
try:
198197
if isinstance(obj, Issue):
199198
# Получаем issue напрямую по номеру
@@ -205,7 +204,7 @@ def get_comments(self, repo, obj) -> list[Comment]:
205204
comments = pull.get_comments()
206205
else:
207206
return []
208-
207+
209208
# Формируем результат
210209
return [
211210
Comment(
@@ -215,7 +214,7 @@ def get_comments(self, repo, obj) -> list[Comment]:
215214
)
216215
for comment in comments
217216
]
218-
217+
219218
except Exception as e:
220219
logging.error(f"Failed to get comments for {type(obj).__name__} {obj._id}: {e}")
221220
return []
@@ -273,7 +272,7 @@ def get_workflow_runs(self, repo) -> list[WorkflowRun]:
273272
# Точка входа для тестирования
274273
if __name__ == "__main__":
275274
# Создайте клиент GitHub (используйте ваш токен)
276-
#client = Github("")
275+
# client = Github("")
277276
api = GitHubRepoAPI('client')
278277

279278
# Укажите ваш репозиторий

0 commit comments

Comments
 (0)