Skip to content

Create make release-notes action #110

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

Merged
merged 8 commits into from
Jul 7, 2023
Merged

Create make release-notes action #110

merged 8 commits into from
Jul 7, 2023

Conversation

sydneysugar
Copy link
Contributor

Internal Notes for Reviewers

Created the generate_release_notes.py script and added action to makefile.

External Release Notes

@sydneysugar sydneysugar added the internal Not to be externalized in the release notes label Jul 1, 2023
@sydneysugar sydneysugar requested a review from nrichers July 1, 2023 00:21
Copy link
Collaborator

@nrichers nrichers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sydneysugar kudos on another great PR! I did some preliminary testing and had some suggestions, but overall this PR is very much on the right track. Way to go! I'm also impressed that you were able to find your way around PRs in GitHub and create a first version of this rather important docs infrastructure. 🎉🎉🎉

formatted_release_date = datetime.strptime(release_date, "%B %d, %Y").strftime("%Y-%b-%d").lower()
file.write(f' - text: "{release_date}"\n')
file.write(f' contents:\n')
file.write(f' - text: "Release Highlights"\n')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tested your PR, I noticed that the script also generates a highlight.qmd file, alongside this parent release notes topic with the date in it. I would perhaps omit creating this extra file and putting the release highlights right into the file you're creating here.

Not sure if you can further subdivide highlights by section, e.g. place anything from the validmind-python repo right into the ### ValidMind Developer Framework section, and anything from the frontend into the ### ValidMind Platform UI section. You would have to add the highlight label to test with these repos (e.g. create the label and add it to some of the PRs associated with the highlights from the June 22 release).

Here's what I got during testing and where the content should perhaps be moved to (if something doesn't fit into the latter two sections it just defaults to the first section).

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I tested your PR, I noticed that the script also generates a highlight.qmd file, alongside this parent release notes topic with the date in it. I would perhaps omit creating this extra file and putting the release highlights right into the file you're creating here.

PRs with the highlight label are now under '## Release highlights' in release highlights and 'highlight.qmd' no longer exists. I only addressed this part of the comment, since the additional repos are being dealt with in the followup story by Parris.

@nrichers nrichers requested a review from p-m-s-f July 6, 2023 17:02
@nrichers
Copy link
Collaborator

nrichers commented Jul 6, 2023

@p-m-s-f please test this PR locally as part of taking over from Sydney and approve if you think it's ready to be merged?

@p-m-s-f
Copy link
Contributor

p-m-s-f commented Jul 6, 2023

@nrichers sorry it took me a while to get around to taking a look, the script works fine as intended.

one thing i noticed, though, is that if you enter the release date without capitalizing the month, the title for the generated release notes will be in all lower case. i'm not sure if that's something @sydneysugar or i should fix before merging, or if we just have to be careful to always capitalize the month when entering the date.

image

Copy link
Collaborator

@nrichers nrichers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 🚀

@sydneysugar sydneysugar merged commit 6cefce8 into main Jul 7, 2023
@sydneysugar sydneysugar deleted the release-notes-script branch July 7, 2023 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Not to be externalized in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants