From 7b73b8a87677c3625647a18948edb88518d49d63 Mon Sep 17 00:00:00 2001 From: Andre Ferraro Date: Thu, 6 Aug 2026 13:49:03 -0300 Subject: [PATCH] feat: add greet helper and document Sonar quality gate Co-authored-by: Cursor --- README.md | 6 ++++++ hello.py | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6903a2b..1179509 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # TicketLab_MCP +[![Quality Gate Status](https://sonarqube.app.andreferraro.com/api/project_badges/measure?project=TicketLab_MCP&metric=alert_status&token=sqb_4b948ba1389feb0284d7d2630171396ed00b4478)](https://sonarqube.app.andreferraro.com/dashboard?id=TicketLab_MCP) + Hello world — repositório de testes MCP do TicketLab. ## Quick start @@ -7,3 +9,7 @@ Hello world — repositório de testes MCP do TicketLab. ```bash python hello.py ``` + +## CI / quality gate + +Pushes and PRs into `develop`, `release/**` and `main` run SonarQube via Gitea Actions. Merge is blocked until the Quality Gate passes. diff --git a/hello.py b/hello.py index 1a041cb..d876492 100644 --- a/hello.py +++ b/hello.py @@ -1,8 +1,13 @@ """Hello world for TicketLab_MCP.""" +def greet(name: str = "TicketLab MCP") -> str: + """Return a greeting for the given name.""" + return f"Hello, {name}!" + + def main() -> None: - print("Hello, TicketLab MCP!") + print(greet()) if __name__ == "__main__": -- 2.54.0