question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`git-checkout-pr` should also work in closed PR or deleted fork

See original GitHub issue

Description

It seems the exclusion is due to implementation problem: ee2d9e6 (#3596)

I agree it would be rare, but chances are people need to checkout a closed PR in order to test it, base their work on it or whatever. GitHub doesn’t hide the “Code” dropdown on closed PR so I think we shouldn’t either.

Screenshot

No response

Example URL

https://github.com/sindresorhus/refined-github/pull/3759

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
cheap-glitchcommented, Nov 5, 2022

The current logic can be found here: ทำไมอ่าาาาา มีปัญหาเรอะ

Gotta say, this new version of TypeScript is looking a bit cryptic to me 😉

that table would also be good as a comment in the file itself

Which table?

2reactions
fregantecommented, Aug 22, 2021
```shell
git config --add remote.origin.fetch "+refs/pull/<pr number>/head:refs/remotes/origin/pr/<pr number>"
git pull origin
git switch --track origin/pr/<pr number>

Like!

Let’s ensure it’s pushable. We had some constraints when looking for the best/shortest commands, specifically to ensure that pushing also works (and maybe more). @kidonng refer to the original issue and PR.

Regarding this feature request, it makes sense for the simple reason that GitHub includes the Code dropdown on closed PRs too, so we should handle it the same way.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What happens to forks when a repository is deleted or ...
When you delete a private repository, all of its private forks are also deleted. Deleting a public repository. When you delete a public...
Read more >
How do I checkout a PR from a fork?
Basically the "upstream" GitHub repository provides direct access to the forks' PR branches (in read-only) so that you can fetch a given PR ......
Read more >
Pull requests advanced usage
Pull requests and discussions work the same for all the repo types. At a high level, the aim is to build a simpler...
Read more >
Should I keep my GitHub forked repositories around forever?
If you delete your fork before the PR is merged, not only will "unknown repository" be displayed as mentioned in previous comment but...
Read more >
DSpace Development with Git
This means you should fork our DSpace GitHub repository, adding your changes to a ... GitHub also has a ton of great guides...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found