Skip to content

Commit 8937f76

Browse files
Plug openqa-bats-review into investigate hook script
1 parent 5762231 commit 8937f76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

openqa-label-known-issues-and-investigate-hook

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ hook() {
4444
result="$(echo "$job_data" | runjq -r '.job.result')" || return $?
4545
[[ "$state" != "done" ]] && return
4646
if [[ "$result" != passed ]]; then
47+
bats_package="$(echo "$job_data" | runjq -r '.job.settings.BATS_PACKAGE')"
48+
if ! [[ $bats_package = "null" ]]; then
49+
openqa-bats-review "$url" && return
50+
fi
4751
label "$url" | investigate-and-bisect
4852
else
4953
echo "$url" | investigate-and-bisect

0 commit comments

Comments
 (0)