From c5e6c2a431a22e14c1e759be19fa604d93eb4ca2 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 14 Feb 2026 12:01:33 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Remove=20'ci-p?= =?UTF-8?q?ass'=20label=20and=20update=20comment=20on=20PR=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactored the PR check process by removing the 'ci-pass' label and updating the associated comment to reflect the new workflow. --- .gitea/workflows/pr-check.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pr-check.yaml b/.gitea/workflows/pr-check.yaml index ea46251..1b221a8 100644 --- a/.gitea/workflows/pr-check.yaml +++ b/.gitea/workflows/pr-check.yaml @@ -104,6 +104,14 @@ jobs: "$API/issues/$PR/comments" 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 LABELS=$(curl -s -H "Authorization: token $TOKEN" "$API/issues/$PR/labels" | jq -r '.[] | .name') if ! echo "$LABELS" | grep -q "^ci-failed$"; then @@ -155,7 +163,7 @@ jobs: "$API/issues/$PR/comments" 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') if echo "$LABELS" | grep -q "^ci-failed$"; then curl -s -X DELETE \