Skip to content

feat: Webhook Rewards No Config - Bounty #46 ($300)#86

Open
zhaog100 wants to merge 1 commit into
ubiquity-os:mainfrom
zhaog100:feat/webhook-rewards-no-config
Open

feat: Webhook Rewards No Config - Bounty #46 ($300)#86
zhaog100 wants to merge 1 commit into
ubiquity-os:mainfrom
zhaog100:feat/webhook-rewards-no-config

Conversation

@zhaog100
Copy link
Copy Markdown

@zhaog100 zhaog100 commented Apr 9, 2026

Webhook Rewards — No Config v1

Bounty: #46 | Reward: $300

What it does

  • Zero configuration needed — install and it works
  • Listens to GitHub webhooks (PR merge, issue close)
  • Fetches full issue/PR timeline
  • Counts qualifying events per contributor (comments, commits, reviews, approvals, etc.)
  • Checks contributor role qualification
  • Auto-generates reward permits posted as issue comments
  • Amount derived from Time and Priority labels

How it works

  1. Receives webhook event (issues.closed, pull_request.merged)
  2. Fetches issue + linked PR timelines from GitHub API
  3. Groups events by contributor, counts qualifying events
  4. Computes: totalReward = baseAmount (from Priority label) × eventCount × multiplier (from Time label)
  5. Posts structured reward permit comment on the issue

Files

File Purpose
src/index.ts Main plugin entry (~230 lines) — event routing, permit generation
src/reward-engine.ts Reward computation (~100 lines) — timeline counting, label pricing
src/webhook-handler.ts Timeline fetching (~80 lines) — GitHub API integration
manifest.json Plugin manifest with event listeners
package.json Dependencies and scripts
tsconfig.json TypeScript configuration
README.md Zero-config setup guide

Default Pricing

  • Priority: Urgent (500), High (300), Medium (200), Low (100)
  • Time: <1 Hour (1x), <1 Day (2x), <1 Week (4x), <1 Month (8x)

Roadmap

  • v1 (this): Zero config, timeline counting, label-based pricing
  • v2: User class identification (spec author, assignee, collaborator)
  • v3: Full configuration support

- Zero config: install and it works
- Rewards contributors on PR merge / issue close
- Amount from Time/Priority labels
- Role-based filtering

Bounty: ubiquity-os#46 - Webhook Rewards No Config ($300)
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 9, 2026

Warning

Rate limit exceeded

@zhaog100 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 28 minutes and 40 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 28 minutes and 40 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7088f981-9adf-4419-b156-290060006b28

📥 Commits

Reviewing files that changed from the base of the PR and between edb3383 and be3aea7.

📒 Files selected for processing (7)
  • proposals/webhook-rewards/README.md
  • proposals/webhook-rewards/manifest.json
  • proposals/webhook-rewards/package.json
  • proposals/webhook-rewards/src/index.ts
  • proposals/webhook-rewards/src/reward-engine.ts
  • proposals/webhook-rewards/src/webhook-handler.ts
  • proposals/webhook-rewards/tsconfig.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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 and usage tips.

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.

1 participant