You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pull_requests): add get_ci_summary method to pull_request_read tool
Add a new method to the PullRequestRead tool that aggregates commit
status and check runs into a single CI summary with an overall verdict
(passing, failing, pending, or no_checks). This eliminates the need
for multiple API calls to determine if a PR's CI is green.
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/pull_request_read.snap
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
"inputSchema": {
8
8
"properties": {
9
9
"method": {
10
-
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get combined commit status of a head commit in a pull request.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns threads with metadata (isResolved, isOutdated, isCollapsed) and their associated comments. Use cursor-based pagination (perPage, after) to control results.\n 6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.\n 7. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.\n 8. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.\n",
10
+
"description": "Action to specify what pull request data needs to be retrieved from GitHub. \nPossible options: \n 1. get - Get details of a specific pull request.\n 2. get_diff - Get the diff of a pull request.\n 3. get_status - Get combined commit status of a head commit in a pull request.\n 4. get_files - Get the list of files changed in a pull request. Use with pagination parameters to control the number of results returned.\n 5. get_review_comments - Get review threads on a pull request. Each thread contains logically grouped review comments made on the same code location during pull request reviews. Returns threads with metadata (isResolved, isOutdated, isCollapsed) and their associated comments. Use cursor-based pagination (perPage, after) to control results.\n 6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.\n 7. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.\n 8. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.\n 9. get_ci_summary - Get a summary of the CI status for a pull request. Combines the commit status and check runs into a single aggregated result with an overall verdict (passing, failing, or pending).\n",
Copy file name to clipboardExpand all lines: pkg/github/pullrequests.go
+191-1Lines changed: 191 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -39,8 +39,9 @@ Possible options:
39
39
6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.
40
40
7. get_comments - Get comments on a pull request. Use this if user doesn't specifically want review comments. Use with pagination parameters to control the number of results returned.
41
41
8. get_check_runs - Get check runs for the head commit of a pull request. Check runs are the individual CI/CD jobs and checks that run on the PR.
42
+
9. get_ci_summary - Get a summary of the CI status for a pull request. Combines the commit status and check runs into a single aggregated result with an overall verdict (passing, failing, or pending).
0 commit comments