Edit an issue
edit_issueUpdate a Forgejo issue in place—close or reopen it, or change its title, body, assignees, milestone, due date, or labels without replacing unset fields.
Instructions
Edit an issue in place (owner/repo/index; requires write mode): close or reopen it with state (open/closed), or change its title, body, assignees (logins), milestone (id; 0 removes it), due_date (RFC 3339; empty removes it) or labels (names). Only the fields you pass change; title, body, assignees and labels replace what was there. Labels are matched by exact name, and any the repository has no label for are listed in labels_not_found rather than silently dropped. Works on a pull request's number too, so state=closed closes a pull request without merging it. Answers with the issue in get_issue's shape.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | New body (Markdown). Replaces the existing body wholesale. | |
| repo | Yes | Repository name. | |
| index | Yes | Issue or pull-request number. | |
| owner | Yes | Repository owner. | |
| state | No | `open` or `closed`. | |
| title | No | New title. | |
| labels | No | Label names, replacing the current labels. An empty list removes them all. | |
| due_date | No | Due date as RFC 3339 (e.g. `2026-11-30T00:00:00Z`); an empty string removes it. | |
| assignees | No | Logins to assign, replacing the current assignees. An empty list unassigns everyone. | |
| milestone | No | Milestone id to set; `0` removes the milestone. |