Hacker News new | past | comments | ask | show | jobs | submit login
Will your PR get merged? (merge-chance.info)
45 points by mooreds on Jan 18, 2021 | hide | past | favorite | 11 comments



As discussed in earlier submissions [1], this approach does not account for spam PRs, projects that close PRs to move discussion elsewhere, or other PR closures that are not about rejecting code.

[1]: https://news.ycombinator.com/item?id=25822408


I am working on addressing that. So far spam detection is the most difficult one. Ignoring PRs that were closed by the author themselves or changed readme.md helps but is obviously not enough.


~~Yikes, 0% for golang https://merge-chance.info/target?repo=https://github.com/gol...

In fairness a decent chunk of the rejected PRs are low effort / not acceptable things.

EDIT: Ah a more plausible reason, it seems the PRs get merged at googlesource and the bot closes them on github


There is more repos like this and it is hard to detect them. Especially that sometimes they do have some actual merged PRs in GitHub for some special circumstances (for instance bazelbuild).


recent Show HN: https://news.ycombinator.com/item?id=25613355

recent submission of an example with a bunch of discussion about the approach: https://news.ycombinator.com/item?id=25719116


It would be nice to further analyse the merge factor: Very often there are a handfull maintainers but a bigger team working on the project (or close circle). It would be nice to cluster the prs by people (many prs, medium prs, few prs). Because if i want to submit a pr it does may make a difference whether i am a very regular contributor or want to submit just this time because i found a bug.


This is an interesting idea. There certainly are pretty crisp modes in distribution. In a typical company backed project some devs will make and merge multiple PRs a month while outsiders will make a couple PRs in total out of which one or two get merged.


I have a checklist for frontend dev that I run through before submitting PRs - https://gist.github.com/onion2k/8615d92178f9d1eb2d162da69495... - it doesn't improve the quality of a feature but it stops my PRs being returned for silly problems. I can highly recommend writing your own.


Seems to not work on `ansible-collections/google.cloud` for some reason?


There was not enough outsiders PRs among recent prs. It will be possible to check this one after I deploy new version with improved methodology.


What the actual... why is this on the first page?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: