fix: git squash method no longer runs rebase#156
Conversation
In a pull request of mine, I encountered a scenario where the squash simulated merge was failing with decaf. However, the GitHub UI for the pull request did not indicate there were merge conflicts for the squash method, though it did for the rebase. This, to me, proves that the current implementation of squash does not actually match what GitHub does. Therefore, I suggest changing the behavior to a new implementation.
decafRunning deployments in test mode. Results will appear below. ...🟩 squash 🟩 merge method... 🚢 The next version of the project will be: 0.12.1 Learn moreLatest release: 0.12.0 Commit of latest release: 7a66814 Commits since last release: - fix: git squash method no longer runs rebase Related GitHub Issues<!-- Link to any related GitHub issues that this pull request addresses or closes. --> Problem<!-- A clear description of the problem that this pull request is solving. --> In a pull request of mine, I encountered a scenario where the squash simulated merge was failing with decaf. However, the GitHub UI for the pull request did not indicate there were merge conflicts for the squash method, though it did for the rebase. This, to me, proves that the current implementation of squash does not actually match what GitHub does. Therefore, I suggest changing the behavior to a new implementation. Solution<!-- Describe the approach you took to solve the problem and the changes made in this pull request. --> Implement Testing<!-- Choose one of the below options for how you tested the code change. Include any specific setup or instructions for testing. -->
Sure, there are automated tests, but this change must be tested in a real PR to validate that it's the correct command. I can verify that it did fix the problem I saw in the PR. It's a simple solution, so I feel good about it. Notes for reviewers<!-- If there is any additional information you would like to share with the person reviewing this pull request, please provide it here. --> Related GitHub IssuesProblem
SolutionBecause this is a one-off case for the logger and we dont want to modify Testing
Going to turn on debug mode for this PR and see if it works as expected. Notes for reviewers...🟩 rebase 🟩 merge method... 🚢 The next version of the project will be: 0.12.1 Learn moreLatest release: 0.12.0 Commit of latest release: 7a66814 Commits since last release: - fix: git squash method no longer runs rebase In a pull request of mine, I encountered a scenario where the squash simulated merge was failing with decaf. However, the GitHub UI for the pull request did not indicate there were merge conflicts for the squash method, though it did for the rebase. This, to me, proves that the current implementation of squash does not actually match what GitHub does. Therefore, I suggest changing the behavior to a new implementation. Related GitHub IssuesProblem
SolutionBecause this is a one-off case for the logger and we dont want to modify Testing
Going to turn on debug mode for this PR and see if it works as expected. Notes for reviewers |
Related GitHub Issues
Problem
In a pull request of mine, I encountered a scenario where the squash simulated merge was failing with decaf. However, the GitHub UI for the pull request did not indicate there were merge conflicts for the squash method, though it did for the rebase. This, to me, proves that the current implementation of squash does not actually match what GitHub does. Therefore, I suggest changing the behavior to a new implementation.
Solution
Implement
git merge --squashas the new solution.Testing
Sure, there are automated tests, but this change must be tested in a real PR to validate that it's the correct command.
I can verify that it did fix the problem I saw in the PR. It's a simple solution, so I feel good about it.
Notes for reviewers