|
| 1 | +# 🤖 Automation Quick Reference |
| 2 | + |
| 3 | +## Workflow Summary |
| 4 | + |
| 5 | +| Workflow | When it runs | What it does | |
| 6 | +|----------|--------------|--------------| |
| 7 | +| 🔨 **CI** | On every push/PR | Runs tests & builds code | |
| 8 | +| 🎯 **Lint** | On every push/PR | Type checks TypeScript | |
| 9 | +| 🔒 **CodeQL** | On push/PR + weekly | Security scanning | |
| 10 | +| 📚 **Docs** | On main push (docs changes) | Deploys documentation | |
| 11 | +| 🏷️ **PR Automation** | On PR open/update | Adds labels & checks changesets | |
| 12 | +| 🧹 **Stale** | Daily | Manages inactive issues/PRs | |
| 13 | +| 📦 **Validate Deps** | On dep changes + weekly | Checks dependencies & licenses | |
| 14 | +| 🚀 **Release** | On main push | Publishes to npm | |
| 15 | + |
| 16 | +## Quick Commands |
| 17 | + |
| 18 | +```bash |
| 19 | +# Run tests locally |
| 20 | +pnpm --filter @objectstack/spec test |
| 21 | + |
| 22 | +# Run tests with coverage |
| 23 | +pnpm --filter @objectstack/spec test:coverage |
| 24 | + |
| 25 | +# Build everything |
| 26 | +pnpm run build |
| 27 | + |
| 28 | +# Type check |
| 29 | +pnpm --filter @objectstack/spec exec tsc --noEmit |
| 30 | + |
| 31 | +# Start docs locally |
| 32 | +pnpm docs:dev |
| 33 | + |
| 34 | +# Create a changeset |
| 35 | +pnpm changeset |
| 36 | +``` |
| 37 | + |
| 38 | +## PR Checklist |
| 39 | + |
| 40 | +Before submitting a PR: |
| 41 | + |
| 42 | +- [ ] Tests pass locally |
| 43 | +- [ ] TypeScript compiles without errors |
| 44 | +- [ ] Added changeset (if user-facing changes) |
| 45 | +- [ ] Updated documentation (if needed) |
| 46 | +- [ ] Keep PR size reasonable (< 500 lines preferred) |
| 47 | + |
| 48 | +## Labels |
| 49 | + |
| 50 | +**Automatic labels added to PRs:** |
| 51 | +- `size/*` - Based on lines changed |
| 52 | +- `protocol:*` - Based on files changed (data/ui/system/ai) |
| 53 | +- `documentation` - Changes to docs |
| 54 | +- `ci/cd` - Changes to workflows |
| 55 | +- `dependencies` - Changes to package.json |
| 56 | +- `tests` - Changes to test files |
| 57 | + |
| 58 | +**Manual labels:** |
| 59 | +- `skip-changeset` - Skip changeset requirement |
| 60 | +- `pinned` - Prevent auto-stale |
| 61 | +- `security` - Security-related changes |
| 62 | +- `work-in-progress` - PR is not ready for review |
| 63 | + |
| 64 | +## Secrets Required |
| 65 | + |
| 66 | +- `GITHUB_TOKEN` - ✅ Automatic |
| 67 | +- `NPM_TOKEN` - ⚠️ Configure in repo settings |
| 68 | + |
| 69 | +## Monitoring |
| 70 | + |
| 71 | +- **CI/CD**: [Actions tab](../actions) |
| 72 | +- **Security**: [Security tab → Code scanning](../security/code-scanning) |
| 73 | +- **Dependencies**: [Security tab → Dependabot](../security/dependabot) |
| 74 | +- **Coverage**: Download from workflow artifacts |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +💡 **Tip**: All workflows use pnpm caching for faster runs! |
0 commit comments