Note WIP title required for Gitea draft PRs
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -49,6 +49,15 @@ EOF
|
|||||||
- Title: short, imperative (same style as commit messages; prefer under 20 words).
|
- 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`).
|
- 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: <title>"`, 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
|
## Merge PR
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
Reference in New Issue
Block a user