Skip to content

CI: add workflow to check if there is a changelog entry for dataviews - #71023

Merged
oandregal merged 1 commit into
trunkfrom
update/checks-changelog-dataviews
Aug 4, 2025
Merged

oandregal merged 1 commit into
trunkfrom
update/checks-changelog-dataviews

Conversation

@oandregal

@oandregal oandregal commented Aug 1, 2025 •

Copy link
Copy Markdown
Member

What?

This PR adds a check that fails if a PR touches code in packages/dataviews but 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

@oandregal
oandregal requested a review from desrosj as a code owner August 1, 2025 14:34
@oandregal oandregal self-assigned this Aug 1, 2025
@github-actions

github-actions Bot commented Aug 1, 2025 •

Copy link
Copy Markdown

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 props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: oandregal <oandregal@git.wordpress.org>
Co-authored-by: youknowriad <youknowriad@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@oandregal oandregal added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Aug 1, 2025

@youknowriad youknowriad left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@oandregal
oandregal enabled auto-merge (squash) August 1, 2025 14:53
@Mamaduka

Mamaduka commented Aug 4, 2025

Copy link
Copy Markdown
Member

I love this, I actually wonder if we can make this more generic for all packages

+1 for generic and optional workflow. It will make it easier to maintain.

@oandregal
oandregal merged commit 0dbc7c3 into trunk Aug 4, 2025
@oandregal
oandregal deleted the update/checks-changelog-dataviews branch August 4, 2025 08:15
@github-actions github-actions Bot added this to the Gutenberg 21.4 milestone Aug 4, 2025
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' }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants