Skip to content

Commit 74eae9c

Browse files
feat: update code
1 parent d5e2d5a commit 74eae9c

5 files changed

Lines changed: 10 additions & 1466 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ __pycache__/
1111
# App
1212
.env
1313
venv
14+
data/
1415

1516
# Testing
1617
.pytest_cache/

‎data/analysis_cache.json‎

Lines changed: 0 additions & 1455 deletions
This file was deleted.

‎main.py‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -525,20 +525,22 @@ def run_polling_mode(poll_interval: int) -> None:
525525
labels=labels,
526526
)
527527

528-
# Filter by project IDs if configured (automation mode only)
528+
gitlab_url = config.get("gitlab", {}).get("url", "")
529529
project_ids = config.get("app", {}).get("project_ids")
530530
if project_ids:
531-
original_count = len(new_issues)
531+
logger.info(
532+
f"✅ Fetched {len(new_issues)} issue(s) from {gitlab_url} by project IDs: {project_ids}"
533+
)
534+
else:
535+
logger.info(f"✅ Fetched {len(new_issues)} issue(s) from {gitlab_url}")
536+
537+
# Filter by project IDs if configured (automation mode only)
538+
if project_ids:
532539
new_issues = [
533540
issue
534541
for issue in new_issues
535542
if issue.get("project_id") in project_ids
536543
]
537-
if len(new_issues) < original_count:
538-
filtered_count = original_count - len(new_issues)
539-
logger.info(
540-
f"📊 Filtered {filtered_count} issue(s) by project IDs: {project_ids}"
541-
)
542544

543545
if new_issues:
544546
# Filter out already cached issues to avoid reprocessing

‎setup.cfg‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@ exclude =
1616
profile = black
1717
line_length = 120
1818
skip_gitignore = true
19-

‎src/gitlab_client.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,6 @@ def get_issues(
201201
"GET", "/issues", params=params, use_project_endpoint=use_project_endpoint
202202
)
203203
issues = response.json()
204-
205-
logger.info(f"✅ Fetched {len(issues)} issue(s) from {self.url}")
206-
207204
return issues
208205

209206
def get_issue(

0 commit comments

Comments
 (0)