From 26c3a6e246a901f023740971c12fd7c5b6954d51 Mon Sep 17 00:00:00 2001 From: Steve Kim <86316075+sbSteveK@users.noreply.github.com> Date: Thu, 30 Jul 2026 14:17:19 -0700 Subject: [PATCH] regression labeler fix (#123) --- .github/workflows/ci.yml | 2 +- .github/workflows/issue-regression-labeler.yml | 12 +++++++----- composer.json | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7789604..5de4710 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -145,7 +145,7 @@ jobs: runs-on: macos-${{ matrix.version }} strategy: matrix: - version: [13] + version: [14] steps: # Force PHP to 8.0 # Doing this because tests fail in PHP 8.1 (default on macos Github Runner as of Dec 2021) diff --git a/.github/workflows/issue-regression-labeler.yml b/.github/workflows/issue-regression-labeler.yml index bd00071..674cd7d 100644 --- a/.github/workflows/issue-regression-labeler.yml +++ b/.github/workflows/issue-regression-labeler.yml @@ -12,8 +12,7 @@ jobs: - name: Fetch template body id: check_regression uses: actions/github-script@v7 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + env: TEMPLATE_BODY: ${{ github.event.issue.body }} with: script: | @@ -24,9 +23,12 @@ jobs: - name: Manage regression label env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + IS_REGRESSION: ${{ steps.check_regression.outputs.is_regression }} + ISSUE_NUMBER: ${{ github.event.issue.number }} + REPO: ${{ github.repository }} run: | - if [ "${{ steps.check_regression.outputs.is_regression }}" == "true" ]; then - gh issue edit ${{ github.event.issue.number }} --add-label "potential-regression" -R ${{ github.repository }} + if [ "$IS_REGRESSION" == "true" ]; then + gh issue edit "$ISSUE_NUMBER" --add-label "potential-regression" -R "$REPO" else - gh issue edit ${{ github.event.issue.number }} --remove-label "potential-regression" -R ${{ github.repository }} + gh issue edit "$ISSUE_NUMBER" --remove-label "potential-regression" -R "$REPO" fi diff --git a/composer.json b/composer.json index 13e7ac6..3a3bab7 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,7 @@ "php": ">=5.5" }, "require-dev": { - "phpunit/phpunit":"^4.8.35||^5.6.3||^9.5", + "phpunit/phpunit":"^4.8.35||^5.6.3||^8.5||^9.5", "yoast/phpunit-polyfills": "^1.0" }, "autoload": {