File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed
Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22source repos
33for product in " ${products[@]} " ; do
4- gh pr review $1 --approve -R stackabletech/${product} -operator
5- gh pr review $1 --comment -b " bors r+" -R stackabletech/${product} -operator
4+ STATE=$( gh pr view $1 -R stackabletech/${product} -operator --jq ' .state' --json state)
5+ if [[ $STATE -eq " OPEN" ]]; then
6+ echo " Approving ${product} "
7+ gh pr review $1 --approve -R stackabletech/${product} -operator
8+ gh pr review $1 --comment -b " bors r+" -R stackabletech/${product} -operator
9+ else
10+ echo " Skipping ${product} , PR already closed"
11+ fi
612done
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22source repos
33for product in " ${products[@]} " ; do
4- gh pr close $1 -R stackabletech/${product} -operator
4+ STATE=$( gh pr view $1 -R stackabletech/${product} -operator --jq ' .state' --json state)
5+ if [[ $STATE -eq " OPEN" ]]; then
6+ gh pr close $1 -R stackabletech/${product} -operator
7+ else
8+ echo " Skipping ${product} , PR already closed"
9+ fi
510done
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22source repos
33for product in " ${products[@]} " ; do
4+ STATE=$( gh pr view $1 -R stackabletech/${product} -operator --jq ' .state' --json state)
45 gh pr checks $1 -R stackabletech/${product} -operator & > /dev/null
56 status=$?
6- echo ${product} : ${status}
7+ echo " ${product} ( ${STATE} ) : ${status} "
78done
8-
Original file line number Diff line number Diff line change 22products=(
33 kafka
44 opa
5- regorule
65 zookeeper
76 trino
87 druid
You can’t perform that action at this time.
0 commit comments