diff --git a/README.md b/README.md index d66af32..fdab77c 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # DevMetricsBot ๐Ÿค–๐Ÿ“Š -[![CI](https://github.com/byBenPuls/dev_metrics_bot/actions/workflows/ci.yml/badge.svg)](https://github.com/byBenPuls/dev_metrics_bot/actions/workflows/ci.yml) +[![CI](https://github.com/byBenPuls/dev_metrics_bot/actions/workflows/ci.yml/badge.svg)](https://github.com/byBenPuls/dev_metrics_bot/actions/workflows/style.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) ![Python](https://img.shields.io/badge/Python-3.12+-blue.svg) @@ -34,9 +34,11 @@ impress recruiters, or just track their own progress. DevMetricsBot does exactly ## ๐Ÿงช Example ๐Ÿงญ Start command: -![Start command](assets/welcome.png) + +![Start command](assets/start.png) ๐Ÿ“Š Summary result: + ![GitHub summary](assets/summary.png) --- diff --git a/assets/start.png b/assets/start.png index 52473a9..28b5829 100644 Binary files a/assets/start.png and b/assets/start.png differ diff --git a/assets/summary.png b/assets/summary.png index 28b5829..52473a9 100644 Binary files a/assets/summary.png and b/assets/summary.png differ diff --git a/src/bot/messages/github.py b/src/bot/messages/github.py index 4f4be20..60f44de 100644 --- a/src/bot/messages/github.py +++ b/src/bot/messages/github.py @@ -17,7 +17,9 @@ def format_github_metrics(metrics: GitHubMetrics) -> str: f"๐Ÿ› {bold('Issues opened:')} {code(metrics.issues)}\n" f"๐Ÿš€ {bold('Pull Requests:')} {code(metrics.pull_requests)}\n" f"๐Ÿ’ฌ {bold('Discussion comments:')} {code(metrics.discussion_comments)}\n\n" - f"๐Ÿงพ {bold('Lines of code:')} {code(f'+{metrics.lines_added}')} / {code(f'-{metrics.lines_deleted}')}\n" + f"๐Ÿงพ {bold('Lines of code:')} " + f"{code(f'+{metrics.lines_added}')} / " + f"{code(f'-{metrics.lines_deleted}')}\n" f"โญ {bold('Stars received:')} {code(metrics.stars)}\n" f"๐Ÿด {bold('Forks:')} {code(metrics.forks)}\n\n" f"{italic('Generated via GitHub Summary Bot')}" diff --git a/src/services/github.py b/src/services/github.py index 9c1e0f4..515a9ba 100644 --- a/src/services/github.py +++ b/src/services/github.py @@ -31,7 +31,7 @@ async def get_count_of_pr(self, username: str) -> int: return len(pull_requests) async def count_discussion_messages(self, username: str) -> int: - return -1 # TODO: rewrite + return -1 # TODO: rewrite def _calculate_lines(self, summary: list[tuple[int, int]]) -> tuple[int, int]: total_add = 0