-
Notifications
You must be signed in to change notification settings - Fork 18
Advise to do fast forward merges for PRs and production #86
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
base: master
Are you sure you want to change the base?
Conversation
With instructions and examples.
|
|
||
| ## Git workflow | ||
|
|
||
| 1. Merge pull requests to master without merge commits to keep a less |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are branch protection rules in GitHub, I enabled:
"Require linear history
Prevent merge commits from being pushed to matching branches."
This should take care of this as far as I understand and also allow to use the web interface instead of git commands.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also adjusted the setting for the merge button to only allow rebase. The branch protection rule should probably also be added for production.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tyll, thanks, will it perform a fast-forward merge or do a rebase resulting in a new commit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be a fast-forward merge
|
Btw. I guess it would also make sense to rename master to staging, so there are only staging and production branches with less ambiguity for the master branch. |
The team thought it was clear that |
This describes my observation: Since this defines the meaning of "master" only by the presence of the other branch as in 'if there is another branch called "production", this means that "master" is probably not production but development' but it is not clear by looking at master by itself. |
|
So can we merge this PR? lgtm |
jharuda
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jharuda @xjezda00 @ukulekek what is your usual naming of branches, are you typically using |
|
@pcahyna I usually use staging (testing) -> master (==production meaning) branches or staging (testing) -> production branches style. So at this point I agree with Tyll. But in our use-case there is no need to rename branches because Test-harness user still needs to read the documentation and after that he knows that master is staging (development) branch. |
Which is what we used to do until it was suggested that instead we use master branch==staging environment and production branch==production environment - #80 . . .
I really don't care what we use at this point - I don't think there is a "One True Way To Do It" that everyone (now, and in the future) will agree on - so we just need to pick something reasonable and move on. |
Use staging/production makes it explicit/unambiguous and does not rely on anyone needing to remember which special meaning "master" has, therefore I am in favor of this. |
|
I think this is ready to be merged (after rebase) |
With instructions and examples.