Review note push

This commit is contained in:
2026-10-02 14:45:17 +03:00
parent e7adb3e88b
commit 4664e71493
2 changed files with 17 additions and 1 deletions
+6
View File
@@ -75,6 +75,11 @@ cmd_latest() {
printf '%s\n' "$best"
}
cmd_push() {
git rev-parse -q --verify "$NOTES_REF" >/dev/null || die "no review notes to push"
git push "$REMOTE" "$NOTES_REF"
}
main() {
local cmd="${1:-}"
if [ $# -gt 0 ]; then shift; fi
@@ -82,6 +87,7 @@ main() {
show) cmd_show "$@" ;;
write) cmd_write "$@" ;;
latest) cmd_latest "$@" ;;
push) cmd_push "$@" ;;
*) usage ;;
esac
}