montrealrb / playbook

Be part of the Ruby and Rails community in Montreal with our playbook!
http://www.montrealrb.com/
4 stars 0 forks source link

Reviewing PR's #1

Open nicholasjhenry opened 8 years ago

nicholasjhenry commented 8 years ago

Some ideas I had today while working with PR's, will transfer them to a checklist:

benichu commented 8 years ago

Good stuff, that also make me think about the step before that:

  1. how do we know what is to be reviewed, for example: If I look at the pull requests list, how do I immediately know which one I can take care of and if everything is fine with it, merge.
  2. how do we enforce having a main code-reviewer on the PR

And also, before merging, I think we should ask people to squash their commits (ex: Rails: http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#issue-a-pull-request 5.17.1)

cawel commented 8 years ago

Good stuff indeed. I think there should also be some guidelines for code reviews (which may or may not be a different thing than what is done before merging into master). My thoughts in bulk, touching on less technical aspects:

This project is not some product made within some entrepreneurial context, where productivity is often a primary factor. Rather, I think this project's codebase should ultimately be revered as an example of clean and maintainable code – and code reviews are instrumental in meeting that objective – made by cool people :sunglasses: Nothing less :)

benichu commented 8 years ago

I totally agree with @cawel about the educational aspect of code-reviews and encouraging any level of code-reviewers to participate. That's also why I am definitely not trying to enforce what I think is a very good git workflow in a professional context (briefly described here: https://github.com/montrealrb/Montreal.rb/pull/137#issuecomment-162263924)

We just need to find the right balance between keeping the project realistically manageable by the maintainer's, easy to contribute and discuss by the contributors but at the same time by making sure that pull requests do not stay open too long because we haven't made the merging process/responsibility clear enough.

karimmtarek commented 8 years ago

I know this might be irrelevant to this discussion, but I think using sometging like https://reviewable.io/ or similar code review services would make the code review process a bit more manageable.