From 0ac7134968c8cf7bb2ce36076bf93ab79a150603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Maro=C5=A1i?= Date: Thu, 13 Apr 2023 13:58:05 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ecfd974c..cfc4580c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,8 +3,7 @@ name: CLOSE_PRS on: pull_request_target: - types: - - opened + types: [opened, reopened] branches: - "*" env: @@ -16,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v3 - name: Close Pull Request - if: "!contains(github.event.head_commit.message, 'qaprodauth')" + if: "!contains(github.event.pull_request.labels.*.name, 'qaprodauth')" uses: superbrothers/close-pull-request@v3.0.0 with: comment: "This repository is no longer used for modules and navigation files changes. Please chek the repository [Readme](https://github.com/RedHatInsights/cloud-services-config/blob/ci-beta/README.md#exclamation-this-repo-is-no-longer-used-a-source-of-config-files-for-hcc-exclamation) details."