-
Notifications
You must be signed in to change notification settings - Fork 61
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
Automate changelog updates #533
Comments
Hi @MisRob. I understand that the team is yet to make decisions with regards to this issue, but it seems pretty interesting to me and I'd like to work on it if and whenever it is up for contributions. Please let me know if I can help with this one. Thanks :) |
I think we could make a special case for the dependabot PRs, and directly template the update to the CHANGELOG in the case of that specific user. |
@rtibbles What would we do if a developer needed to have some input into it? (e.g. marking a breaking change) Would they need to open another PR to update that changelog item? I am not sure how often that will happen though. Do you think that having an action add a comment on PRs wouldn't be helpful in this case? Originally, I suggested it to resolve the situation when people remove the changelog section from the PR description (happens) but then realized it could be applied to dependabot ones too. Reading your comment, for dependabot we could prefill the comment much more than for regular PRs. |
Thanks @KshitijThareja, that'd be lovely! I will let you know after we figure out details. Contributors sometimes have trouble with GH actions due to permissions, but you could play around with it in your own test repository. |
@rtibbles One disadvantage of using an automated comment is that contributors probably won't realize they need to fill it in. But well, each approach has its own issues, so not sure if it's such a big deal. Did you have any ideas how to deal with the deleted changelog section from the PR description? |
For dependabot, we can still manually edit the changelog after the fact, if it is breaking (on the PR itself). I think we could make the action still error if the information is not filled in? |
Oh wait, from the previous discussions, I thought that CHANGELOG.md should be updated after we merge the PR, because of the conflicts. So I assumed that and tried to be careful about making sure everything's in place before we merge. I am not sure if I understood it well now. |
Oh true - that would make it easier in general. Right, the dependabot would be a bit of an edge case, and we'd have to follow up after merge if it needed editing. We would probably want to fail if someone hadn't filled out the template in the PR though, as we want that filled in to make the automatic update. |
If we had an action that would post a comment to the PR with the changelog section (rather than having it in the PR description), than even on dependabot PRs we could still adjust it before merge. After the merge, an another action would take it and paste to the CHANGELOG.md. |
And external contributors couldn't remove this comment from regular PRs. So it'd solve missing changelog section. However, I'm not sure if they could edit it, actually... So perhaps it's a bad idea. |
By this you meant that we would update the current changelog check action to check for the presence of the changelog item in the PR description (rather than checking on CHANGELOG.md)? |
Yes. |
Okay, I will update the issue. I realized that the comment idea wouldn't work due to permissions for majority of PRs. Hopefully we won't have braking changes on dependabot PRs too often. And the template check will prevent from missing changelog item. So sounds like a path forward. Thanks for discussing. |
Updated! @rtibbles if you'd like to read through the final version, I'd appreciate it. |
@KshitijThareja After @rtibbles confirms, I think you'd be welcome to give it a try. Please let us know if it's all clear. GH actions development can be tricky, I heard :) As mentioned, my recommendation would be to try it on your own test repository to prevent from permissions troubles. |
Alright, we agreed this is ready to go. @KshitijThareja I updated the issue a lot. If you're interested, let us know and I can assign you. Thank you! |
Sure @MisRob, I'm interested in working on this issue. |
Thanks @KshitijThareja, I will assign you then. |
Hi @MisRob! |
Hi @KshitijThareja, thanks, that's wonderful |
Hi @MisRob |
Current workflow
CHANGELOG. md
. Otherwise, the changelog check action will fail on the PR and it can't be merged.Expected automated workflow
main
branch gets automatically updated with the changelog section from the just merged PR's decriptionThis will also mean that developers won't need to fill the PR number and link anymore since that could too be done by means of automation during updating CHANGELOG.md.
Benefits
Tasks
Guidance
The text was updated successfully, but these errors were encountered: