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
Revert log assignment #209
Conversation
0fcdee7
to
cc37235
Compare
@sbe-arg Does this change look valid? From my end this action at
|
The log is not related that output mismatch the log is limited to the last log in order to allow bumps only based on the merge-commit and not in the history was explained in here #199 and here #196 and we had the worst problem with tags is the tagging strangely overwrote 2 tags and deleted the related release with the assoc tag during the CI runs. So the tags had to be manually recreated. For this reason I strongly advice everyone to use https://github.com/sethvargo/ratchet Regarding the mismatch Ill have a look shortly |
Can you share your GA step config of this action. I don't really understand without context what happening but how did you endup in 2.1.0-development.0 from 2.0.4 by |
Thank you for your time @sbe-arg and apologies for the lack of info here initially. The bump was triggered from the
Here are the latest tags :
Action config:
When running the action with v1.52.0, this is the output generated:
You mention in #196 and here that this action now looks only for keywords in the merge commit. Additionally, the Pre-release setting now defaults to |
Ohhh I see, based on the merge strategy if using squash or rebase it will have 1 or 2 logs during merge but we only read the last one. The entire thing goes out of wak because we are skipping the commit message bump and is trying to apply the default Hopefully makes sense. But preferably we don't want to have the full log of the pr commits only the last few relevant ones. -2 -3 is acceptable. What if we change it to Sorry I missed this in my testing. |
@sbe-arg what about a scenario where I begin my branch with a minor version bump:
The log might look like:
Looking back only 1-2 commits is somewhat arbitrary and feels prone to inconsistency. Any new commits would be relevant. I have no preference in relying on the keyword in the merge commit only, but it feels like a breaking change that might qualify living in a V2. |
The idea is to bump only based on a decision made close to merge not at the beginning. If we want to maintain order and take only the last one we need a different approach. We can alternatively make it a new flag in the settings to fit more use cases. |
@sbe-arg Makes sense. I can relate to this scenario as we are currently trying to skip a |
Summary of changes
Revert
log
assignment to examine a range of commits. The existing command (git show -s --format=%s
) only shows a single entry:with fix (using
1.51.0
as a reference tag):Do any of the followings changes break current behaviour or configuration?
How changes have been tested
Execution in local bash shell
List any unknowns
n/a