Skip to content

Add GitHub repository creation link and GitHub integration platform#44

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/create-myclaw-repo
Draft

Add GitHub repository creation link and GitHub integration platform#44
Copilot wants to merge 2 commits intomainfrom
copilot/create-myclaw-repo

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 11, 2026

Description

Surfaces a direct link to https://github.com/new in the Integrations UI so users can quickly create a GitHub repository for their MyClaw/OpenClaw projects. Also wires up github as a first-class integration platform across the stack.

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)

Related Issue(s)

Changes Made

  • src/github.js — New GitHub API client matching the openclaw.js pattern: getRepository, createPredictionIssue, syncPrediction, listSyncedPredictions, getCreateRepositoryUrl. Uses correct token auth scheme (not Bearer).
  • backend/src/models/Integration.js — Added 'github' to the platform ENUM.
  • backend/src/controllers/integrationsController.js — Added GitHub to getPlatforms with description, features, and createRepoUrl: 'https://github.com/new'.
  • frontend/src/pages/Integrations.js — Two UI touch points:
    • Header: GitHub-branded "Create GitHub Repository" button linking to https://github.com/new
    • Add Integration modal: inline hint with direct link when GitHub platform is selected

Testing

  • Unit tests pass
  • Integration tests pass
  • Manual testing completed
  • No breaking changes

Screenshots (if applicable)

Checklist

  • My code follows the code style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Context

GitHub API requires token <PAT> auth (not Bearer). Set GITHUB_TOKEN in .env to enable API features; the repo creation link works without a token since it's just a redirect to GitHub's UI.

Copilot AI changed the title [WIP] Add repository for MyClaw Add GitHub repository creation link and GitHub integration platform Apr 11, 2026
Copilot AI requested a review from lippytm April 11, 2026 15:37
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.

2 participants