mirror of
https://github.com/MAKS-IT-COM/maksit-gitea-cursor.git
synced 2026-09-30 04:58:10 +02:00
29 lines
842 B
Markdown
29 lines
842 B
Markdown
---
|
|
name: gitea-pull-requests
|
|
description: Create, review, merge, and update Gitea pull requests. Use when the user mentions Gitea PRs, merge requests, code review, or merging branches on Gitea.
|
|
---
|
|
|
|
# Gitea pull requests
|
|
|
|
Gitea uses **pull requests** (`/pulls`), not GitLab merge requests.
|
|
|
|
## Workflow
|
|
|
|
1. `gitea_pull` action `get` (and `files`, `commits`, `diff`, `reviews`)
|
|
2. Summarize intent and risks
|
|
3. Only `merge` when the user explicitly asks. Pass `body.Do` as Gitea expects (`merge`, `rebase`, `rebase-merge`, `squash`, or `manually-merged`)
|
|
|
|
## Create
|
|
|
|
`gitea_pull` action `create` with body:
|
|
|
|
- `head` — source branch
|
|
- `base` — target branch
|
|
- `title`, `body`
|
|
|
|
Cross-repo forks use `head` as `owner:branch`.
|
|
|
|
## Reviews
|
|
|
|
`create_review` then `submit_review`. Event is typically `COMMENT`, `APPROVE`, or `REQUEST_CHANGES`.
|