Parameters
| Parameter | Type | Description |
|---|---|---|
sha | Required | The commit SHA to read the note from |
JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:readscope
Response
Response Fields
| Field | Type | Description |
|---|---|---|
sha | String | The commit SHA |
note | String | The note content |
ref_sha | String | Current SHA of refs/notes/commits |
Notes
- Git notes are stored in
refs/notes/commits - Notes allow attaching metadata to commits without modifying the commit itself
- Common use cases include build status, review comments, and deployment annotations
Error Responses
| Status | Description |
|---|---|
404 Not Found | Note doesn’t exist for the specified commit |
401 Unauthorized | Invalid JWT or missing git:read scope |
400 Bad Request | Missing sha parameter |