From 0633d29e943629725f1cbb75c70be34b463a7b65 Mon Sep 17 00:00:00 2001 From: diaco Date: Wed, 7 Oct 2026 08:40:44 +0330 Subject: [PATCH] Note WIP title required for Gitea draft PRs Co-authored-by: Cursor --- .cursor/skills/gitea-prs/SKILL.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.cursor/skills/gitea-prs/SKILL.md b/.cursor/skills/gitea-prs/SKILL.md index 75c0464..cf2e2c5 100644 --- a/.cursor/skills/gitea-prs/SKILL.md +++ b/.cursor/skills/gitea-prs/SKILL.md @@ -49,6 +49,15 @@ EOF - Title: short, imperative (same style as commit messages; prefer under 20 words). - Return the PR URL from tea output (e.g. `https://git.faryad.top/rhino/product-slip/pulls/N`). +### Draft PRs + +`tea pulls create` has no `--draft` flag. This Gitea marks a PR as draft when the title starts with `WIP:` (API `draft: true` alone is ignored / cleared if the prefix is removed). + +For a draft PR, either: + +- Create with `--title "WIP: "`, or +- `POST /api/v1/repos/rhino/product-slip/pulls` with `"draft": true` **and** a `WIP:` title (token from `tea` login in `~/.config/tea/config.yml`). + ## Merge PR ```bash