Issue detail
forgejo_get_issueFetch a full issue by number, including description, metadata, labels, and optional comments. Works for pull requests too, since they share the same numbering space.
Instructions
Returns a full issue: description, metadata and, on request, its comments.
Parameters: owner, repo, number (required), include_comments (bool, default true), response_format.
Returns: { number, title, state, author, labels, assignees, body, html_url, comments: [{ author, body, created_at }] }
Also works with a pull request number: issues and PRs share one numbering space in Forgejo. Errors: 404 if the number does not exist in this repository.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Repository name. Defaults to FORGEJO_DEFAULT_REPO. | |
| owner | No | Repository owner (user or organisation). Defaults to FORGEJO_DEFAULT_OWNER. | |
| number | Yes | Issue number as displayed (#42 -> 42). | |
| response_format | No | 'markdown' for a readable rendering, 'json' for the full data. | markdown |
| include_comments | No | Also fetch the comment thread. |