Skip to content

Commit a9b6ac7

Browse files
Fix CI git install test for fork PRs
Use `github.event.pull_request.head.repo.full_name` to correctly reference the fork repository when testing git installs from PRs. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0b8ec0e commit a9b6ac7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
mkdir test-project
145145
cd test-project
146146
npm init -y
147-
# Install from the PR branch
148-
npm install "git+https://github.com/${{ github.repository }}#${{ github.head_ref || github.ref_name }}"
147+
# Install from the PR branch (use head repo for fork PRs)
148+
npm install "git+https://github.com/${{ github.event.pull_request.head.repo.full_name || github.repository }}#${{ github.head_ref || github.ref_name }}"
149149
# Verify the package is usable (ESM import)
150150
node --input-type=module -e "import { App } from '@modelcontextprotocol/ext-apps'; console.log('Import successful:', typeof App)"

0 commit comments

Comments
 (0)