From 7ec1dd5948dddcfbb767a5f7ca2026e946fc084a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nacho=20Codo=C3=B1er?= Date: Mon, 30 Mar 2026 14:17:57 +0200 Subject: [PATCH] add `checkout:pr` npm script and update documentation usage --- CONTRIBUTING.md | 2 +- DEVELOPMENT.md | 8 ++++---- package.json | 3 ++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 40ac2548f1..04902faabf 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -58,7 +58,7 @@ Current Reviewers: To quickly check out a PR branch from a fork for local testing, see the [Testing a fork branch](DEVELOPMENT.md#testing-a-fork-branch) section in `DEVELOPMENT.md`, or run: ```sh -node scripts/checkout-pr.js https://github.com/meteor/meteor/pull/ +npm run checkout:pr -- https://github.com/meteor/meteor/pull/ ``` #### Core Committer diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 9c5c216561..80f6cbf585 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -70,13 +70,13 @@ When reviewing a pull request or testing changes from a contributor's fork, use ```sh # From a PR URL (requires gh CLI or falls back to GitHub API via curl) -$ node scripts/checkout-pr.js https://github.com/meteor/meteor/pull/ +$ npm run checkout:pr -- https://github.com/meteor/meteor/pull/ # From a user:branch shorthand -$ node scripts/checkout-pr.js : +$ npm run checkout:pr -- : -# From a full fork repo URL and branch name -$ node scripts/checkout-pr.js +# From a full fork repo URL and branch name (HTTPS or SSH) +$ npm run checkout:pr -- ``` The script will: diff --git a/package.json b/package.json index 9c096fcd0a..6c4f6cc640 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,8 @@ "test:unit": "cd tools/unit-tests && npm test", "test:idle-bot": "node --test .github/scripts/__tests__/inactive-issues.test.js", "install:e2e": "cd tools/modern-tests && npm install && npx playwright install --with-deps chromium chromium-headless-shell", - "test:e2e": "cd tools/modern-tests && npm test -- " + "test:e2e": "cd tools/modern-tests && npm test -- ", + "checkout:pr": "node scripts/checkout-pr.js" }, "jshintConfig": { "esversion": 11