-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commit history and merging Pull Requests #6
Comments
I am not fully sure I understand the problem you are experiencing. We could try to rebase and squash commits before merging any pull requests so that every pull request is linked to a single commit in the correct chronological order. I am using GitKraken which provides a nice GUI for this. |
Yes I think too that rebase/squash is the way to go (also since with rebase one could combine multiple PRs if needed).
So far I've tried the first (CompatHelper PR #1) and the third (for #4) and the merges were a bit messy. |
Ah, I did not think about the mobile app. I could still squash the latest three commits of #4 on master although I see why it is preferable to do this before merging. Edit: Also I think we should try to continue not merging our own pull requests. This should make for a good code review workflow. |
Re squashing: this would be nice of you thanks. Re self-merging: makes sense. If there is something very urgent to be added immediately we can just push to master. Otherwise file a PR and wait for the other(s) to approve and merge. |
Yes, I don't think self-merging is bad in itself but we can try and avoid it where possible. Also I have now squashed the last commits |
When merging #7 through the Website I encountered the same issue that you had. After merging the pull request both your commit and a merge commit showed up in the history. I am pretty sure that there is a better way of doing this than manually squashing the commits afterwards. Edit. I had the same issue as you when trying to merge multiple CompatHelper pull requests. It seems the proper way of doing this is to first resolve the conflicts and then to squash&merge. |
The following ways seem to be the best:
|
I've cleaned up the full commit history now following this (guide)[https://blog.nona.digital/cleaning-up-commit-history-with-git-rebase/amp/] and tried to get some structure into our commit-naming scheme. My suggestion would be to stick to the following conventions for commits:
|
Great. Let's keep this issue open for now until I manage to submit commits/PR using this convention. ;) It seems that the best way to deal with multiple ComaptHelper PRs is to create a combined one from scratch. This is probably more straightforward than merging multiple PRs and then squashing them. |
We also need to come up with a clean way of pushing pull requests to master to keep the history clean.
Seems like that two (of three) options on the Github-App doesn't work as I expect them to 🤔
Will try the last one and otherwise I won't merge anymore in the app.
The text was updated successfully, but these errors were encountered: