Repository navigation
feat(data-machine-business): GitHub files fetch handler - #4087
Merged
Merged
Conversation
The stub-based files test redeclares WordPress functions, so it runs as plain PHP in its own job. A new contract smoke test runs in WordPress and checks the core APIs the handler depends on.
…usiness GitHub is a third-party integration like Slack, Discord and Google Sheets, so it ships as a data-machine-business provider module instead of its own plugin. Same code under DataMachineBusiness\, registered as the 'github' provider; the standalone plugin, workflow and boundary entry are removed.
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4079.
Changes
githubfetch handler in data-machine-business,filesdata source. It is registered as thegithubprovider module, next to Slack and Discord, and is made of:GitHubClient, built on core's HTTP clientgithub). Public repos work without a token.GitHubFetchand its settings:repo,branch,file_path,file_pattern,max_file_sizeTrackedItemsand each item carriesgithub_change=added,modifiedorremoved. The first run emits no removals.file_paththat is missing from the tree fails the step, instead of reporting success with 0 items.Placement
This was first a standalone
data-machine-githubplugin, because it revives the handler from the archived data-machine-code. GitHub is a third-party integration like the others in business, so it moved here. There is no new plugin, workflow, release series or boundary entry.Tests
tests/github-files-smoke.php: behavior with stubbed core database classes. It runs as plain PHP in the newUnit (standalone PHP)job, because inside WordPress it would redeclare core functions.tests/github-handler-contract-smoke.php: runs in WordPress. It loads the real core and checks the core APIs the handler depends on.provider-bootstrap-smokenow expects thegithubmodule.The first consumer is chubes4/docsync#60.
Built with AI assistance (chubes-bot).