async function addNote(note, ref, execaOptions) {
  await execa(
    "git",
    ["notes", "--ref", `${GIT_NOTE_REF}-${ref}`, "add", "-f", "-m", JSON.stringify(note), ref],
    execaOptions
  );
}
Add JSON note to a given reference.

@param {Object} note The object to save in the reference note.
@param {String} ref The Git reference to add the note to.
@param {Object} [execaOpts] Options to pass to `execa`.