Total Tools: 35
# List all github tools
dmtools list | jq '.tools[] | select(.name | startswith("github_"))'
# Example usage
dmtools github_test [arguments]// Direct function calls for github tools
const result = github_test(...);
const result = github_list_prs(...);
const result = github_list_prs_filtered(...);| Tool Name | Description | Parameters |
|---|---|---|
github_add_inline_comment |
Create a new inline code review comment on a specific file and line in a GitHub pull request. To comment on a range of lines, provide both startLine and line. Side is 'RIGHT' for new code (default) or 'LEFT' for old code. | path (string, required)workspace (string, required)side (string, optional)line (string, required)startLine (string, optional)text (string, required)commitId (string, optional)repository (string, required)pullRequestId (string, required) |
github_add_pr_comment |
Add a comment to a GitHub pull request discussion. | workspace (string, required)text (string, required)repository (string, required)pullRequestId (string, required) |
github_add_pr_label |
Add a label to a GitHub pull request. | workspace (string, required)label (string, required)repository (string, required)pullRequestId (string, required) |
github_create_check_run |
Create a GitHub Check Run β a rich CI check with progress, annotations, and a full log visible in the PR 'Checks' tab. Use status=in_progress when starting, then call github_update_check_run to complete it. | summary (string, optional)workspace (string, required)name (string, required)externalId (string, optional)headSha (string, required)text (string, optional)repository (string, required)title (string, optional)status (string, optional) |
github_create_commit_status |
Create a commit status (the colored dot in PR checks). Use state=pending when AI analysis starts, success/failure/error when complete. The 'context' field acts as the status name and must be unique per check. | workspace (string, required)context (string, optional)description (string, optional)state (string, required)repository (string, required)sha (string, required)targetUrl (string, optional) |
github_delete_pr_comment |
Delete a comment on a GitHub pull request or issue by its comment ID. | repository (string, required)commentId (string, required)workspace (string, required) |
github_delete_release_asset |
Delete a GitHub release asset by its asset ID. Use github_list_release_assets to find asset IDs. | repository (string, required)workspace (string, required)assetId (string, required) |
github_get_commit_check_runs |
Get all check runs (CI/CD status checks) for a commit SHA in a GitHub repository. Returns details about each check including status, conclusion, and output. | repository (string, required)workspace (string, required)commitSha (string, required) |
github_get_commits_from_branches |
Fetch commits from all branches whose name matches a given regex pattern, aggregated and de-duplicated. Useful for collecting commits from feature/, release/ or similar groups of branches without specifying each branch individually. | branchNameRegex (string, required)workspace (string, required)repository (string, required)since (string, optional) |
github_get_job_logs |
Get the raw text logs for a specific GitHub Actions job. Returns the complete log output from all steps in the job. | repository (string, required)jobId (string, required)workspace (string, required) |
github_get_or_create_draft_release |
Find an existing draft release by tag or name, or create one if it does not exist. Useful for a stable PR attachment storage release. | workspace (string, required)repository (string, required)tagName (string, required)targetCommitish (string, optional)body (string, optional)releaseName (string, optional) |
github_get_pr |
Get details of a GitHub pull request including title, description, status, author, branches, and merge info. | repository (string, required)pullRequestId (string, required)workspace (string, required) |
github_get_pr_activities |
Get all activities for a GitHub pull request including reviews (approvals, change requests), inline code comments, and general discussion comments. | repository (string, required)pullRequestId (string, required)workspace (string, required) |
github_get_pr_comments |
Get all comments for a GitHub pull request, including both inline code review comments and general discussion comments. Results are sorted by creation date. | repository (string, required)pullRequestId (string, required)workspace (string, required) |
github_get_pr_conversations |
Get all review conversations (inline code comment threads) for a GitHub pull request. Groups inline code review comments into threads showing root comment and replies. Also includes general PR discussion comments as separate entries. | repository (string, required)pullRequestId (string, required)workspace (string, required) |
github_get_pr_diff |
Get the diff statistics for a GitHub pull request (files changed, additions, deletions). Requires IS_READ_PULL_REQUEST_DIFF env/config to be enabled. | repository (string, required)pullRequestID (string, required)workspace (string, required) |
github_get_pr_diff_text |
Get the raw unified diff text for a GitHub pull request. Requires IS_READ_PULL_REQUEST_DIFF env/config to be enabled. | repository (string, required)pullRequestID (string, required)workspace (string, required) |
github_get_pr_review_threads |
Get all review threads for a GitHub pull request via GraphQL, including each thread's node ID (needed for resolving), resolved status, file path, line, and comments. Use the returned thread 'id' with github_resolve_pr_thread. | repository (string, required)pullRequestId (string, required)workspace (string, required) |
github_get_workflow_run |
Get details of a specific GitHub Actions workflow run by ID. Returns status, conclusion, logs URL, and timing information. | repository (string, required)workspace (string, required)runId (string, required) |
github_get_workflow_run_jobs |
Get all jobs for a specific GitHub Actions workflow run. Shows individual job statuses, steps, and logs URLs. | repository (string, required)workspace (string, required)runId (string, required) |
github_get_workflow_run_logs |
Download and extract complete logs for all jobs in a GitHub Actions workflow run. Returns full untruncated log content from the ZIP archive GitHub provides. | repository (string, required)workspace (string, required)runId (string, required) |
github_list_prs |
List pull requests in a GitHub repository by state. State can be 'open', 'closed', or 'merged'. Returns first page (up to 100) of pull requests. | repository (string, required)workspace (string, required)state (string, required) |
github_list_prs_filtered |
List pull requests in a GitHub repository filtered by a regex pattern on the PR title. Fetches all PRs matching the given state and returns only those whose title matches the regex. Useful for large repos to narrow down results without loading entire history. | titleRegex (string, required)workspace (string, required)state (string, required)repository (string, required) |
github_list_release_assets |
List all assets attached to a GitHub release. Returns a JSON array of asset objects including id, name, size, and browser_download_url. | repository (string, required)releaseId (string, required)workspace (string, required) |
github_list_workflow_runs |
List GitHub Actions workflow runs for a repository, optionally filtered by status or specific workflow file. Use status='failure' to get all failed runs. | workspace (string, required)perPage (number, optional)created (string, optional)page (number, optional)repository (string, required)workflowId (string, optional)status (string, optional) |
github_merge_pr |
Merge a GitHub pull request. Supports merge, squash, and rebase merge methods. | workspace (string, required)repository (string, required)pullRequestId (string, required)commitMessage (string, optional)mergeMethod (string, optional)commitTitle (string, optional) |
github_remove_pr_label |
Remove a label from a GitHub pull request. | workspace (string, required)label (string, required)repository (string, required)pullRequestId (string, required) |
github_reply_to_pr_thread |
Reply to an existing inline code review comment thread in a GitHub pull request. Use the comment ID of the root comment (or any comment) in the thread as inReplyToId. | workspace (string, required)text (string, required)repository (string, required)pullRequestId (string, required)inReplyToId (string, required) |
github_repository_dispatch |
Trigger a GitHub repository dispatch event. Workflows listening to 'on: repository_dispatch' with the matching event_type will be triggered. | workspace (string, required)eventType (string, required)clientPayload (string, optional)repository (string, required) |
github_resolve_pr_thread |
Resolve a review thread in a GitHub pull request. Requires the thread's GraphQL node ID, which can be obtained from github_get_pr_review_threads (the 'id' field of each thread). | threadId (string, required) |
github_test |
Test GitHub connectivity by fetching the current user's profile | None |
github_trigger_workflow |
Trigger a specific GitHub Actions workflow by filename (workflow dispatch). The workflow must have 'on: workflow_dispatch' configured. | workspace (string, required)ref (string, optional)repository (string, required)workflowId (string, required)inputs (string, optional) |
github_update_check_run |
Update an existing GitHub Check Run β set it to completed with success/failure conclusion, update summary and detailed text. Call this after github_create_check_run to finalize the check. | conclusion (string, optional)summary (string, optional)workspace (string, required)checkRunId (string, required)text (string, optional)repository (string, required)title (string, optional)status (string, required) |
github_update_pr_comment |
Update (edit) an existing comment on a GitHub pull request or issue by its comment ID. | commentId (string, required)workspace (string, required)text (string, required)repository (string, required) |
github_upload_release_asset |
Upload a local file as a GitHub release asset. Returns the uploaded asset metadata including browser_download_url. Set overwrite=true to automatically delete an existing asset with the same name before uploading. | workspace (string, required)releaseId (string, required)filePath (string, required)assetName (string, optional)label (string, optional)repository (string, required)contentType (string, optional)overwrite (string, optional) |
Create a new inline code review comment on a specific file and line in a GitHub pull request. To comment on a range of lines, provide both startLine and line. Side is 'RIGHT' for new code (default) or 'LEFT' for old code.
Parameters:
-
path(string) π΄ Required- The relative file path in the repository
- Example:
src/main/java/com/example/Foo.java
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
side(string) βͺ Optional- Which diff side to comment on: RIGHT (new code, default) or LEFT (old code)
- Example:
RIGHT
-
line(string) π΄ Required- The line number in the file to comment on
- Example:
42
-
startLine(string) βͺ Optional- For multi-line comments: the first line of the range. Must be less than line.
- Example:
40
-
text(string) π΄ Required- The comment text (Markdown supported)
- Example:
This should be refactored.
-
commitId(string) βͺ Optional- The SHA of the commit to comment on. If empty, uses the PR head commit.
- Example:
abc123def456
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
Example:
dmtools github_add_inline_comment "value" "value"// In JavaScript agent
const result = github_add_inline_comment("path", "workspace");Add a comment to a GitHub pull request discussion.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
text(string) π΄ Required- The comment text to add
- Example:
Looks good!
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
Example:
dmtools github_add_pr_comment "value" "value"// In JavaScript agent
const result = github_add_pr_comment("workspace", "text");Add a label to a GitHub pull request.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
label(string) π΄ Required- The label name to add to the pull request
- Example:
bug
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
Example:
dmtools github_add_pr_label "value" "value"// In JavaScript agent
const result = github_add_pr_label("workspace", "label");Create a GitHub Check Run β a rich CI check with progress, annotations, and a full log visible in the PR 'Checks' tab. Use status=in_progress when starting, then call github_update_check_run to complete it.
Parameters:
-
summary(string) βͺ Optional- Markdown summary shown in the check run output panel
- Example:
π Analysis started...
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
name(string) π΄ Required- The name of the check run displayed in the PR
- Example:
dmtools / pr-review
-
externalId(string) βͺ Optional- Optional external identifier for this check run
- Example:
MAPC-6653
-
headSha(string) π΄ Required- The SHA of the commit to associate this check run with
- Example:
abc123def456...
-
text(string) βͺ Optional- Additional details in Markdown (supports large content)
- Example:
Full analysis results here...
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
title(string) βͺ Optional- Title shown in the check run output panel
- Example:
AI PR Review
-
status(string) βͺ Optional- The status: queued | in_progress | completed
- Example:
in_progress
Example:
dmtools github_create_check_run "value" "value"// In JavaScript agent
const result = github_create_check_run("summary", "workspace");Create a commit status (the colored dot in PR checks). Use state=pending when AI analysis starts, success/failure/error when complete. The 'context' field acts as the status name and must be unique per check.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
context(string) βͺ Optional- Unique identifier for this status check, e.g. 'dmtools/pr-review'
- Example:
dmtools/pr-review
-
description(string) βͺ Optional- Short human-readable description shown next to the status dot
- Example:
AI analysis in progress...
-
state(string) π΄ Required- The state: pending | success | failure | error
- Example:
pending
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
sha(string) π΄ Required- The commit SHA to set status on
- Example:
abc123def456...
-
targetUrl(string) βͺ Optional- Optional URL to link from the status (e.g. CI run URL)
- Example:
https://github.com/owner/repo/actions/runs/123
Example:
dmtools github_create_commit_status "value" "value"// In JavaScript agent
const result = github_create_commit_status("workspace", "context");Delete a comment on a GitHub pull request or issue by its comment ID.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
commentId(string) π΄ Required- The ID of the comment to delete
- Example:
123456789
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_delete_pr_comment "value" "value"// In JavaScript agent
const result = github_delete_pr_comment("repository", "commentId");Delete a GitHub release asset by its asset ID. Use github_list_release_assets to find asset IDs.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
assetId(string) π΄ Required- The numeric asset ID to delete.
- Example:
422721847
Example:
dmtools github_delete_release_asset "value" "value"// In JavaScript agent
const result = github_delete_release_asset("repository", "workspace");Get all check runs (CI/CD status checks) for a commit SHA in a GitHub repository. Returns details about each check including status, conclusion, and output.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
commitSha(string) π΄ Required- The commit SHA to get check runs for
- Example:
abc123...
Example:
dmtools github_get_commit_check_runs "value" "value"// In JavaScript agent
const result = github_get_commit_check_runs("repository", "workspace");Fetch commits from all branches whose name matches a given regex pattern, aggregated and de-duplicated. Useful for collecting commits from feature/, release/ or similar groups of branches without specifying each branch individually.
Parameters:
-
branchNameRegex(string) π΄ Required- Java regular expression matched against branch names. All branches with a matching name are included. Example: '^feature/' or 'release/\d+'.
- Example:
^feature/
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
since(string) βͺ Optional- Optional ISO date (yyyy-MM-dd) to limit commits to those after this date.
- Example:
2024-01-01
Example:
dmtools github_get_commits_from_branches "value" "value"// In JavaScript agent
const result = github_get_commits_from_branches("branchNameRegex", "workspace");Get the raw text logs for a specific GitHub Actions job. Returns the complete log output from all steps in the job.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
jobId(string) π΄ Required- The job ID (from github_get_workflow_run_jobs)
- Example:
1234567890
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_job_logs "value" "value"// In JavaScript agent
const result = github_get_job_logs("repository", "jobId");Find an existing draft release by tag or name, or create one if it does not exist. Useful for a stable PR attachment storage release.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
tagName(string) π΄ Required- The Git tag name for the release. Reused to find an existing draft release.
- Example:
pr-attachments-storage
-
targetCommitish(string) βͺ Optional- Optional branch or commit SHA the release should point to when created.
- Example:
main
-
body(string) βͺ Optional- Optional Markdown release notes/body.
- Example:
Internal storage release for PR attachments.
-
releaseName(string) βͺ Optional- The human-readable release name. If empty, tagName is used.
- Example:
PR Attachments Storage
Example:
dmtools github_get_or_create_draft_release "value" "value"// In JavaScript agent
const result = github_get_or_create_draft_release("workspace", "repository");Get details of a GitHub pull request including title, description, status, author, branches, and merge info.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_pr "value" "value"// In JavaScript agent
const result = github_get_pr("repository", "pullRequestId");Get all activities for a GitHub pull request including reviews (approvals, change requests), inline code comments, and general discussion comments.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_pr_activities "value" "value"// In JavaScript agent
const result = github_get_pr_activities("repository", "pullRequestId");Get all comments for a GitHub pull request, including both inline code review comments and general discussion comments. Results are sorted by creation date.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_pr_comments "value" "value"// In JavaScript agent
const result = github_get_pr_comments("repository", "pullRequestId");Get all review conversations (inline code comment threads) for a GitHub pull request. Groups inline code review comments into threads showing root comment and replies. Also includes general PR discussion comments as separate entries.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_pr_conversations "value" "value"// In JavaScript agent
const result = github_get_pr_conversations("repository", "pullRequestId");Get the diff statistics for a GitHub pull request (files changed, additions, deletions). Requires IS_READ_PULL_REQUEST_DIFF env/config to be enabled.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestID(string) π΄ Required- The pull request number
- Example:
74
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_pr_diff "value" "value"// In JavaScript agent
const result = github_get_pr_diff("repository", "pullRequestID");Get the raw unified diff text for a GitHub pull request. Requires IS_READ_PULL_REQUEST_DIFF env/config to be enabled.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestID(string) π΄ Required- The pull request number
- Example:
74
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_pr_diff_text "value" "value"// In JavaScript agent
const result = github_get_pr_diff_text("repository", "pullRequestID");Get all review threads for a GitHub pull request via GraphQL, including each thread's node ID (needed for resolving), resolved status, file path, line, and comments. Use the returned thread 'id' with github_resolve_pr_thread.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_get_pr_review_threads "value" "value"// In JavaScript agent
const result = github_get_pr_review_threads("repository", "pullRequestId");Get details of a specific GitHub Actions workflow run by ID. Returns status, conclusion, logs URL, and timing information.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
runId(string) π΄ Required- The workflow run ID
- Example:
1234567890
Example:
dmtools github_get_workflow_run "value" "value"// In JavaScript agent
const result = github_get_workflow_run("repository", "workspace");Get all jobs for a specific GitHub Actions workflow run. Shows individual job statuses, steps, and logs URLs.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
runId(string) π΄ Required- The workflow run ID
- Example:
1234567890
Example:
dmtools github_get_workflow_run_jobs "value" "value"// In JavaScript agent
const result = github_get_workflow_run_jobs("repository", "workspace");Download and extract complete logs for all jobs in a GitHub Actions workflow run. Returns full untruncated log content from the ZIP archive GitHub provides.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
runId(string) π΄ Required- The workflow run ID
- Example:
22498697315
Example:
dmtools github_get_workflow_run_logs "value" "value"// In JavaScript agent
const result = github_get_workflow_run_logs("repository", "workspace");List pull requests in a GitHub repository by state. State can be 'open', 'closed', or 'merged'. Returns first page (up to 100) of pull requests.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
state(string) π΄ Required- The state of pull requests to list: 'open', 'closed', or 'merged'. 'opened' is accepted as a synonym for 'open'.
- Example:
open
Example:
dmtools github_list_prs "value" "value"// In JavaScript agent
const result = github_list_prs("repository", "workspace");List pull requests in a GitHub repository filtered by a regex pattern on the PR title. Fetches all PRs matching the given state and returns only those whose title matches the regex. Useful for large repos to narrow down results without loading entire history.
Parameters:
-
titleRegex(string) π΄ Required- Java regular expression matched against the PR title (case-sensitive). Only PRs whose title contains a match are returned. Example: '^feat(.*)' or 'TICKET-\d+'.
- Example:
^feat\(
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
state(string) π΄ Required- The state of pull requests: 'open', 'closed', or 'merged'.
- Example:
merged
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
Example:
dmtools github_list_prs_filtered "value" "value"// In JavaScript agent
const result = github_list_prs_filtered("titleRegex", "workspace");List all assets attached to a GitHub release. Returns a JSON array of asset objects including id, name, size, and browser_download_url.
Parameters:
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
releaseId(string) π΄ Required- The numeric GitHub release ID.
- Example:
323096697
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
Example:
dmtools github_list_release_assets "value" "value"// In JavaScript agent
const result = github_list_release_assets("repository", "releaseId");List GitHub Actions workflow runs for a repository, optionally filtered by status or specific workflow file. Use status='failure' to get all failed runs.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
perPage(number) βͺ Optional- Number of results per page (max 100, default 30)
- Example:
50
-
created(string) βͺ Optional- Filter by created date/range using GitHub search syntax, e.g. 2026-05-01..2026-05-31 or >=2026-05-01
- Example:
2026-05-01..2026-05-31
-
page(number) βͺ Optional- Page number for pagination (default 1)
- Example:
2
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workflowId(string) βͺ Optional- Optional workflow filename to filter runs (e.g. rework.yml). If omitted, returns runs for all workflows.
- Example:
rework.yml
-
status(string) βͺ Optional- Filter by status: failure, success, in_progress, queued, cancelled, timed_out, action_required, neutral, skipped, stale, completed
- Example:
failure
Example:
dmtools github_list_workflow_runs "value" "value"// In JavaScript agent
const result = github_list_workflow_runs("workspace", "perPage");Merge a GitHub pull request. Supports merge, squash, and rebase merge methods.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number to merge
- Example:
74
-
commitMessage(string) βͺ Optional- Extra detail to append to the merge commit message (optional)
- Example:
Closes #123
-
mergeMethod(string) βͺ Optional- The merge method: 'merge' (default), 'squash', or 'rebase'
- Example:
squash
-
commitTitle(string) βͺ Optional- Title for the merge commit (optional, defaults to PR title)
- Example:
Merge feature/my-branch into main
Example:
dmtools github_merge_pr "value" "value"// In JavaScript agent
const result = github_merge_pr("workspace", "repository");Remove a label from a GitHub pull request.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
label(string) π΄ Required- The label name to remove from the pull request
- Example:
bug
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
Example:
dmtools github_remove_pr_label "value" "value"// In JavaScript agent
const result = github_remove_pr_label("workspace", "label");Reply to an existing inline code review comment thread in a GitHub pull request. Use the comment ID of the root comment (or any comment) in the thread as inReplyToId.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
text(string) π΄ Required- The reply text (Markdown supported)
- Example:
Fixed in the latest commit.
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
pullRequestId(string) π΄ Required- The pull request number
- Example:
74
-
inReplyToId(string) π΄ Required- The ID of the comment to reply to (from github_get_pr_conversations rootComment.id or replies[].id)
- Example:
123456789
Example:
dmtools github_reply_to_pr_thread "value" "value"// In JavaScript agent
const result = github_reply_to_pr_thread("workspace", "text");Trigger a GitHub repository dispatch event. Workflows listening to 'on: repository_dispatch' with the matching event_type will be triggered.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
eventType(string) π΄ Required- The type of activity that triggers the workflow (event_type)
- Example:
rework
-
clientPayload(string) βͺ Optional- Optional JSON string with payload passed to the workflow as client_payload
- Example:
{"key":"value"}
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
Example:
dmtools github_repository_dispatch "value" "value"// In JavaScript agent
const result = github_repository_dispatch("workspace", "eventType");Resolve a review thread in a GitHub pull request. Requires the thread's GraphQL node ID, which can be obtained from github_get_pr_review_threads (the 'id' field of each thread).
Parameters:
threadId(string) π΄ Required- The GraphQL node ID of the review thread to resolve (from github_get_pr_review_threads thread.id)
- Example:
PRRT_kwDOBQfyNc5A...
Example:
dmtools github_resolve_pr_thread "value"// In JavaScript agent
const result = github_resolve_pr_thread("threadId");Test GitHub connectivity by fetching the current user's profile
Parameters: None
Example:
dmtools github_test// In JavaScript agent
const result = github_test();Trigger a specific GitHub Actions workflow by filename (workflow dispatch). The workflow must have 'on: workflow_dispatch' configured.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
ref(string) βͺ Optional- The branch or tag to run the workflow on (default: main)
- Example:
main
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
workflowId(string) π΄ Required- The workflow filename or ID to trigger
- Example:
rework.yml
-
inputs(string) βͺ Optional- JSON string with workflow inputs (e.g. {"user_request":"...","branch":"main"})
- Example:
{"user_request":"Please rework PROJ-123"}
Example:
dmtools github_trigger_workflow "value" "value"// In JavaScript agent
const result = github_trigger_workflow("workspace", "ref");Update an existing GitHub Check Run β set it to completed with success/failure conclusion, update summary and detailed text. Call this after github_create_check_run to finalize the check.
Parameters:
-
conclusion(string) βͺ Optional- Required when status=completed: success | failure | neutral | cancelled | skipped | timed_out | action_required
- Example:
success
-
summary(string) βͺ Optional- Updated Markdown summary for the check run output panel
- Example:
β Review complete. Found 3 issues.
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
checkRunId(string) π΄ Required- The ID of the check run to update (from github_create_check_run response)
- Example:
1234567890
-
text(string) βͺ Optional- Updated detailed Markdown content (full analysis, annotations etc.)
- Example:
## Issues Found ...
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
title(string) βͺ Optional- Updated title for the check run output panel
- Example:
AI PR Review β Complete
-
status(string) π΄ Required- The new status: in_progress | completed
- Example:
completed
Example:
dmtools github_update_check_run "value" "value"// In JavaScript agent
const result = github_update_check_run("conclusion", "summary");Update (edit) an existing comment on a GitHub pull request or issue by its comment ID.
Parameters:
-
commentId(string) π΄ Required- The ID of the comment to update
- Example:
123456789
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
text(string) π΄ Required- The new comment text (replaces existing content)
- Example:
β Analysis complete.
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
Example:
dmtools github_update_pr_comment "value" "value"// In JavaScript agent
const result = github_update_pr_comment("commentId", "workspace");Upload a local file as a GitHub release asset. Returns the uploaded asset metadata including browser_download_url. Set overwrite=true to automatically delete an existing asset with the same name before uploading.
Parameters:
-
workspace(string) π΄ Required- The GitHub owner/organization name
- Example:
IstiN
-
releaseId(string) π΄ Required- The numeric GitHub release ID returned by github_get_or_create_draft_release.
- Example:
323096697
-
filePath(string) π΄ Required- Absolute or relative path to the local file to upload.
- Example:
/tmp/preview.png
-
assetName(string) βͺ Optional- Optional asset filename shown in GitHub. Defaults to the local filename.
- Example:
clip_123.png
-
label(string) βͺ Optional- Optional display label for the uploaded asset.
- Example:
Screenshot
-
repository(string) π΄ Required- The GitHub repository name
- Example:
dmtools
-
contentType(string) βͺ Optional- Optional MIME type. Defaults to detected type or application/octet-stream.
- Example:
image/png
-
overwrite(string) βͺ Optional- If true, delete any existing asset with the same name before uploading. Defaults to false.
- Example:
true
Example:
dmtools github_upload_release_asset "value" "value"// In JavaScript agent
const result = github_upload_release_asset("workspace", "releaseId");