getCommitsForIssue
Retrieves commits that referenced a specific issue, sorted newest first. Optionally filter by link type (closes/references) and workspace scope.
Instructions
Reverse commit→issue lookup from the persisted enrichment log. Returns commits that referenced the given issue, newest first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"issue": "<issue>"
},
"name": "getCommitsForIssue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue | Yes | Issue ref: `#42`, `42`, or `GH-42`. Normalized to `#N` internally. | |
| limit | No | Max results (default 100). | |
| linkType | No | Optional filter — only `closes` or only `references`. | |
| workspaceScope | No | `current` (default) filters to this workspace; `any` returns matches from every workspace the log has seen. |