From 7d3815dbb5f47d236de35cf91178fe466d83de2f Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Wed, 25 Nov 2026 21:52:03 -0600 Subject: [PATCH] Close pull requests targeting testing --- .github/workflows/auto_pr_review.yaml | 11 +++++++++++ prebuilt.json | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto_pr_review.yaml b/.github/workflows/auto_pr_review.yaml index 0d8f8cb07e..79a106729c 100644 --- a/.github/workflows/auto_pr_review.yaml +++ b/.github/workflows/auto_pr_review.yaml @@ -11,6 +11,17 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: + - name: Close pull requests targeting testing + if: github.repository == 'StarPilotHQ/StarPilot' && github.event.pull_request.base.ref == 'testing' + env: + GH_TOKEN: ${{ github.token }} + PR_NUMBER: ${{ github.event.pull_request.number }} + run: | + current=$(gh pr view "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --json baseRefName,state --jq '.baseRefName + ":" + .state') + if [ "$current" = testing:OPEN ]; then + gh pr close "$PR_NUMBER" --repo "$GITHUB_REPOSITORY" --comment 'Please retarget this pull request to `stable` and reopen it. Maintainers publish qualified changes to `testing`.' + fi + - uses: actions/checkout@v7 # Label PRs diff --git a/prebuilt.json b/prebuilt.json index 1e56d1f2b6..0639265c8e 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "167f0e5159b94b878faf96c30505f35697f53ccf0a8176c73fe6c35aa759de6d", "schema_version": 1} +{"protected_inventory_sha256": "095109bd607c71f3da345edb95bd99894c414cd096012d6cfe626c5c8cef5353", "schema_version": 1}