From 2f7f3834b6cad84eee46cc3ee09b85101c885878 Mon Sep 17 00:00:00 2001 From: Otto Richter Date: Fri, 1 Nov 2024 14:36:37 +0100 Subject: [PATCH] Revert "chore(ci): Enforce test label with CI check" This reverts commit 5da7f07fbea25a83a15f13241039f5fedbda51de. The status check patterns are not updated correctly, so this change adds mainly confusion and little value. See https://codeberg.org/forgejo/forgejo/pulls/5769 --- .forgejo/workflows/merge-requirements.yml | 44 ----------------------- 1 file changed, 44 deletions(-) delete mode 100644 .forgejo/workflows/merge-requirements.yml diff --git a/.forgejo/workflows/merge-requirements.yml b/.forgejo/workflows/merge-requirements.yml deleted file mode 100644 index 43defb1322..0000000000 --- a/.forgejo/workflows/merge-requirements.yml +++ /dev/null @@ -1,44 +0,0 @@ -# Copyright 2024 The Forgejo Authors -# SPDX-License-Identifier: MIT - -name: requirements - -on: - pull_request: - types: - - labeled - - edited - - opened - - synchronize - -jobs: - testing: - runs-on: docker - container: - image: 'code.forgejo.org/oci/node:20-bookworm' - steps: - - name: Debug output - run: | - cat <<'EOF' - ${{ toJSON(github.event.pull_request) }} - EOF - - name: Missing test label - if: > - !( - contains(toJSON(github.event.pull_request.labels), 'test/present') - || contains(toJSON(github.event.pull_request.labels), 'test/not-needed') - || contains(toJSON(github.event.pull_request.labels), 'test/manual') - ) - run: | - echo "Test label must be set to either 'present', 'not-needed' or 'manual'." - exit 1 - - name: Missing manual test instructions - if: > - ( - contains(toJSON(github.event.pull_request.labels), 'test/manual') - && !contains(toJSON(github.event.pull_request.body), '# Test') - ) - run: | - echo "Manual test label is set. The PR description needs to contain test steps introduced by a heading like:" - echo "# Testing" - exit 1