From 0c8d0d579a1a59ce24e2622cadaa10216776aeea Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Wed, 19 Mar 2025 07:41:56 +0100 Subject: [PATCH] [github workflow] auto close issues about gitlab.freedesktop.org (#44454) --- .github/workflows/check_issues.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/check_issues.yml b/.github/workflows/check_issues.yml index 464f5b8c09..4c2de39420 100644 --- a/.github/workflows/check_issues.yml +++ b/.github/workflows/check_issues.yml @@ -44,6 +44,13 @@ jobs: return await commentLabelClose(body, "category:question"); } + // https://gitlab.freedesktop.org maintenance + reg = /error: https:\/\/gitlab\.freedesktop\.org\/.*: failed: status code 503/; + if (reg.test(issue_body)){ + let body = "gitlab.freedesktop.org is undergoing maintenance until 2025-03-22. Tracking issue https://github.com/microsoft/vcpkg/issues/44429" + return await commentLabelClose(body, "category:question"); + } + regs = [] // Issue text is: Copy issue body from .../issue_body.md regs.push( /^Copy issue body from .*issue_body.md$/ );