Skip to content

GitHub Domain

magmacrunchmedia edited this page Aug 9, 2026 · 3 revisions

GitHub Domain

Direct GitHub API access — no MCP server in the middle.

Commands

Workflows

magmascript gh workflows                     # all 13 workflows + status
magmascript gh workflow CI 5                 # last 5 CI runs
magmascript gh trigger "Deploy to Pi"        # trigger workflow_dispatch

Issues

magmascript gh issues                        # open issues
magmascript gh issues broken-links closed    # filtered
magmascript gh issue create "Bug" "details"
magmascript gh issue close 42

Files

magmascript gh file path/to/file.txt         # read file content

Sync

magmascript gh sync                          # diff local data vs GitHub, commit changes
magmascript gh sync --dry-run                # preview without committing
magmascript gh sync --message "Custom msg"   # custom commit message

The sync command compares local data files against GitHub and commits all changes in a single atomic commit:

  • jukebox-songs.json
  • tv-channels.json + channels.js (auto-generated)
  • themes.json
  • scores/*.json

Repo

magmascript gh repo                          # repo info

How It Works

The gh domain calls the GitHub REST API directly via HTTPS:

Your Mac ──HTTPS──> api.github.com

Requires a PAT with repo scope.

Clone this wiki locally