[pw-ci] [PATCH] post_pw: allow for blank description
Aaron Conole
aconole at redhat.com
Thu Feb 3 13:15:21 UTC 2022
Some external projects don't have an external description label,
so we accomodate by inserting a default one.
Signed-off-by: Aaron Conole <aconole at redhat.com>
---
post_pw.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/post_pw.sh b/post_pw.sh
index 8e57fa6..2998644 100755
--- a/post_pw.sh
+++ b/post_pw.sh
@@ -67,6 +67,10 @@ send_post() {
api_url="${pw_instance}/api/patches/${patch_id}/checks/"
+ if [ -z "$description" ]; then
+ description="test: $state"
+ fi
+
# Skip on missing arguments from email
if [ -z "$context" -o -z "$state" -o -z "$description" -o -z "$patch_id" ]; then
echo "Skpping \"$link\" due to missing context, state, description," \
--
2.31.1
More information about the Pwci
mailing list