refactor ♻️: Remove 'ci-pass' label and update comment on PR check
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:
@@ -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 \
|
||||||
|
|||||||
Reference in New Issue
Block a user