deploy: add "watch status" command

This commit is contained in:
Aaron Bieber 2023-06-21 07:01:54 -06:00
parent 0dd211ca98
commit cdc74c0bd9
No known key found for this signature in database

View File

@ -32,6 +32,16 @@ rebuild() {
} }
if [ "$1" = "watch" ]; then if [ "$1" = "watch" ]; then
if [ "$2" = "status" ]; then
for f in pull_requests/*.json; do
pr=$(basename $f .json)
title="$(jq -r '.title' <$f)"
status="$(jq -r '.status' <$f)"
echo "${pr}|${title}|${status}"
done | column -t -s '|'
exit 0
fi
if [ "$2" = "update" ]; then if [ "$2" = "update" ]; then
msg "updating watches..." msg "updating watches..."
for f in pull_requests/*.json; do for f in pull_requests/*.json; do