如果 github 上某个存储库的所有者已停止在某个项目上工作,但我想为它做贡献怎么办?

What if the owner of some repository on github has stopped working on some project but I want to contribute to it?

我最近喜欢 Github 上的一个存储库。我提出了一些拉取请求,但存储库的所有者已停止在该存储库上工作。我的拉取请求保持打开状态。他最后一次提交是在两年前。遇到这种情况怎么办?我不希望我做了很多更改和新增内容,但它仍然只显示在我的回购协议中。我应该创建一个新的存储库吗?

这是my工作流程:

  • 继续维护你的分叉。
  • Ping 所有者几次(使用 @owner-username)。也许他只是因为某种原因错过了你的拉取请求。
  • 如果一段时间后您没有收到任何反馈,我建议您通过删除您的分支存储库将您的分支转换为源代码存储库(这将 不是 close/delete 拉取请求)并将你的分支存储库推送到那里:

    cd your-fork
    git remote set-url origin http://github.com/your-username/repo
    git push --all
    

    我更喜欢来源而不是 fork,因为 fork 有一些限制(例如,您不能在 fork 中搜索代码)。

  • 最后,最好补充一点,您的存储库是未维护存储库的延续。

正如其中一条评论所建议的那样,继续在您的叉子上工作,它可能会成为特定事物的实际版本。

我想我会为在这里搜索该土地的人添加一个额外的答案,因为 Github 最近添加了一个新功能,可能没有时间积极开发他们开始的东西的维护者可以利用:archiving.

来自博客post:

Archiving a repository makes it read-only to everyone (including repository owners). This includes editing the repository, issues, pull requests, labels, milestones, projects, wiki, releases, commits, tags, branches, reactions and comments. No one can create new issues, pull requests, or comments on an archived repository, but you can still fork archived repositories—allowing development to continue elsewhere for archived open source projects.

To archive a repository, go to your Repository Settings Page and click Archive this repository.