I work in a small company, where I used to be the only developer. We recently welcomed a few other people on the team, and started thinking about how to organize development efforts.
I am pretty much a novice in terms of code management, as this is my first job out of college. As part of a test, I tried working using pull requests last week (we use GitLab). It made discussing code changes related to a single feature much easier, and I'd love to continue using them.
However, we found that there were tons of little improvements that by themselves didn't look worth a pull request. Typos, small comments, very small bug fixes, sometimes completely unrelated things we just noticed as we were implementing the large features.
How are those cases generally handled?
- Should we add "fix" commits directly on our
dev
branch? - Should we create and merge a PR with just one small fix?
- Should we group a bunch of those commits into one big "misc fixes" PR?
- (Added) Should we allow small commits at the beginning of each PR?
- Any other option?