24 ms·
From their example I think what the author means by "Never fix a bug and refactor in the same pull request" is actually "Never fix a bug and do unrelated refact
by craigmparis 4y ago
From their example I think what the author means by "Never fix a bug and refactor in the same pull request" is actually "Never fix a bug and do unrelated refactorings in the same pull request." Many times it is much easier to fix a bug or implement a feature if some refactoring is done first. In order to increase clarity in the following code review I recommend using short, descriptive commit messages following some type of standard. Two that I know of are Conventional Commits[1] and Arlo's Commit Notation[2].
[1] https://www.conventionalcommits.org/en/v1.0.0/ https://www.conventionalcommits.org/en/v1.0.0/
[2] https://github.com/RefactoringCombos/ArlosCommitNotation https://github.com/RefactoringCombos/ArlosCommitNotation