github-ops
github-ops
GitHub REST API integration for managing repositories, issues, pull requests, and Actions workflows.
Setup
- Create a Personal Access Token at https://github.com/settings/tokens
- Required scopes:
repo,workflow,read:user(minimum) - Store in environment:
GH_TOKEN=ghp_xxx
API Basics
All requests need:
curl -H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/...
Common Operations
Get authenticated user
curl -H "Authorization: Bearer $GH_TOKEN" https://api.github.com/user
List user repos
curl -H "Authorization: Bearer $GH_TOKEN" https://api.github.com/user/repos
Get repo
curl -H "Authorization: Bearer $GH_TOKEN" https://api.github.com/repos/{owner}/{repo}
Create issue
curl -X POST \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/issues \
-d '{"title":"Bug report","body":"Description"}'
List issues
curl -H "Authorization: Bearer $GH_TOKEN" \
https://api.github.com/repos/{owner}/{repo}/issues?state=open
Get issue
curl -H "Authorization: Bearer $GH_TOKEN" \
https://api.github.com/repos/{owner}/{repo}/issues/{number}
Update issue
curl -X PATCH \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/issues/{number} \
-d '{"state":"closed"}'
Add comment to issue
curl -X POST \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/issues/{number}/comments \
-d '{"body":"My comment"}'
Create PR
curl -X POST \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/pulls \
-d '{"title":"New feature","head":"feature-branch","base":"main"}'
List PRs
curl -H "Authorization: Bearer $GH_TOKEN" \
https://api.github.com/repos/{owner}/{repo}/pulls?state=open
Get workflow runs
curl -H "Authorization: Bearer $GH_TOKEN" \
https://api.github.com/repos/{owner}/{repo}/actions/runs?status=in_progress
Trigger workflow
curl -X POST \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches \
-d '{"ref":"main"}'
Add labels to issue
curl -X POST \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/issues/{number}/labels \
-d '{"labels":["bug","critical"]}'
Remove label from issue
curl -X DELETE \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/issues/{number}/labels/{label_name}
Get PR reviews
curl -H "Authorization: Bearer $GH_TOKEN" \
https://api.github.com/repos/{owner}/{repo}/pulls/{number}/reviews
Create PR review
curl -X POST \
-H "Authorization: Bearer $GH_TOKEN" \
-H "Accept: application/vnd.github+json" \
https://api.github.com/repos/{owner}/{repo}/pulls/{number}/reviews \
-d '{"body":"LGTM","event":"APPROVE"}'
Notes
- Repository owner/repo format:
owner/repo(e.g.,octocat/Hello-World) - Rate limits: 5000 requests/hour for authenticated users
- All timestamps are ISO 8601 format
More from winsorllc/upgraded-carnival
vector-memory
Vector-based semantic memory using embeddings for intelligent recall. Store and search memories by meaning rather than keywords. Use when you need semantic search, similar document retrieval, or context-aware memory.
131model-router
Route requests between different LLM providers and models. Configure routing rules, fallback providers, and model-specific parameters inspired by ZeroClaw and OpenClaw model routing systems.
63rss-monitor
Monitor RSS/Atom feeds and blogs for new content using feedparser.
59rss-reader
Read and parse RSS/Atom feeds. Use when: user wants to subscribe to feeds, get latest articles, or monitor news sources.
54video-frames
Production-grade video frame extraction with thumbnail grids, GIF creation, and batch frame processing. Includes intelligent quality presets, progress tracking, and comprehensive error handling.
39elevenlabs-tts
Convert text to speech using ElevenLabs API. Use when you need to generate voice audio for messages, narrations, or accessibility.
25