How to Tell if Pull Request Has Been Merged

Deadly 提交于 2019-12-12 14:24:18

问题


So my question was kind of addressed by this post, but I'm still a little confused. Basically, I'm checking out a repo on GitHub, and I see that there are currently 34 open and 173 closed pull requests. My current understanding is this:

  1. If somebody makes a stupid pull request, the maintainers will close it
  2. If somebody makes a legit pull request, the maintainers may merge it, at which point the request is closed
  3. If a request is open (legit or not) then that means the maintainers just haven't dealt with it yet (or are in the process of resolving conflicts)

However, a lot of the open requests in this repo are very old, even though they seem to make reasonable changes. This makes me wonder whether my 2nd assumption above is correct. So which is it, do pull requests close when they are merged, or do they remain open? And if they remain open, how can I tell that they were in fact merged, and aren't just in limbo?

Thanks in advance.


回答1:


Pull requests are closed automatically whenever the maintainer merge the changes through the web interface. If he merged using the command line, it will be closed as soon as he pushes the code back to Github.

So if a PR is still open, it means it is not merged.

Reference: Best-way-to-merge-a-github-pull-request




回答2:


A PR with Open tag simply means it is not merged. The tags are legitimate and have definite meaning. Merged means it has been merged and closed and Closed simply means it has been closed and the code has not been accepted.

However, if the repository owner or collaborator has merged the PR from command line, then it will not be reflected on the web interface unless he updates the repository.



来源:https://stackoverflow.com/questions/31212976/how-to-tell-if-pull-request-has-been-merged

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!