Repository navigation
Support GitHub pull request merge writebacks - #125
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reached
More reviews will be available in 8 minutes and 38 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (19)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
1 issue found across 6 files
You’re at about 95% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
There was a problem hiding this comment.
2 issues found across 14 files (changes from recent commits).
You’re at about 96% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact contact@cubic.dev.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="packages/github/discovery/github/.adapter.md">
<violation number="1" location="packages/github/discovery/github/.adapter.md:18">
P2: The ID pattern `^\d+$` for merge.json is incorrect. The resource path has no `<id>` component to match — the filename is always exactly `merge.json`. This contradicts the ID Patterns section below which correctly says `exact file path`. The previous value `exact filename` was accurate.</violation>
</file>
Tip: Review your code locally with the cubic CLI to iterate faster.
Re-trigger cubic
| | `/github/repos/{owner}/{repo}/issues/<id>.json` | `/github/repos/{owner}/{repo}/issues/.schema.json` | `/github/repos/{owner}/{repo}/issues/.create.example.json` | `^[1-9]\d*$` | Creates a GitHub issue. | | ||
| | `/github/repos/{owner}/{repo}/issues/{issueNumber}/comments/<id>.json` | `/github/repos/{owner}/{repo}/issues/{issueNumber}/comments/.schema.json` | `/github/repos/{owner}/{repo}/issues/{issueNumber}/comments/.create.example.json` | `^\d+$` | Creates or updates a GitHub issue comment. | | ||
| | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews/<id>.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews/.schema.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews/.create.example.json` | `^\d+$` | Submits a pull request review with optional inline comments. | | ||
| | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.schema.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.create.example.json` | `^\d+$` | Merges a pull request. Defaults to squash when no merge method is supplied. | |
There was a problem hiding this comment.
P2: The ID pattern ^\d+$ for merge.json is incorrect. The resource path has no <id> component to match — the filename is always exactly merge.json. This contradicts the ID Patterns section below which correctly says exact file path. The previous value exact filename was accurate.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At packages/github/discovery/github/.adapter.md, line 18:
<comment>The ID pattern `^\d+$` for merge.json is incorrect. The resource path has no `<id>` component to match — the filename is always exactly `merge.json`. This contradicts the ID Patterns section below which correctly says `exact file path`. The previous value `exact filename` was accurate.</comment>
<file context>
@@ -15,7 +15,7 @@ Resources:
| `/github/repos/{owner}/{repo}/issues/{issueNumber}/comments/<id>.json` | `/github/repos/{owner}/{repo}/issues/{issueNumber}/comments/.schema.json` | `/github/repos/{owner}/{repo}/issues/{issueNumber}/comments/.create.example.json` | `^\d+$` | Creates or updates a GitHub issue comment. |
| `/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews/<id>.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews/.schema.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/reviews/.create.example.json` | `^\d+$` | Submits a pull request review with optional inline comments. |
-| `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json` | inline merge payload | n/a | exact filename | Merges a pull request. |
+| `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.schema.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.create.example.json` | `^\d+$` | Merges a pull request. Defaults to squash when no merge method is supplied. |
## Operations
</file context>
| | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.schema.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.create.example.json` | `^\d+$` | Merges a pull request. Defaults to squash when no merge method is supplied. | | |
| | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.schema.json` | `/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json/.create.example.json` | exact file path | Merges a pull request. Defaults to squash when no merge method is supplied. | |
Summary
/github/repos/{owner}/{repo}/pulls/{pullNumber}/merge.json.PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge, including merge method and optional commit title/message.Part of AgentWorkforce/workforce#147.
Companion PRs
Validation
npm run --workspace @relayfile/adapter-github testgit diff --check HEAD~1..HEAD