Content-Length: 2420 | pFad | http://github.com/github/github-mcp-server/pull/588.diff

thub.com 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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/github/github-mcp-server/pull/588.diff

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy