Skip to content

Add API endpoint to expose contributor submission status (partial #1056)#1176

Open
yanyishuai wants to merge 1 commit into
ramimbo:mainfrom
yanyishuai:fix/issue-1056-contributor-status
Open

Add API endpoint to expose contributor submission status (partial #1056)#1176
yanyishuai wants to merge 1 commit into
ramimbo:mainfrom
yanyishuai:fix/issue-1056-contributor-status

Conversation

@yanyishuai

Copy link
Copy Markdown

Summary

This PR adds an API endpoint to expose contributor submission status, partially addressing #1056 (Proposed work: expose contributor submission status).

Changes

  • Add GET /api/v1/accounts/{account}/submissions endpoint in app/accounts.py
  • Return account info, GitHub login, submissions array, and summary counts
  • Initial implementation with basic structure; full data integration pending

Why This Helps

  • Contributors: Can track their open submission pipeline (submitted, blocked, accepted, pending payout, paid)
  • Agents: Can query submission status without source-code inspection
  • Maintainers: Have a foundation to build upon

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:

  1. Query database for open PRs by contributor
  2. Integrate with GitHub API to get PR status (open, merged, closed, blocked)
  3. Check for duplicate/withdrawn/needs-info/conflict status
  4. Return maintainer acceptance and pending payout evidence
  5. Link to proof-backed paid work

This PR provides the foundation and API contract. Feedback welcome on the approach and next steps.

Bounty Claim

  • Wallet: Do4v7foHJvRJLpRRoGaVPWX6DDEjX3yTK7J91gpwUQpE
  • GitHub: @yanyishuai

…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)
@coderabbitai

coderabbitai Bot commented Jun 28, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@yanyishuai, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: af09c708-4897-4c99-a270-2846edefc764

📥 Commits

Reviewing files that changed from the base of the PR and between 3bc87d2 and 2f8f019.

📒 Files selected for processing (1)
  • app/accounts.py

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@qingfeng312 qingfeng312 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Finding:

  • [P1] Format the new account submissions endpoint before merge. The current head 2f8f0197732b49b7a577a96596d522f928421dde passes the full pytest run, but CI fails at the formatting gate: ruff format --check . reports Would reformat: app/accounts.py. This keeps the PR red even though the tests complete successfully (905 passed, 1 warning). Please run the formatter on app/accounts.py and 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, then ruff format --check . failed on app/accounts.py.

Scope boundary: review evidence only. No wallet signing, treasury mutation, payout execution, exchange, bridge, private data, credentials, or secrets involved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants