From e8afc25c7176921b839cdd60d3c20d4a9169877a Mon Sep 17 00:00:00 2001 From: CaIon Date: Tue, 9 Sep 2025 23:23:53 +0800 Subject: [PATCH] chore: remove PR branching strategy workflow file --- .github/workflows/pr-target-branch-check.yml | 21 -------------------- 1 file changed, 21 deletions(-) delete mode 100644 .github/workflows/pr-target-branch-check.yml diff --git a/.github/workflows/pr-target-branch-check.yml b/.github/workflows/pr-target-branch-check.yml deleted file mode 100644 index e7bd4c81..00000000 --- a/.github/workflows/pr-target-branch-check.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Check PR Branching Strategy -on: - pull_request: - types: [opened, synchronize, reopened, edited] - -jobs: - check-branching-strategy: - runs-on: ubuntu-latest - steps: - - name: Enforce branching strategy - run: | - if [[ "${{ github.base_ref }}" == "main" ]]; then - if [[ "${{ github.head_ref }}" != "alpha" ]]; then - echo "Error: Pull requests to 'main' are only allowed from the 'alpha' branch." - exit 1 - fi - elif [[ "${{ github.base_ref }}" != "alpha" ]]; then - echo "Error: Pull requests must be targeted to the 'alpha' or 'main' branch." - exit 1 - fi - echo "Branching strategy check passed." \ No newline at end of file