-
Notifications
You must be signed in to change notification settings - Fork 381
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
Error exit when DEFAULT_BRANCH is empty, despite BRANCH_HISTORY being set to last #243
Comments
The quickest fix is to set the env var DEFAULT_BRANCH with whatever is the default branch, main master, other |
Can you share the debug logs as well and what merge strategy are you using? |
having the same issue, please fix ASAP |
@stefano-elysium can you please share the debug logs. Hard to understand why the var is empty for your use case without logs. |
Agree we can put in the Debug logs:
Let me know if I can get you information otherwise. |
Our merge strategy is a little complex; we have |
Thanks for sharing the merge strategy details. |
Things look like they're working, thanks again |
Hi @sbe-arg, I also tested the new version but still found some issues: I always use the rebase and merge pattern with the following workflow trigger:
|
Whats the problem then? Documentation in the readme? Cc @sammcj |
I would say the issue is the documentation (see fatal error) and how the tool works on rebase and merge in general. The full commit history check does not work if I rebase and merge. I didn't test with normal merge commit workflow but I guess as most users use this pattern (I guess you as well) you would have seen many people complaining 🙂. |
Mind opening a pr with the readme improvements? @TobiWo |
Hi @sbe-arg sorry for the super late reply. However, I just want to comment on your request: I'm working on my own open source tool like you guys so I actually do not have time to work here as well (although I really like this action). If I will try to improve the |
Hello,
It looks like #235 introduced an issue for us (as mentioned in the PR) - in our case, we have
BRANCH_HISTORY
set tolast
, but it's still erroring out due toDEFAULT_BRANCH
being empty.While theoretically
DEFAULT_BRANCH
should not be empty (looks like there's an issue with the symbolic-ref in our remote pointing to a non-existent branch (thanksmain
/master
)), the fact that we're usingBRANCH_HISTORY
set tolast
should ignore this exit error altogether -DEFAULT_BRANCH
is not used at all ifBRANCH_HISTORY
is set tolast
.Is there a way that we can avoid the
DEFAULT_BRANCH
check ifBRANCH_HISTORY
is set tolast
?The text was updated successfully, but these errors were encountered: