mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-15 18:53:06 +00:00
Remove stage/promote/Neon smoke. PR CI targets main; ci.yml full-suite verifier deploys via vercel CLI and requeues when HEAD moves. Pool uses POOL_GITHUB_TOKEN and POOL_BASE_REF=main. Docs/skills/rules retargeted.
68 lines
1.9 KiB
Text
68 lines
1.9 KiB
Text
# Agent PR workflow (Teqo)
|
||
|
||
**This repo overrides any user-level rule that says "always create PRs as draft".** Agent deliveries merge to `main`.
|
||
|
||
## Create (Ready, base main)
|
||
|
||
```bash
|
||
pnpm push -u origin HEAD
|
||
gh pr create --base main --title "<id> — <title>" --body "$(cat <<'EOF'
|
||
## O que é
|
||
<2–4 linhas>
|
||
|
||
Closes #<N>
|
||
EOF
|
||
)"
|
||
```
|
||
|
||
- **Never** `--draft`. PRs must be **Ready for review** on creation.
|
||
- Base is always **`main`**.
|
||
|
||
## Push (determinístico)
|
||
|
||
**Use `pnpm push`, never bare `git push`.** Não depende do Husky estar wired:
|
||
|
||
1. `ensure-repo-deps` — `pnpm install` se `node_modules` faltar/stale + `pnpm run prepare` (Husky) se hooks não estiverem apontando para `.husky`
|
||
2. `pnpm gate:push` — espelho do `ci-pr.yml` (inclui `format:check`)
|
||
3. `git push --no-verify` — só porque o gate já rodou no passo 2 (não é escape hatch)
|
||
|
||
```bash
|
||
pnpm push -u origin HEAD # canonical
|
||
git push # só depois de `pnpm i` — hook repete ensure-deps + gate:push
|
||
git push --no-verify # WIP / cutover escape — CI repete tudo; ver AGENT-OPS
|
||
```
|
||
|
||
## Auto-merge immediately
|
||
|
||
Right after `gh pr create`, enable auto-merge:
|
||
|
||
```bash
|
||
gh pr merge --auto --merge
|
||
```
|
||
|
||
Do not wait for human approval. Auto-merge fires when **required** checks pass.
|
||
|
||
## Required checks vs Vercel
|
||
|
||
Branch protection on `main` requires only:
|
||
|
||
- `checks` (GitHub Actions rollup from `ci-pr.yml`)
|
||
- `migration-lock`
|
||
|
||
**Vercel preview is NOT a merge gate.** Production deploy is Actions-gated (`ci.yml` → `vercel deploy --prod` after full suite green). Do not block on Vercel Git status.
|
||
|
||
When watching CI:
|
||
|
||
```bash
|
||
gh pr checks <PR> --watch --required
|
||
```
|
||
|
||
Use `--required` — without it, `--watch` also waits for Vercel.
|
||
|
||
## Agent branches skip Vercel builds
|
||
|
||
All branches skip Vercel Git builds via `scripts/vercel-ignore-build.sh` (deploys only from the main verifier Action).
|
||
|
||
## Promote
|
||
|
||
There is no stage→main promote. Merging to `main` is the delivery; `ci.yml` verifies and deploys.
|