GitHub
Interact with GitHub or trigger workflows from GitHub events
Configuration
Get PR details
Operation
Get PR details
Repository Owner*
e.g., microsoft
Repository Name*
e.g., vscode
GitHub Token*
••••••••
Pull Request Number*
e.g., 123
Get PR details (
github_pr)Fetch PR details including diff and files changed
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner |
repo | string | Yes | Repository name |
pullNumber | number | Yes | Pull request number |
apiKey | string | Yes | GitHub API token |
Output
| Parameter | Type | Description |
|---|---|---|
content | string | Human-readable PR summary |
metadata | object | Detailed PR metadata including file changes |
Create PR comment
Operation
Create PR comment
Repository Owner*
e.g., microsoft
Repository Name*
e.g., vscode
GitHub Token*
••••••••
Comment*
Enter comment text
Pull Request Number*
e.g., 123
Comment Type
Select...
File Path
e.g., src/main.ts
Shown when commentType is 'file_comment'.
Line Number
e.g., 42
Shown when commentType is 'file_comment'.
Create PR comment (
github_comment)Create comments on GitHub PRs
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner |
repo | string | Yes | Repository name |
body | string | Yes | Comment content |
pullNumber | number | Yes | Pull request number |
path | string | No | File path for review comment |
commentType | string | No | Type of comment (pr_comment or file_comment) |
apiKey | string | Yes | GitHub API token |
Output
| Parameter | Type | Description |
|---|---|---|
content | string | Human-readable comment confirmation |
metadata | object | Comment metadata |
Get repository info
Operation
Get repository info
Repository Owner*
e.g., microsoft
Repository Name*
e.g., vscode
GitHub Token*
••••••••
Get repository info (
github_repo_info)Retrieve comprehensive GitHub repository metadata including stars, forks, issues, and primary language. Supports both public and private repositories with optional authentication.
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (user or organization) |
repo | string | Yes | Repository name |
apiKey | string | Yes | GitHub Personal Access Token |
Output
| Parameter | Type | Description |
|---|---|---|
content | string | Human-readable repository summary |
metadata | object | Repository metadata |
Get latest commit
Operation
Get latest commit
Repository Owner*
e.g., microsoft
Repository Name*
e.g., vscode
GitHub Token*
••••••••
Branch Name
e.g., main (leave empty for default)
Get latest commit (
github_latest_commit)Retrieve the latest commit from a GitHub repository
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
owner | string | Yes | Repository owner (user or organization) |
repo | string | Yes | Repository name |
branch | string | No | Branch name (defaults to the repository's default branch) |
apiKey | string | Yes | GitHub API token |
Output
| Parameter | Type | Description |
|---|---|---|
content | string | Human-readable commit summary |
metadata | object | Commit metadata |
Usage Instructions
Integrate Github into the workflow. Can get get PR details, create PR comment, get repository info, and get latest commit. Can be used in trigger mode to trigger a workflow when a PR is created, commented on, or a commit is pushed.
Notes
- Category:
tools - Type:
github