GitHub
Repo, issue, pull request, konten file, pencarian kode dan issue, release, run Actions, notifikasi. Penulisan oleh agent harus diizinkan, merge, commit dan release hanya lewat node
Beta v0.1.0 Node.js 33 aksi
Tentang
Plugin Graphrt untuk GitHub REST API (versi API 2026-03-10). Plugin ini membaca repository, issue, pull request, isi file, hasil pencarian, release, run Actions dan notifikasi, serta menulis issue, komentar dan pull request. Dibuat dengan lapisan REST deklaratif, seluruh plugin adalah data di definition.mjs.
Yang bisa dilakukan
- Repositories: get_authenticated_user, list_my_repos, list_org_repos, get_repo, get_contents (file or directory at any path, e.g. src/lib/main.js), create_or_update_file (node only)
- Issues: list_issues, get_issue, create_issue, update_issue, list_issue_comments, create_issue_comment
- Pull requests: list_pulls, get_pull, list_pull_files, create_pull, list_pull_review_comments, create_pull_review_comment, merge_pull (node only)
- Search: search_code, search_issues (issues and pull requests, optional advanced syntax)
- Releases: list_releases, get_latest_release, get_release, create_release and delete_release (node only)
- Actions: list_workflow_runs, get_workflow_run, rerun_workflow_run, rerun_failed_jobs
- Notifications: list_notifications, mark_notification_read
- api_request: any other endpoint on api.github.com (GET only for agents)
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- Authenticated user
github.get_authenticated_user - List my repositories
github.list_my_repos - List organization repositories
github.list_org_repos - Get repository
github.get_repo - Get file or directory
github.get_contents - Commit a file
github.create_or_update_file - List issues
github.list_issues - Get issue
github.get_issue - Create issue
github.create_issue - Update issue
github.update_issue
Tampilkan semua 33 aksi
- List issue comments
github.list_issue_comments - Comment on issue or PR
github.create_issue_comment - List pull requests
github.list_pulls - Get pull request
github.get_pull - List pull request files
github.list_pull_files - Create pull request
github.create_pull - List PR review comments
github.list_pull_review_comments - Comment on PR diff
github.create_pull_review_comment - Merge pull request
github.merge_pull - Search code
github.search_code - Search issues and PRs
github.search_issues - List releases
github.list_releases - Latest release
github.get_latest_release - Get release
github.get_release - Create release
github.create_release - Delete release
github.delete_release - List workflow runs
github.list_workflow_runs - Get workflow run
github.get_workflow_run - Re-run workflow
github.rerun_workflow_run - Re-run failed jobs
github.rerun_failed_jobs - List notifications
github.list_notifications - Mark notification read
github.mark_notification_read - GitHub REST API request
github.api_request
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
GITHUB_TOKENWajibFine-grained or classic personal access token, or a GitHub App installation token -
GITHUB_TOOL_ALLOW_WRITEOpsional1 lets agent tools create/update issues, comment, open pull requests and mark notifications read -
GITHUB_TOOL_ALLOW_CIOpsional1 lets agent tools re-run workflow runs -
GITHUB_TOOL_ALLOWED_REPOSFor tool writesComma-separated owner/name repositories agent tools may write to (* = any) -
GITHUB_TOOL_TOKEN_SOURCE
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari GitHub.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
terminal
$ graphrt plugin install github workflow.yaml
- id: failing type: github.list_workflow_runs owner: acme repo: api branch: main status: failure limit: 5 - id: file type: github.get_contents owner: acme repo: api file_path: config/app.yaml ref: main