-
-
Notifications
You must be signed in to change notification settings - Fork 2
github
GitHub Actions edited this page Jan 24, 2026
·
1 revision
Sync GitHub repository data including repos, issues, pull requests, and workflow runs.
nself plugin install githubGITHUB_TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxGITHUB_WEBHOOK_SECRET=xxxxxxxxxxxx # Webhook signature verification
GITHUB_ORG=your-organization # Sync all org repos
GITHUB_REPOS=owner/repo1,owner/repo2 # Or specific repos onlyRequired scopes when creating a Personal Access Token:
-
repo- Full repository access -
read:org- Organization repository access (if syncing org repos)
# Full sync
nself plugin github sync
# Repos only
nself plugin github sync --repos-only
# Initial sync (runs automatically on install)
nself plugin github sync --initial# List repositories
nself plugin github repos list
# Filter by language
nself plugin github repos list --language TypeScript
# Filter by org
nself plugin github repos list --org myorg
# Repository statistics
nself plugin github repos stats# List issues
nself plugin github issues list
# Open issues
nself plugin github issues open
# By repository
nself plugin github issues list --repo owner/repo
# By author
nself plugin github issues list --author username
# Statistics
nself plugin github issues stats# List PRs
nself plugin github prs list
# Open PRs
nself plugin github prs open
# Merged PRs
nself plugin github prs merged
# PR details
nself plugin github prs show 123
# Statistics
nself plugin github prs stats# List workflow runs
nself plugin github actions list
# Failed runs
nself plugin github actions failed
# Filter by workflow
nself plugin github actions list --workflow "CI"
# Workflow statistics
nself plugin github actions stats# List events
nself plugin github webhook list
# Filter by event type
nself plugin github webhook list --event push
# Pending events
nself plugin github webhook pending
# Retry event
nself plugin github webhook retry <event-id>- Go to Repository > Settings > Webhooks
- Add webhook:
- URL:
https://your-domain.com/webhooks/github - Content type:
application/json - Secret: Your
GITHUB_WEBHOOK_SECRET
- URL:
- Select events:
- Push
- Pull requests
- Issues
- Workflow runs
- Releases
For org-wide webhooks:
- Go to Organization > Settings > Webhooks
- Same configuration as repository webhooks
| Table | Description |
|---|---|
github_repositories |
Repository metadata |
github_issues |
Issues with labels, assignees |
github_pull_requests |
PRs with merge info |
github_commits |
Commit history |
github_releases |
Release tags |
github_workflow_runs |
GitHub Actions runs |
github_deployments |
Deployment status |
github_webhook_events |
Webhook event log |
| View | Description |
|---|---|
github_open_items |
Open issues/PRs by repo |
github_recent_activity |
Last 7 days activity |
github_workflow_stats |
Workflow success rates |
-- Open issues by repository
SELECT
r.full_name,
COUNT(*) as open_issues
FROM github_issues i
JOIN github_repositories r ON i.repo_id = r.id
WHERE i.state = 'open'
GROUP BY r.full_name
ORDER BY open_issues DESC;
-- PR merge rate by author
SELECT
user_login,
COUNT(*) as total_prs,
COUNT(*) FILTER (WHERE merged = true) as merged,
ROUND(COUNT(*) FILTER (WHERE merged = true)::numeric / COUNT(*) * 100) as merge_rate
FROM github_pull_requests
GROUP BY user_login
ORDER BY total_prs DESC
LIMIT 20;
-- Workflow success rate
SELECT * FROM github_workflow_stats;ENV=dev
GITHUB_TOKEN=ghp_dev_token
GITHUB_REPOS=myorg/dev-repoENV=prod
GITHUB_TOKEN=ghp_prod_token
GITHUB_ORG=myorgUse different tokens or sync different repos per environment.
# Remove plugin and data
nself plugin remove github
# Keep database tables
nself plugin remove github --keep-data# Test token
curl -H "Authorization: Bearer ghp_xxx" https://api.github.com/user
# Check scopes
curl -I -H "Authorization: Bearer ghp_xxx" https://api.github.com/user
# Look for X-OAuth-Scopes header# Check rate limit
curl -H "Authorization: Bearer ghp_xxx" https://api.github.com/rate_limit
# Plugin uses 0.1s delay between requests to avoid limits# Check recent deliveries in GitHub webhook settings
# Verify GITHUB_WEBHOOK_SECRET matches
# Check nginx logs
docker logs <project>_nginx | grep webhookɳSelf CLI v1.0.9. MIT licensed. Docs CC BY 4.0.
GitHub · Issues · Discussions · nself.org · docs.nself.org
Getting Started
Commands
- Commands, Overview
- Lifecycle: cmd-init · cmd-build · cmd-start · cmd-stop · cmd-restart · cmd-dev
- Monitoring: cmd-status · cmd-logs · cmd-health · cmd-urls · cmd-doctor · cmd-monitor · cmd-alerts · cmd-watchdog · cmd-dogfood
- Data: cmd-db · cmd-backup · cmd-dr · cmd-queue · cmd-webhooks
- Config: cmd-config · cmd-service · cmd-env · cmd-promote
- Networking: cmd-ssl · cmd-trust · cmd-dns-setup
- Security: cmd-security · cmd-secrets · cmd-waf
- Tenancy: cmd-tenant · cmd-billing
- Plugins: cmd-plugin · cmd-license
- AI: cmd-ai · cmd-claw
- Utilities: cmd-exec · cmd-clean · cmd-reset · cmd-update · cmd-upgrade · cmd-version · cmd-admin · cmd-migrate · cmd-completion
Features
- Features, Overview
- Feature-Auth
- Feature-Storage
- Feature-Search
- Feature-Functions
- Feature-Email
- Feature-Monitoring
- Feature-Plugins
- Feature-ɳClaw, AI Assistant
- Feature-ɳChat, Messaging
- Feature-ɳTV, Media Player
- Feature-ɳFamily, Family Social
- Feature-ɳCloud, Managed Hosting
- Feature-Memory-Rooms, Knowledge Organization
- Feature-Agent-Dashboard, Agent Metrics
- Feature-Image-Generation, AI Image Generation
Configuration
- Configuration, Overview
- Config-Env-Vars
- Config-Postgres
- Config-Hasura
- Config-Auth
- Config-Nginx
- Config-Optional-Services
- Config-Custom-Services
- Config-System
Plugins (87 + 10 monitoring)
Free (25)
- plugin-backup
- plugin-content-acquisition
- plugin-content-progress
- plugin-cron
- plugin-donorbox
- plugin-feature-flags
- plugin-github
- plugin-github-runner
- plugin-invitations
- plugin-jobs
- plugin-link-preview
- plugin-mdns
- plugin-mlflow
- plugin-monitoring
- plugin-notifications
- plugin-notify
- plugin-paypal
- plugin-search
- plugin-shopify
- plugin-stripe
- plugin-subtitle-manager
- plugin-tokens
- plugin-torrent-manager
- plugin-vpn
- plugin-webhooks
Pro (62)
- plugin-access-controls
- plugin-activity-feed
- plugin-admin-api
- plugin-ai
- plugin-analytics
- plugin-auth
- plugin-backup-pro
- plugin-bots
- plugin-browser
- plugin-calendar
- plugin-cdn
- plugin-chat
- plugin-claw
- plugin-claw-budget
- plugin-claw-news
- plugin-claw-web
- plugin-cloudflare
- plugin-cms
- plugin-compliance
- plugin-cron-pro
- plugin-ddns
- plugin-devices
- plugin-documents
- plugin-donorbox-pro
- plugin-entitlements
- plugin-epg
- plugin-file-processing
- plugin-game-metadata
- plugin-geocoding
- plugin-geolocation
- plugin-google
- plugin-home
- plugin-idme
- plugin-knowledge-base
- plugin-linkedin
- plugin-livekit
- plugin-media-processing
- plugin-meetings
- plugin-moderation
- plugin-mux
- plugin-notify-pro
- plugin-object-storage
- plugin-observability
- plugin-paypal-pro
- plugin-photos
- plugin-podcast
- plugin-post
- plugin-realtime
- plugin-recording
- plugin-retro-gaming
- plugin-rom-discovery
- plugin-shopify-pro
- plugin-social
- plugin-sports
- plugin-stream-gateway
- plugin-streaming
- plugin-stripe-pro
- plugin-support
- plugin-tmdb
- plugin-voice
- plugin-web3
- plugin-workflows
Planned (26)
plugin-auditplugin-blogplugin-checkoutplugin-commerceplugin-drmplugin-exportplugin-flowplugin-importplugin-ldapplugin-mailgunplugin-mediaplugin-oauth-providersplugin-pagesplugin-postmarkplugin-rate-limitplugin-reportsplugin-samlplugin-schedulerplugin-sendgridplugin-ssoplugin-subscriptionplugin-thumbplugin-transcoderplugin-twilioplugin-wafplugin-watermark
Guides
- Guide-Production-Deployment
- Guide-SSL-Setup
- Guide-Multi-Tenancy
- Guide-Security-Hardening
- Guide-Monitoring-Setup
- Guide-Backup-Restore
- Guide-Custom-Services
- Guide-Migration-from-v1
Architecture
Reference
- API-Reference
- reference-error-codes, Error Codes
Licensing
Security
Brand
Operations
- operations/release-cascade, Release Cascade
- operations/self-healing, Self-Healing Schema
- operations/redis-tuning, Redis Pool Tuning
- operations/meilisearch-warmup, MeiliSearch Warm-Up
- operations/jwt-rotation, JWT Key Rotation
- operations/windows-wsl2-setup, Windows / WSL2 Setup
- operations/gemini-oauth-reauth, Gemini OAuth Reauth
Contributing