-
Notifications
You must be signed in to change notification settings - Fork 6
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
Wrong checkout branch in the changelog action? #597
Comments
Pinging @klmcadams @RobPasMue |
The [extra] cannot be done easily: actions/runner#1478 |
The reason why If you made In the case of a tag being created from a release branch, I think these would be the steps instead of cherry picking:
Also, I agree that waiting until the release is done before the PR is created would be tricky. We would need to add a step to the release actions to check for the PR branch in the repository, & if it exists, make a PR into main (or something like that) |
There might - I wouldn't perform this assumption @klmcadams - sometimes hot fixes are needed on release branches that are not reflected on
This is hard to control IMO - I would just "hold" merging it until the release is done so that you can close it in case something went wrong... You shouldn't be merging it until you are 100% sure your release went well - that's why we open a PR and not automatically merge to main @germa89 😄 |
I think your logic @klmcadams is right.. in theory, it should be OK.. but as @RobPasMue mentioned, sometimes you need to do small fix in release branches. Ofc this is not desirable, nor recommended, but sometimes you have to do it. |
Since #598 has been closed, how are we going to address this? |
Might be worth explaining it @klmcadams in tomorrow's meeting |
Or next week xDDD |
\begin{rant}
Sooo..... I have been having some issues with my release today (as always)....
I noticed, that:
actions/doc-deploy-changelog/action.yml
Lines 321 to 341 in d294898
The branch
pr_branch=maint/v${{ env.TAG_VERSION }}-changelog
is created FROMmain
. See:actions/doc-deploy-changelog/action.yml
Line 339 in d294898
I do not think it should be like that... it should be from the tagged branch (
release/v***
branch, ormain
if you are taggingmain
) to avoid conflicts in case you have to do quick commits to the release branch.You might think "it is a bad practice commit to release branch"... I know but sometimes it is needed.
Context
The begining.
I had changelog rendering issues because some PR title were:
Which of course, renders pretty badly in markdown... Don't blame me... it is MAPDL command style....
The "quick fix".
So I said... "OOkk.... The bot already opened the PR for the changelog in main, and I already merged it... okkkk well job German"....
(NOTE_1: can we change that?? to not open the PR updating main until the release is done?)....
I thought, "Ok... i will change quickly the markdown on the
release
branch, and I wil re-tag...." .. Oh man, I was naive.The disaster.
Because what I mention above... the
maint/v****-changelog
branch being created frommain
... I have cherry-picking conflicts....The solution.
I guess I could go to
main
, revert the changelog PR (to get back the changelog files), do the markdown changes there, and merge again inrelease
... but that will bring the full commit history with it (changelog PR and its revert)... a mess....\end{rant}
Requests
If possible, I would like to see the follwing changes:
maint/v${{ env.TAG_VERSION }}-changelog
from the tagged branch (release
ormain
)main
until the release is done.The text was updated successfully, but these errors were encountered: