Request Body
Commit SHA to attach the note to
Set to
"append" to append to an existing noteThe note content to append
Object with
name and email for the notes commitExpected notes ref SHA for optimistic concurrency control
JWT Requirements
- The JWT must include the repository in the
repoclaim - Requires
git:writescope
Response
Response Fields
The commit SHA the note is attached to
The notes reference (
refs/notes/commits)Previous notes ref commit SHA
New notes ref SHA after the operation
Operation result with
success, status, and optional messageNotes
- Use
action: "append"to add content to an existing note - If no note exists, one will be created
- Useful for accumulating multiple annotations on the same commit (e.g., multiple CI results)
Error Responses
expected_ref_sha doesn’t match current notes refInvalid JWT or missing
git:write scopeMissing required fields