-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add BranchPushIndividually
repo config
#374
Conversation
d7ee1b8
to
6a2e47b
Compare
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.
Thank you for contributing!
Looks good.
Can you combine the two commits to a single commit please.
readme.md
Outdated
@@ -167,6 +167,7 @@ User specific configuration is saved to .spr.yml in the user home directory. | |||
| forceFetchTags | bool | false | also fetch tags when running 'git spr update' | | |||
| branchNameIncludeTarget | bool | false | include target branch name in pull request branch name | | |||
| showPrTitlesInStack | bool | false | show PR titles in stack description within pull request body | | |||
| batchPushAtomically | bool | true | push all commits in a batch atomically | |
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.
Can you call this branchPushIndividually and have the default false
8d9e802
to
a07ceba
Compare
BranchPushIndividually
repo config
a07ceba
to
4dc3bf1
Compare
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.
unit tests failing because of a missing --atomic flag in the atomic case.
I don't think you need the --atomic flag in the individual case.
Instead of always pushing branches atomically (which can result in timeouts in larger and slower monorepos), add a BranchPushIndividually repo config setting which enables pushing each branch one at a time.
4dc3bf1
to
89b3201
Compare
released in v0.14.7 |
Problem
Atomically pushing all stacked branches at once can fail in larger and slower monorepos with pre-commit hook timeouts e.g.
Solution
Instead of always pushing branches atomically (which remains the default), add a
BranchPushIndividually
repo config setting which can be set to true to push each branch one at a time e.g.