-
Notifications
You must be signed in to change notification settings - Fork 204
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
Abort release if new commits detected upstream #1418
Comments
@jrschumacher I recreated the issue without the screenshot of the leaked token. Forgot what the title was though |
🤦♂️ thanks it's been a long day. If you point me to the right file I'll investigate adding the check and error. I looked in core but didn't see where the push was happening. |
Is this repo public? I can poke around. |
Where are the logs for this. Currently we do have code that will abort the release if we detect this situation auto/packages/core/src/auto.ts Lines 402 to 438 in d419b17
docs for the ls-remote command: https://riptutorial.com/git/example/1486/ls-remote So the only way I could see this happening is if you merged 2 PRs at the exact right time. The hook order goes like:
|
Let me see if I can create a repeatable scenario and provide logs. |
I see what's happening. You use
My recommendation would be to run your build then run |
I will update this doc and warn about this type of situation. |
Gotcha. So if I move it to |
yup that would work too! |
Thanks so much for this great tool and the support. |
Thanks for using |
I'm gonna close this issue. If you find this is still happening feel free open another issue. |
Is your feature request related to a problem? Please describe.
When running
auto shipit
frommaster
which is not at the same commit of the remote an error will occur when the version bump and changelog commits are pushed.Describe the solution you'd like
Detect the issue prior to git and give an instructive error.
Describe alternatives you've considered
Checkout the local baseBranch and git pull from remote.
The text was updated successfully, but these errors were encountered: