feat: add greet helper and document Sonar quality gate
sonar / sonar (push) Skipped
sonar / sonar (pull_request) Successful in 28s
sonar / sonar (push) Skipped
sonar / sonar (pull_request) Successful in 28s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
# TicketLab_MCP
|
# TicketLab_MCP
|
||||||
|
|
||||||
|
[](https://sonarqube.app.andreferraro.com/dashboard?id=TicketLab_MCP)
|
||||||
|
|
||||||
Hello world — repositório de testes MCP do TicketLab.
|
Hello world — repositório de testes MCP do TicketLab.
|
||||||
|
|
||||||
## Quick start
|
## Quick start
|
||||||
@@ -7,3 +9,7 @@ Hello world — repositório de testes MCP do TicketLab.
|
|||||||
```bash
|
```bash
|
||||||
python hello.py
|
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.
|
||||||
|
|||||||
@@ -1,8 +1,13 @@
|
|||||||
"""Hello world for TicketLab_MCP."""
|
"""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:
|
def main() -> None:
|
||||||
print("Hello, TicketLab MCP!")
|
print(greet())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user