From 859ff3608a06201436a93139cf1218c2ae342b7b Mon Sep 17 00:00:00 2001 From: gkodinov Date: Mon, 19 Jan 2026 10:32:29 +0200 Subject: [PATCH] MDEV-38546: Automatically label incoming pull requests Do not print a bogus error line gh command line can return non-zero status even when it actually sets a label. So, as a result, daily runs of the scheduled task would print a bogus error line, even if the label is applied successfully. Fixed by removing the error status line and the counter. --- .github/workflows/label_recent_prs.yaml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/label_recent_prs.yaml b/.github/workflows/label_recent_prs.yaml index ed09a1e95c318..b7c188f811a52 100644 --- a/.github/workflows/label_recent_prs.yaml +++ b/.github/workflows/label_recent_prs.yaml @@ -22,7 +22,6 @@ jobs: run: | REPO=MariaDB/server set -euo pipefail - nfailed=0 # List first 200 PRs lacking classification labels as JSON gh pr list \ @@ -73,10 +72,7 @@ jobs: echo "Applying label [$label] to PR#[$pr_number] by [$author]" - if gh issue edit "$pr_number" \ + gh issue edit "$pr_number" \ --repo "$REPO" \ - --add-label "$label"; then - echo "**FAILED applying label [$label] to PR#[$pr_number] by [$author]" - nfailed=$((nfailed + 1)) - fi + --add-label "$label" done