Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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)

Expand Down Expand Up @@ -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)

---
Expand Down
Binary file modified assets/start.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/bot/messages/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')}"
Expand Down
2 changes: 1 addition & 1 deletion src/services/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down