Automattic / ad-code-manager

Easily manage the ad codes that need to appear in your templates
https://wordpress.org/plugins/ad-code-manager/
GNU General Public License v2.0
117 stars 51 forks source link

Automate changelog from release notes #153

Closed GaryJones closed 2 years ago

GaryJones commented 2 years ago

Props to @johnbillion for the work he had done on https://github.com/johnbillion/user-switching that this work is very minorly tweaked from.

Now instead of maintaining release notes in a CHANGELOG file or in the README, AND also in the GitHub release notes, it's now a single location (GitHub release notes).

The changelog.js workflow script can also be called locally, and this will do a one-time replacement of the HTML comment (for testing or removal of this automation). It needs a GitHub personal access token, and then call:

TOKEN=... GITHUB_REPOSITORY='Automattic/ad-code-manager' node .github/workflows/changelog.js
johnbillion commented 2 years ago

@GaryJones I had planned on converting this into a standalone composite action so it's reusable across repos but haven't gotten around to it. So if you find yourself twiddling your thumbs...

GaryJones commented 2 years ago

@johnbillion I did wonder if that was on your radar. Would make sense to do that. Not something I've created before.