From bc728a753a8fa89bb12ca2a589d50a6d531d84fa Mon Sep 17 00:00:00 2001 From: Chris Farhood Date: Wed, 13 May 2026 12:32:51 +0000 Subject: [PATCH] fix(plugin-release): remove invalid --json flag from gh pr create The --json flag is not valid for gh pr create, only for read commands like gh pr list and gh pr view. This was causing the release workflow to fail with 'unknown flag: --json' in the Create PR step. The PR number is correctly retrieved on the line after via gh pr list, so no other change was needed. Co-Authored-By: Paperclip --- .github/workflows/plugin-release.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/plugin-release.yaml b/.github/workflows/plugin-release.yaml index 18ee49d..2372925 100644 --- a/.github/workflows/plugin-release.yaml +++ b/.github/workflows/plugin-release.yaml @@ -354,8 +354,7 @@ jobs: --title "release: v${VERSION}" \ --body "$BODY" \ --base main \ - --head "release/v${VERSION}" \ - --json number --jq '.number' + --head "release/v${VERSION}" # Pull the number again to handle both create and pre-existing cases OPEN_PR=$(gh pr list --base main --head "release/v${VERSION}" --state open --json number --jq '.[0].number' 2>/dev/null) else