Skip to content
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

Allow global option for failing if branch isn't up to date with the source branch #23

Open
jlaustill opened this issue Feb 27, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jlaustill
Copy link

Is your feature request related to a problem? Please describe.
Yes, when we rolled gitstream out our devs were creating PR's against stale source branches that didn't have the gitstream file. This will be a recurring issues as we roll out new versions of the gitstream file as well. We would like to start depending on gitstream to enforce certain behaviors, but we need to be able to depend on it. This would be a healthy behavior to start with I think.

Describe the solution you'd like
At the time a dev pushes and update to or creates a PR, if their branch isn't up to date with the source branch, simply fail and don't even look for the gitstream file with an appropriate message. Thus ensuring the most update to date gitstream file is always used.

Describe alternatives you've considered
The only other alternative I found was requiring fast forward merging in github, but this has the downside that devs have to constantly merge the last from the source branch to be able to merge.

Additional context
I feel like this feature would be a require fast forward merging "lite" where it only enforces it at the time of the push, but anything merged after that point to the source branch wouldn't block from merging unless there were conflicts.

@jlaustill jlaustill added the enhancement New feature or request label Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant