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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| issue | Yes | Issue ref: `#42`, `42`, or `GH-42`. Normalized to `#N` internally. | |
| 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. | |
| limit | No | Max results (default 100). |