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
Add standalone merge and list PR functionality so users can ask to
merge PRs directly (e.g. "merge PR #5") instead of only being able
to merge as part of the code_feature flow.
- Add list_pull_requests, get_pull_request, merge_pull_request to GitHubClient
- Add list_prs tool: list open/closed/all PRs in a repo
- Add merge_pr tool: merge a PR by number with squash/merge/rebase support
- Register both tools in the omi-tools manifest
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
"description": "List pull requests in a GitHub repository. Use this when the user wants to see pull requests, check open PRs, view recent PRs, or find a PR number.",
241
+
"endpoint": "/tools/list_prs",
242
+
"method": "POST",
243
+
"parameters": {
244
+
"properties": {
245
+
"repo": {
246
+
"type": "string",
247
+
"description": "Repository to list PRs from (format: 'owner/repo'). If not provided, uses the user's default repository."
248
+
},
249
+
"state": {
250
+
"type": "string",
251
+
"enum": ["open", "closed", "all"],
252
+
"description": "Filter by PR state. Defaults to 'open'."
253
+
},
254
+
"limit": {
255
+
"type": "integer",
256
+
"description": "Maximum number of PRs to return (default: 10, max: 50)"
257
+
}
258
+
},
259
+
"required": []
260
+
},
261
+
"auth_required": True,
262
+
"status_message": "Getting pull requests..."
263
+
},
264
+
{
265
+
"name": "merge_pr",
266
+
"description": "Merge a pull request in a GitHub repository. Use this when the user asks to merge a PR, accept a PR, merge changes, or apply a pull request. Requires the PR number.",
267
+
"endpoint": "/tools/merge_pr",
268
+
"method": "POST",
269
+
"parameters": {
270
+
"properties": {
271
+
"pr_number": {
272
+
"type": "integer",
273
+
"description": "The pull request number to merge. Required."
274
+
},
275
+
"repo": {
276
+
"type": "string",
277
+
"description": "Repository the PR is in (format: 'owner/repo'). If not provided, uses the user's default repository."
278
+
},
279
+
"merge_method": {
280
+
"type": "string",
281
+
"enum": ["squash", "merge", "rebase"],
282
+
"description": "How to merge the PR. Defaults to 'squash'. Use 'merge' for a merge commit, 'rebase' for rebasing."
0 commit comments