ci: echo spam detection result

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2025-07-16 22:41:26 +01:00
parent 6a5fbdd44f
commit 8a235ecbef
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -21,10 +21,11 @@ _check_issue_script=".github/workflows/scripts/spam-detection/check-issue.sh"
_result="$($_check_issue_script "$_issue_url")"
if [[ "$_result" == "PASS" ]]; then
echo "detected as not-spam: $_issue_url"
exit 0
fi
echo "spam issue detected: $_issue_url"
echo "detected as spam: $_issue_url"
gh issue edit --add-label "$_suspected_spam_label" "$_issue_url"