Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Consolidate pull request review tools#1192

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
almaleksia wants to merge4 commits intomain
base:main
Choose a base branch
Loading
fromalmaleksia/consolidate-prs-write
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 9 additions & 26 deletionsREADME.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -779,20 +779,6 @@ The following sets of tools are available (all are on by default):
- `startSide`: For multi-line comments, the starting side of the diff that the comment applies to. LEFT indicates the previous state, RIGHT indicates the new state (string, optional)
- `subjectType`: The level at which the comment is targeted (string, required)

- **create_and_submit_pull_request_review** - Create and submit a pull request review without comments
- `body`: Review comment text (string, required)
- `commitID`: SHA of commit to review (string, optional)
- `event`: Review action to perform (string, required)
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **create_pending_pull_request_review** - Create pending pull request review
- `commitID`: SHA of commit to review (string, optional)
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **create_pull_request** - Open new pull request
- `base`: Branch to merge into (string, required)
- `body`: PR description (string, optional)
Expand All@@ -803,11 +789,6 @@ The following sets of tools are available (all are on by default):
- `repo`: Repository name (string, required)
- `title`: PR title (string, required)

- **delete_pending_pull_request_review** - Delete the requester's latest pending pull request review
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **list_pull_requests** - List pull requests
- `base`: Filter by base branch (string, optional)
- `direction`: Sort direction (string, optional)
Expand DownExpand Up@@ -843,6 +824,15 @@ Possible options:
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **pull_request_review_write** - Write operations (create, submit, delete) on pull request reviews.
- `body`: Review comment text (string, optional)
- `commitID`: SHA of commit to review (string, optional)
- `event`: Review action to perform. If not specified, pending review is created. (string, optional)
- `method`: The write operation to perform on pull request review. (string, required)
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **request_copilot_review** - Request Copilot review
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
Expand All@@ -857,13 +847,6 @@ Possible options:
- `repo`: Optional repository name. If provided with owner, only pull requests for this repository are listed. (string, optional)
- `sort`: Sort field by number of matches of categories, defaults to best match (string, optional)

- **submit_pending_pull_request_review** - Submit the requester's latest pending pull request review
- `body`: The text of the review comment (string, optional)
- `event`: The event to perform (string, required)
- `owner`: Repository owner (string, required)
- `pullNumber`: Pull request number (number, required)
- `repo`: Repository name (string, required)

- **update_pull_request** - Edit pull request
- `base`: New base branch name (string, optional)
- `body`: New description (string, optional)
Expand Down
View file
Open in desktop

This file was deleted.

View file
Open in desktop

This file was deleted.

View file
Open in desktop

This file was deleted.

8 changes: 8 additions & 0 deletionspkg/github/__toolsnaps__/pull_request_read.snap
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -8,6 +8,14 @@
"properties": {
"method": {
"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 status of a head commit in a pull request. This reflects status of builds and checks.\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 the review comments on a pull request. Use with pagination parameters to control the number of results returned.\n 6. get_reviews - Get the reviews on a pull request. When asked for review comments, use get_review_comments method.\n",
"enum": [
"get",
"get_diff",
"get_status",
"get_files",
"get_review_comments",
"get_reviews"
],
"type":"string"
},
"owner": {
Expand Down
57 changes: 57 additions & 0 deletionspkg/github/__toolsnaps__/pull_request_review_write.snap
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
{
"annotations": {
"title": "Write operations (create, submit, delete) on pull request reviews.",
"readOnlyHint": false
},
"description": "Create and/or submit, delete review of a pull request.\n\nAvailable methods:\n- create: Create a new review of a pull request. If \"event\" parameter is provided, the review is submitted. If \"event\" is omitted, a pending review is created.\n- submit_pending: Submit an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request. The \"body\" and \"event\" parameters are used when submitting the review.\n- delete_pending: Delete an existing pending review of a pull request. This requires that a pending review exists for the current user on the specified pull request.\n",
"inputSchema": {
"properties": {
"body": {
"description": "Review comment text",
"type": "string"
},
"commitID": {
"description": "SHA of commit to review",
"type": "string"
},
"event": {
"description": "Review action to perform. If not specified, pending review is created.",
"enum": [
"APPROVE",
"REQUEST_CHANGES",
"COMMENT"
],
"type": "string"
},
"method": {
"description": "The write operation to perform on pull request review.",
"enum": [
"create",
"submit_pending",
"delete_pending"
],
"type": "string"
},
"owner": {
"description": "Repository owner",
"type": "string"
},
"pullNumber": {
"description": "Pull request number",
"type": "number"
},
"repo": {
"description": "Repository name",
"type": "string"
}
},
"required": [
"method",
"owner",
"repo",
"pullNumber"
],
"type": "object"
},
"name": "pull_request_review_write"
}
View file
Open in desktop

This file was deleted.

2 changes: 1 addition & 1 deletionpkg/github/instructions.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -48,7 +48,7 @@ Context management:
funcgetToolsetInstructions(toolsetstring)string {
switchtoolset {
case"pull_requests":
return"## Pull Requests\n\nPR review workflow: Always use 'create_pending_pull_request_review' → 'add_comment_to_pending_review'→ 'submit_pending_pull_request_review' for complex reviews with line-specific comments."
return"## Pull Requests\n\nPR review workflow: Always use 'pull_request_review_write' with method 'create' and no 'event' parameter to create a pending review, then 'add_comment_to_pending_review'to add comments, and finally 'pull_request_review_write' with method 'submit_pending' to submit the review for complex reviews with line-specific comments."
case"issues":
return"## Issues\n\nCheck 'list_issue_types' first for organizations to use proper issue types. Use 'search_issues' before creating new issues to avoid duplicates. Always set 'state_reason' when closing issues."
case"discussions":
Expand Down
Loading
Loading

[8]ページ先頭

©2009-2025 Movatter.jp