Bound note header parsing
This commit is contained in:
@@ -49,6 +49,7 @@ if "$rn" write "$note" >/dev/null 2>&1; then fail "write should refuse an existi
|
||||
sed 's/^verdict: request-changes/verdict: approve/' "$note" > "$tmp/note1b"
|
||||
"$rn" write "$tmp/note1b" --force
|
||||
"$rn" show | grep -q '^verdict: approve$' || fail "show should print the replaced note"
|
||||
"$rn" show | diff -u "$tmp/note1b" - || fail "show should print the note verbatim"
|
||||
|
||||
# latest finds the note by branch, even from a newer unreviewed tip
|
||||
echo three > c.txt && git add c.txt && git commit -qm three
|
||||
|
||||
Reference in New Issue
Block a user