automattic / vip-build-tools
A collection of helpful build scripts for the WordPress VIP staff.
Installs: 3 905
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 9
Forks: 1
Open Issues: 1
Requires
- erusev/parsedown: ^1.7
Requires (Dev)
This package is auto-updated.
Last update: 2024-10-30 15:54:29 UTC
README
A collection of helpful scripts to be used in CI jobs.
Prerequisites
Make sure you have composer installed.
Install
To get setup run the following command in the vip-build-scripts
directory:
composer install
Script: Changelog
Extracts changelog information from the last closed Pull Request description and sends a request to a WordPress posts endpoint.
Options
Environment Variables
Most of these variables are already built-in by CircleCI.
CHANGELOG_POST_TOKEN
can be generated using a helper app like https://github.com/Automattic/node-wpcom-oauth (example instructions)
Usage Example
An example CircleCI Workflow is available here.
The example does NOT have a valid WP TOKEN so no entry will be published.
To run the example you can use circleci-cli: circleci local execute --job create-changelog-draft --config examples/changelog-circleci-config.yml