تخطَّ إلى المحتوى

github

هذا المحتوى غير متوفر بلغتك بعد.

GitHub integration, repos, issues, PRs, workflow events, and OAuth. Free: MIT licensed.

Terminal window
nself plugin install github

Syncs GitHub data into your Postgres database: repositories, issues, pull requests, commits, workflow runs, and webhook events. Provides a webhook receiver for real-time GitHub events. Supports OAuth authentication via GitHub for user login. Exposes 23 database tables with full GitHub data models.

Env VarDefaultDescription
GITHUB_PORT3002GitHub plugin port
GITHUB_TOKENnoneGitHub personal access token or App token
GITHUB_WEBHOOK_SECRETnoneWebhook HMAC secret
GITHUB_APP_IDnoneGitHub App ID (if using App auth)
GITHUB_APP_PRIVATE_KEYnoneGitHub App private key
PortPurpose
3002GitHub plugin REST API and webhook receiver

23 tables added to your Postgres database, including:

  • np_github_repos: repository metadata
  • np_github_issues: issues and comments
  • np_github_pull_requests: PRs and reviews
  • np_github_commits: commit history
  • np_github_workflow_runs: CI/CD run history
  • np_github_webhook_events: raw webhook event log
  • And 17 more for stars, labels, milestones, etc.
RouteTarget
/github/webhookGitHub webhook receiver
/github/oauth/callbackOAuth callback
GET /health: Health check
POST /sync/repo/{owner}/{repo}: Sync a repository
GET /repos: List synced repositories
POST /webhook: GitHub webhook receiver
GET /oauth/authorize: Start GitHub OAuth flow