Draft
Conversation
Agent-Logs-Url: https://github.com/lippytm/AI-Time-Machines/sessions/2f69a6c4-a433-4e5f-af43-12f347ff9f32 Co-authored-by: lippytm <65956507+lippytm@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix sync issue with GitHub for MyClaw
Add GitHub as a supported integration platform
Apr 11, 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.
GitHub was not a supported integration platform, making it impossible for users to sync their data/predictions with a GitHub repository. All attempts to create a GitHub integration were silently rejected by validation.
Changes Made
New:
src/github.js— GitHub REST API clientsyncPrediction(owner, repo, prediction)— commit prediction JSON to a repo (create or update via Contents API)createPredictionIssue(owner, repo, prediction)— open a formatted GitHub Issue with prediction reportlistSyncedPredictions(owner, repo)— list previously synced prediction filesgetRepository(owner, repo)— fetch repo metadataBackend
Integrationmodel ENUM: added'github'isIn([...]): added'github'getPlatforms(): added GitHub entry withsync,version-control,repository,collaborationfeaturesformatPredictionForPlatform(): added'github'case returning file path + commit messageFrontend / Config
src/index.js: exportsGitHubalongside existing clientsIntegrations.js: added GitHub to the subtitle.env.example: addedGITHUB_TOKENwith PAT instructionsINTEGRATIONS.md/README.md: documented GitHub platform config, required scopes, and export formatTests
tests/github.test.js: 15 unit tests covering constructor,syncPrediction(new file, existing file with SHA, custom path),createPredictionIssue,listSyncedPredictions, headers, network errors, non-JSON responsesType of Change
Testing
Checklist