Loooking at the npm install docs it looks possible to npm install from a github repo.
Is it also possible to install specifically from a pull request?
Is the solution just to install based on the last commit (last sha) of the pull request?
Loooking at the npm install docs it looks possible to npm install from a github repo.
Is it also possible to install specifically from a pull request?
Is the solution just to install based on the last commit (last sha) of the pull request?
GitHub is maintaining a namespace for each PR in the original repo, so this works as well:
for example:
or with yarn:
for example:
Note that in Yarn case there is no
pull/
segment in the package identifier.This may be helpful if you need to automate the installation or repo / branch from where PR is originating is removed. See also Modifying an inactive pull request locally at GitHub.
"How to install NodeJS package from GitHub directly?" mentions that you can specify a branch.
So if you know the repo and branch from which a PR comes from, you can do a: