ci: echo spam detection result
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
6a5fbdd44f
commit
8a235ecbef
1 changed files with 2 additions and 1 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue