Fix “unknown repository” of an opened PR after deleted the fork

后端 未结 3 454
抹茶落季
抹茶落季 2021-02-02 13:06

I have the following scenario:

  • Created a fork of a github repository
  • Submitted a pull request (still opened)
  • Deleted the fork

Now,

相关标签:
3条回答
  • 2021-02-02 13:56

    If your pull request is open from long time, then repository will show "Unknown repository". So, close previous open pull request/ or do again pull request for previous change. Then you can see your name for latest pull request.

    0 讨论(0)
  • 2021-02-02 14:02

    You can reclaim orphaned pull requests as

    git fetch <remote> refs/pull/<pr_number>/head:<local-branch>
    
    git checkout <local-branch>
    
    0 讨论(0)
  • 2021-02-02 14:04

    Unfortunately it looks like your pull-request will remain an orphan.

    See this (still unresolved) thread: https://github.com/isaacs/github/issues/168

    Probably the best thing to do would be to re-clone the repo, re-create your pull-request, delete the existing pull-request, and submit a fresh one.

    Also, add a "thumbs up" to tohe issue so in the future there can be a more straight-forward solution to this problem.

    0 讨论(0)
提交回复
热议问题