Skip to content

Conversation

@mcsf
Copy link
Contributor

@mcsf mcsf commented Nov 11, 2025

Feel free to close if useless!

Noticing the problem in #220, I drew inspiration from one of Gutenberg's workflows to add a workflow that will fail if docs/bin/manifest.json needs to be regenerated.

It does this by running the docs:manifest composer script and verifying that the manifest has not changed. If it has, something is wrong with the branch, and the developer is told to manually generate the docs. I prefered the manual approach for several reasons, one of which is to avoid "magic" and instead teaching/reminding the developer of processes.

I attempted to fit into the style and practices of this repo's other workflows, but I may be wildly wrong. I'll also let you folks label this as you see fit. :)

@github-actions
Copy link

github-actions bot commented Nov 11, 2025

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.

Core Committers: Use this line as a base for the props when committing in SVN:

Props mcsf, priethor.

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

@codecov
Copy link

codecov bot commented Nov 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (trunk@93776c0). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             trunk    #232   +/-   ##
=======================================
  Coverage         ?   1.17%           
  Complexity       ?    4416           
=======================================
  Files            ?     261           
  Lines            ?   27017           
  Branches         ?       0           
=======================================
  Hits             ?     318           
  Misses           ?   26699           
  Partials         ?       0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@@ -0,0 +1,40 @@
name: Keep docs manifest up to date
on:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The on config here is what diverges the most from the other workflows. Initially, based on Gutenberg's components-changelog workflow, I wanted this check to be more conservative.

But now that I look at it again, and given the approach I finally took, maybe it should be the same as in the others. Thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good to me like this. What do you think could be different?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't sure about the preferences — if any — for the branches property, nor about which workflows should also run on push events. But I'm about to push a simplification here, limiting the workflow to pull_request events and looking more like other workflows.

Copy link
Contributor

Choose a reason for hiding this comment

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

Pull request events sound good, regenerating the manifest should be enforces for PRs that target trunk 👍

@mcsf mcsf force-pushed the add/ci-check-docs-manifest branch from b98bd96 to b4cbd29 Compare November 11, 2025 20:46
@mcsf mcsf force-pushed the add/ci-check-docs-manifest branch from b4cbd29 to 174afad Compare November 11, 2025 20:49
Copy link
Contributor

@priethor priethor left a comment

Choose a reason for hiding this comment

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

Love to see this!

@@ -0,0 +1,40 @@
name: Keep docs manifest up to date
on:
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks good to me like this. What do you think could be different?

@mcsf mcsf merged commit ac3055a into trunk Nov 12, 2025
8 checks passed
@mcsf mcsf deleted the add/ci-check-docs-manifest branch November 12, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants