refactor ♻️: Remove 'ci-pass' label and update comment on PR check
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 7s
Gitleaks Scan / gitleaks (push) Successful in 5s
Markdown Lint / markdown-lint (push) Successful in 5s

Refactored the PR check process by removing the 'ci-pass' label and updating the associated comment to reflect the new workflow.
This commit is contained in:
2026-02-14 12:01:33 +01:00
parent 5ff377223a
commit c5e6c2a431

View File

@@ -104,6 +104,14 @@ jobs:
"$API/issues/$PR/comments" "$API/issues/$PR/comments"
fi fi
# Remove ci-pass +label if exists
LABELS=$(curl -s -H "Authorization: token $TOKEN" "$API/issues/$PR/labels" | jq -r '.[] | .name')
if echo "$LABELS" | grep -q "^ci-pass$"; then
curl -s -X DELETE \
-H "Authorization: token $TOKEN" \
"$API/issues/$PR/labels/ci-pass"
fi
# Add label if missing # Add label if missing
LABELS=$(curl -s -H "Authorization: token $TOKEN" "$API/issues/$PR/labels" | jq -r '.[] | .name') LABELS=$(curl -s -H "Authorization: token $TOKEN" "$API/issues/$PR/labels" | jq -r '.[] | .name')
if ! echo "$LABELS" | grep -q "^ci-failed$"; then if ! echo "$LABELS" | grep -q "^ci-failed$"; then
@@ -155,7 +163,7 @@ jobs:
"$API/issues/$PR/comments" "$API/issues/$PR/comments"
fi fi
# Remove label if exists # Remove ci-failed +label if exists
LABELS=$(curl -s -H "Authorization: token $TOKEN" "$API/issues/$PR/labels" | jq -r '.[] | .name') LABELS=$(curl -s -H "Authorization: token $TOKEN" "$API/issues/$PR/labels" | jq -r '.[] | .name')
if echo "$LABELS" | grep -q "^ci-failed$"; then if echo "$LABELS" | grep -q "^ci-failed$"; then
curl -s -X DELETE \ curl -s -X DELETE \