-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add changelog generator script #19866
Conversation
As far as I'm aware of the intentions of the From what I can tell, the proposed changes would not be something that anyone would run in their own projects or plugins? Would it be possible (and would there be value) in letting people use this for their own projects? |
I wasn’t sure if this should live in scripts or not, fwiw, the script was originally built for WooCommerce Admin, ported to WooCommerce blocks and rebuilt there, and ported again to Gutenberg, with the hope of making it public, it’s not limited to WordPress projects, and not limited to Gutenberg, but can live with a dev suit kind of tools. |
I tried the script and probably I'm doing something wrong with the access token. I've added:
error:
|
Could we not just ask for the access token when the script is running? Just like the release script? |
Are you sure the token scope is correct?
Wouldn’t this mean you need to pass the token each time, potentially creating a new one each time? |
Ah, turned out I gave the wrong version number. I submitted "7.5" while it was expecting "Gutenberg 7.5". Should we omit "Gutenberg"? |
Due to the nature of the search, we need to provide the full name now, later we could use some kind of search, see @nerrad's #19866 (comment) |
Wouldn't it be more accurate to search commits (and relevant PRs) since between tags instead of milestones? |
What's holding us back here? |
ffc2a38
to
82cead3
Compare
Size Change: 0 B Total Size: 816 kB ℹ️ View Unchanged
|
I believe this command requires some refactoring (don't assume Gutenberg repo, read from package.json potentially and a good documentation about the guidelines to write PRs) in order to make it a generic command in the scripts package. I'm considering moving it to the top level (like bin/commander.js) for now in order to merge the PR as it's been used in a few releases already. |
It's mainly time (didn't find time to sit and update from upstream) and there are some points that need taking care of (like special handling of some labels), the goal was to make this as generic as possible so that we can integrate with it in woocommerce/woocommerce-gutenberg-products-block and plug in zenhub, but I think that refactor will take some time so we might as well just copy the source and have it here twice for now. The full source code: https://github.com/woocommerce/woocommerce-gutenberg-products-block/tree/master/bin/changelog If you want to take on this @youknowriad and merge as is, and I will move the rest of the logic from the original source in a follow up. |
I moved the script to the |
The error makes some mention of I'm a bit skeptical about pulling in the new
|
Utiltiies as separate scripts already
With optionally anonymous requesting
457c524
to
288e885
Compare
I've rebased the branch and made a handful of revisions. Main highlights:
Smaller maintenance items:
|
Ship it, let's iterate on follow-ups if needed. |
As I go through this process of preparing release notes, I've noted a few thoughts on potential follow-up tasks:
For reference, the release notes I ultimately compiled leading to the above observations: https://github.com/WordPress/gutenberg/releases/tag/v8.0.0-rc.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the ball rolling.
Description
This PR is still a draft, but it makes the script available to be used before we can land on something.
Screenshots
Types of changes
changelog
towp-scripts
.