Skip to content

findNote

Read the note for an object.

The notesRef argument is the canonical name of the reference to use, defaulting to "refs/notes/commits".

The id specified is the Oid of the git object to read the note from.

Signature

ts
class Repository {
  findNote(id: string, options?: FindNoteOptions | null | undefined): Note | null;
}

Parameters

  • idrequired · string

    OID of the git object to read the note from.

  • optionsnull | FindNoteOptions

    Options for finding note.

    • notesRefstring

Returns

  • null | Note

    Instance of the note. If does not exists, returns null .

Released under the MIT License.