Add API endpoint to expose contributor submission status (partial #1056)#1176
Add API endpoint to expose contributor submission status (partial #1056)#1176yanyishuai wants to merge 1 commit into
Conversation
…imbo#1056) - Add GET /api/v1/accounts/{account}/submissions endpoint - Return account, GitHub login, submissions array, and summary counts - Initial implementation with basic structure; full data integration pending - Addresses ramimbo#1056 (Proposed work: expose contributor submission status)
|
Warning Review limit reached
More reviews will be available in 56 minutes and 17 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
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 |
qingfeng312
left a comment
There was a problem hiding this comment.
Finding:
- [P1] Format the new account submissions endpoint before merge. The current head
2f8f0197732b49b7a577a96596d522f928421ddepasses the full pytest run, but CI fails at the formatting gate:ruff format --check .reportsWould reformat: app/accounts.py. This keeps the PR red even though the tests complete successfully (905 passed, 1 warning). Please run the formatter onapp/accounts.pyand push the resulting small diff.
Evidence checked:
- PR #1176 is open, non-draft, and authored by another account.
- Inspected
app/accounts.py. - Checked CI run
28334737444: pytest passed, thenruff format --check .failed onapp/accounts.py.
Scope boundary: review evidence only. No wallet signing, treasury mutation, payout execution, exchange, bridge, private data, credentials, or secrets involved.
Summary
This PR adds an API endpoint to expose contributor submission status, partially addressing #1056 (Proposed work: expose contributor submission status).
Changes
GET /api/v1/accounts/{account}/submissionsendpoint inapp/accounts.pyWhy This Helps
Current Implementation
The endpoint currently returns:
{ "account": "github:username", "github_login": "username", "submissions": [], "summary": { "submitted": 0, "blocked": 0, "accepted": 0, "pending_payout": 0, "paid": 0 }, "note": "Initial implementation. Full submission tracking pending database schema and GitHub API integration." }Next Steps
To fully address this issue, we need to:
This PR provides the foundation and API contract. Feedback welcome on the approach and next steps.
Bounty Claim
Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE@yanyishuai