From 6e25e4098ea2a95b5ab678fa6812212da47a7ff7 Mon Sep 17 00:00:00 2001 From: Peter Downey Date: Fri, 27 Nov 2026 21:13:37 -0500 Subject: [PATCH] Drop VIP's deprecated DynamicCalls sniff; skip deleted branches The VIP job's ruleset loads WordPress-VIP-Go, which excludes WordPressVIPMinimum.Functions.DynamicCalls, then added the whole Functions category back, so every run printed VIPCS 3.1's deprecation warning for that sniff. It now names the category's other three sniffs. The findings on the plugin's files are the same before and after. Branch Cleanup failed after merges that had already deleted their branch. Like the other three plugin repositories, it now checks that the branch exists first, and treats a missing branch as done. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/branch-cleanup.yml | 16 +++++++++++++++- .github/workflows/wp-compatibility-test.yml | 4 +++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/branch-cleanup.yml b/.github/workflows/branch-cleanup.yml index e661db2..c697aab 100644 --- a/.github/workflows/branch-cleanup.yml +++ b/.github/workflows/branch-cleanup.yml @@ -42,9 +42,23 @@ jobs: exit 0 fi + # GitHub or Dependabot may have deleted the branch already. Only an + # existing branch is deleted; a lookup error still fails the job. + if git ls-remote --exit-code --heads origin "refs/heads/$BRANCH_NAME" >/dev/null; then + : + else + status=$? + if [[ $status == 2 ]]; then + echo "::notice::Branch is already deleted: $BRANCH_NAME" + exit 0 + fi + echo "::error::Could not look up branch: $BRANCH_NAME" + exit 1 + fi + # Attempt branch deletion. Quotes prevent injection. echo "Attempting to delete branch: $BRANCH_NAME" - if git push origin --delete "$BRANCH_NAME" 2>/dev/null; then + if git push origin --delete "$BRANCH_NAME"; then echo "::notice::Successfully deleted branch: $BRANCH_NAME" else echo "::error::Failed to delete branch: $BRANCH_NAME" diff --git a/.github/workflows/wp-compatibility-test.yml b/.github/workflows/wp-compatibility-test.yml index 27641b6..5aa65ea 100644 --- a/.github/workflows/wp-compatibility-test.yml +++ b/.github/workflows/wp-compatibility-test.yml @@ -445,7 +445,9 @@ jobs: - + + +