-
Notifications
You must be signed in to change notification settings - Fork 201
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
Draft update clears the release notes body #474
Comments
The release notes generation is totally managed by GitHub, I'm just calling through to their API. It usually tries to diff from the last version so I'm guessing it's seeing your existing release and not seeing any change set. In any case nothing to really change in the action. Your best bet would be to manually create your release notes and attach them. |
@ncipollo well, no, that's not a proper resolution to the problem, but I understand you saying this is not generated on your side. It is still a bug though, maybe on the GH octokit side. FWIW, if #440 gets implemented, then this can be a workaround. |
Yeah - not really sure completely. The generate release notes is kind of a black box. If #440 would resolve this issue for you please feel free to drop your usecase in there so I can consider it when I get around to taking a look at that guy. |
Actually, I looked at it again and I'm not so sure, because if that would be the case, the same would happen in the UI. So I went ahead to one of my repos in the GH UI in the browser:
Can you point me to the relevant lines in your source code to try to replicate this behavior with curl GH API before I report a bug to them? |
For anyone ending up here, the workaround for this bug is currently to delete the release. This should be though reopened imo and either resolved internally (delete the draft before updating it) or upstream (finding the root cause). |
I'm creating a workflow that creates/updates a draft release on every push to the
dev
branch. In other words, every time a PR is merged todev
(without a tag yet created:THis part doesn't work, the draft release gets updated but the body of release notes gets cleared and is empty.
If the draft release is deleted manually and the workflow is re-run, then it again creates properly the draft.
The workflow:
As you see, the future tag is generated by the
[email protected]
action.Then, the release-action kicks in and correctly creates
1.0.0
release on the first run (when it does not exist) and the release notes are correctly generated.However, on a re-run of the same workflow, it updates the draft release and clears the release notes, they are just empty. If I delete the draft and re-run again, then again the body is correctly generated.
The text was updated successfully, but these errors were encountered: