List commits
forgejo_list_commitsList commits from a specified branch or default branch, newest first, with pagination and metadata to review changes and history.
Instructions
Lists a branch's commits, newest first.
Parameters: owner, repo, branch (string, optional — the repository's default branch when omitted), page, limit, response_format.
Returns: { total, count, page, limit, has_more, commits: [{ sha, message, author, date, html_url }] }
Examples:
"what changed recently" -> limit=10
"history of the migration branch" -> branch='birdiz/migration'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page to fetch, 1 = first. | |
| repo | No | Repository name. Defaults to FORGEJO_DEFAULT_REPO. | |
| limit | No | Items per page (max 50). | |
| owner | No | Repository owner (user or organisation). Defaults to FORGEJO_DEFAULT_OWNER. | |
| branch | No | Branch or starting SHA. Defaults to the main branch. | |
| response_format | No | 'markdown' for a readable rendering, 'json' for the full data. | markdown |