diff --git a/README.md b/README.md index 496d862..0059ad6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Tinker Tickets +[![Lint](https://code.lotusguild.org/LotusGuild/tinker_tickets/actions/workflows/lint.yml/badge.svg)](https://code.lotusguild.org/LotusGuild/tinker_tickets/actions?workflow=lint.yml) + A feature-rich PHP-based ticketing system designed for tracking and managing data center infrastructure issues with enterprise-grade workflow management and a retro terminal aesthetic. **Documentation**: [Wiki](https://wiki.lotusguild.org/en/Services/service-tinker-tickets) @@ -561,6 +563,19 @@ Key conventions and gotchas for working with this codebase: | Visibility | Enforced on ticket views, downloads, and bulk operations | | API Key Auth | SHA-256 hashed keys stored in DB; Bearer token auth for external API | +## CI / CD + +| Workflow | Purpose | Triggers | +|---|---|---| +| `lint.yml` (php-lint) | phpcs PSR-12 standard | Every push and PR | +| `lint.yml` (js-lint) | ESLint on `assets/js/` | Every push and PR | +| `security.yml` | `npm audit --audit-level=high` (not applicable — no runtime npm deps) | — | +| `deploy` job in `lint.yml` | Calls deploy webhooks on CT132 (10.10.10.45): `tinker-deploy` (main) or `tinker-beta-deploy` (development) | Push to `main` or `development`, after both lint jobs pass | + +Branch protection is enabled on `main` — both lint jobs must pass before any PR can merge. + +Lint config: `.phpcs.xml` (PSR-12 with project-specific tweaks), `.eslintrc.json` per directory. + ## License Internal use only - LotusGuild Infrastructure