Repository navigation
CI: add workflow to check if there is a changelog entry for dataviews - #71023
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
youknowriad
left a comment
There was a problem hiding this comment.
I love this, I actually wonder if we can make this more generic for all packages :P or maybe a fixed set of packages: block-library, blocks, block-editor, components, dataviews and a few others. It's less important for edit-something packages.
+1 for generic and optional workflow. It will make it easier to maintain. |
| ref: ${{ github.event.pull_request.head.ref }} | ||
| repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
| fetch-depth: ${{ env.PR_COMMIT_COUNT }} | ||
| show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} |
There was a problem hiding this comment.
Just a little late FYI: I believe GitHub Actions will correctly cast expressions to booleans without our needing to spell it out:
show-progress: ${{ runner.debug == '1' }}if not, there's also the fromJson builtin:
show-progress: ${{ fromJson( runner.debug == '1' ) }}Source: https://docs.github.com/en/actions/reference/workflows-and-actions/expressions
(No action needed here, @oandregal, just an FYI for the next time we touch this stuff. I don't like these DSLs, but we ought to learn them a little more.)
What?
This PR adds a check that fails if a PR touches code in
packages/dataviewsbut doesn't add a changelog entry. There's a few exceptions (storybook, tests).Why?
We want to be stricter in terms of what's documented in the Changelog.
How?
By creating a new workflow based on the existing
check-components-changelog.yml.Testing Instructions