-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yarn 1.X - Can't install Github Pull Requests anymore #4369
Comments
I can confirm. I'd also like add, it's not working for getting PR commit IDs either (like |
**Summary** Fixes #4369, a regression from previous refactor. Include `pull` requests in ref search and test for it later when it's called by github resolver. *BEFORE* ![before](https://user-images.githubusercontent.com/18429494/30309691-7aeabe2e-9741-11e7-8e34-c75413b83d99.png) *AFTER* ![after](https://user-images.githubusercontent.com/18429494/30309693-7dcc3528-9741-11e7-8a74-bc7585fd6177.png) **Test plan** Added a unit test in `git/git-ref-resolver.js`
@mtraynham @KristofMorva please see @arcanis' comment on the PR: #4411 (comment) Looks like it was intentional removing the PR support and I now remember having a similar discussion now. The reason was the |
I don't disagree, but I think you guys are missing a valuable feature of PRs when used this way; at least from my interpretation it seems like Github has implemented it this way. When a forked repo branches and creates a PR, referencing a forked branch is circumstance to being deleted and the git commit reference or branch alias could disappear (e.g. |
@BYK yes, it's true we can. For us, it's just more obvious that "we are waiting for this PR to be merged" instead of referencing a forked repo, and it's also easier to check if we can get back to the original repository because on the PR you see it's status, the fork is really uninformative. But it's only our case, we can adapt if this change was intentional :) |
Thank you both for the very informative answers!
I think this is a good-enough reason to keep it, what do you think @arcanis? |
**Summary** Fixes yarnpkg#4369, a regression from previous refactor. Include `pull` requests in ref search and test for it later when it's called by github resolver. *BEFORE* ![before](https://user-images.githubusercontent.com/18429494/30309691-7aeabe2e-9741-11e7-8e34-c75413b83d99.png) *AFTER* ![after](https://user-images.githubusercontent.com/18429494/30309693-7dcc3528-9741-11e7-8a74-bc7585fd6177.png) **Test plan** Added a unit test in `git/git-ref-resolver.js`
Note to future Google searches: I had permission issues on my ssh key which also gave this error. |
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Yarn 0.X allowed you to install PR commits by referencing the PR number. I've seen a few ways to do this, but it's always worked for me as:
yarn add angular-ui/ui-layout#228/head
Using 1.X, you now get:
If the current behavior is a bug, please provide the steps to reproduce.
yarn init; yarn add angular-ui/ui-layout#228/head
What is the expected behavior?
It installs the head commit of the Pull Request.
Please mention your node.js, yarn and operating system version.
Node 8.4
Yarn 1.0.1
Linux Mint 18.3
The text was updated successfully, but these errors were encountered: