Content-Length: 2774 | pFad | http://github.com/github/github-mcp-server/pull/588.patch
thub.com
From 4305a771d9f87536ad5c7fd84f7e2dba4a88998e Mon Sep 17 00:00:00 2001
From: Sam Morrow
Date: Thu, 26 Jun 2025 17:25:57 +0200
Subject: [PATCH] fix bug in creat PR code
---
.github/workflows/release.yml | 8 +++-----
.github/workflows/sync-next-branch.yml | 9 ++++-----
2 files changed, 7 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 72a9407eb..d75fb24e9 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -111,7 +111,7 @@ jobs:
TAG="${{ github.event.inputs.tag }}"
# Create PR from next to main
- PR_RESPONSE=$(gh pr create \
+ PR_URL=$(gh pr create \
--base main \
--head next \
--title "Release ${TAG}" \
@@ -123,11 +123,9 @@ jobs:
- [ ] Verify the release notes in the draft release
- [ ] Merge this PR after the release is published
- Created by the automated release workflow." \
- --json number,url)
+ Created by the automated release workflow.")
- PR_NUMBER=$(echo "$PR_RESPONSE" | jq -r '.number')
- PR_URL=$(echo "$PR_RESPONSE" | jq -r '.url')
+ PR_NUMBER=$(echo "$PR_URL" | sed 's|.*/pull/||')
echo "pr-number=${PR_NUMBER}" >> $GITHUB_OUTPUT
echo "pr-url=${PR_URL}" >> $GITHUB_OUTPUT
diff --git a/.github/workflows/sync-next-branch.yml b/.github/workflows/sync-next-branch.yml
index 863613021..f02e9cc29 100644
--- a/.github/workflows/sync-next-branch.yml
+++ b/.github/workflows/sync-next-branch.yml
@@ -85,7 +85,7 @@ jobs:
AHEAD_COUNT="${{ steps.branch-status.outputs.ahead-count }}"
# Create PR from main to next
- PR_RESPONSE=$(gh pr create \
+ PR_URL=$(gh pr create \
--base next \
--head main \
--title "Sync next branch with main" \
@@ -106,11 +106,10 @@ jobs:
> **Note**: This PR was automatically created by the daily branch sync workflow.
> If you have any concerns about these changes, please review them carefully before merging." \
--label "automated" \
- --label "sync" \
- --json number,url)
+ --label "sync")
- PR_NUMBER=$(echo "$PR_RESPONSE" | jq -r '.number')
- PR_URL=$(echo "$PR_RESPONSE" | jq -r '.url')
+ # Extract PR number from URL (e.g., https://github.com/owner/repo/pull/123 -> 123)
+ PR_NUMBER=$(echo "$PR_URL" | sed 's|.*/pull/||')
echo "pr-number=${PR_NUMBER}" >> $GITHUB_OUTPUT
echo "pr-url=${PR_URL}" >> $GITHUB_OUTPUT
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/github/github-mcp-server/pull/588.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy