This document describes the process you can follow to test any of the "NPM-installable" projects, including Alloy and the CLI. While you could test PRs for the Titanium SDK itself, that would also involve Building the Titanium SDK From Source which is covered elsewhere in the documentation.
- Fork the Alloy project to your GitHub account.
- Clone your fork the project repo to a local directory. For example, for Alloy you would use
(you can't do this with your fork of the project)
- In the resulting directory, open the .git/config file in your text editor.
- Follow the instructions at https://help.github.com/articles/checking-out-pull-requests-locally to modify your git configuration to support fetching pull requests
If you're a GitHub for Mac (or Windows) userusers, you can 'll see a button to check out PRs the PR directly from the GitHub repo page. See This will work only if you have write access to the repo. (You can check out https://github.com/blog/1582-checking-out-pull-requests for more details. For ) Sorry, you're going to have to use the command-line warriors, follow these stepsfor this:
- Update your local repo with
git fetch origin(which will also fetch all the PRs).
- Check out the specific PR using
git checkout pull/origin/999 -b 999where 999 is the PR number (the -b 999 creates a new local branch named after the PR)
- Install from your local branch: [
npm install -g .(with the dot at the end). You’re ready now to do your testing, etc.