# List Commits

> Get list of commits of a branch in a GitHub repository

- Skill: `xiaobai1017/list-commits` (Agent Skill)
- Install (CLI): `npx skillmds@latest add xiaobai1017/list-commits`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xiaobai1017/list-commits/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xiaobai1017 (https://skillmd.com/u/xiaobai1017)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/xiaobai1017/list-commits

---


# list_commits

Get list of commits of a branch in a GitHub repository

## Purpose

This skill provides access to the MCP tool `list_commits`. It allows you to get list of commits of a branch in a github repository.

## Parameters

The tool accepts the following parameters:

### `owner`
**Required**
- **Type**: `string`
- **Description**: No description provided

### `repo`
**Required**
- **Type**: `string`
- **Description**: No description provided

### `sha`
*Optional*
- **Type**: `string`
- **Description**: No description provided

### `page`
*Optional*
- **Type**: `number`
- **Description**: No description provided

### `perPage`
*Optional*
- **Type**: `number`
- **Description**: No description provided


## Usage Instructions

To use this tool:

1. **Prepare the parameters** according to the schema above
2. **Invoke the MCP tool** `list_commits` with the prepared parameters
3. **Process the result** returned by the tool

## Example

```json
{
  "owner": "example_value",
  "repo": "example_value",
  "sha": "example_value",
  "page": 123,
  "perPage": 123
}
```


## Notes

- This skill requires an active MCP connection to the server providing the `list_commits` tool
- Ensure the MCP server is properly configured and running before attempting to use this tool
- Review the parameter requirements carefully to avoid errors
