Skip to content

feat: implement github-webhook-rewards plugin#82

Open
sungdark wants to merge 1 commit into
ubiquity-os:mainfrom
sungdark:feat/plugin-github-webhook-rewards
Open

feat: implement github-webhook-rewards plugin#82
sungdark wants to merge 1 commit into
ubiquity-os:mainfrom
sungdark:feat/plugin-github-webhook-rewards

Conversation

@sungdark
Copy link
Copy Markdown

Summary

Implements wishlist issue #47: Generalized GitHub Webhook + Contributor Role -> Rewards with Config v3.

Plugin

Repository: sungdark/ubiquity-rewards

Features

  • Maps GitHub webhook events to contributor roles:
    • ISSUER: User who opened the issue
    • ASSIGNEE: User assigned to the issue
    • COLLABORATOR: PR author or merged PR contributor
    • CONTRIBUTOR: Any other timeline participant
  • Config v3 with customizable permissions and event weights
  • Timeline event scoring with uniqueness bonus for multiple event types
  • Automatic reward summary comments posted on issues/PRs
  • Built with Ubiquity OS plugin SDK for Cloudflare Workers

Config Example

plugins:
  - uses: sungdark/ubiquity-rewards@development
    with:
      permissions:
        ISSUER:
          issue.opened: 4
          issue.closed: 8
        ASSIGNEE:
          issue.closed: 8
        COLLABORATOR:
          pull_request.merged: 10
      uniquenessBonus: 5
      walletNetwork: evm
      walletToken: UBQ

Closes #47

Implements ubiquity-os#47: Generalized GitHub Webhook + Contributor Role -> Rewards
Plugin: sungdark/ubiquity-rewards

Maps GitHub webhook events to contributor roles:
- ISSUER: User who opened the issue
- ASSIGNEE: User assigned to the issue
- COLLABORATOR: PR author or merged PR contributor
- CONTRIBUTOR: Any other timeline participant

Features:
- Config v3 with customizable permissions and event weights
- Timeline event scoring with uniqueness bonus
- Automatic reward summary comments on issues/PRs
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 31, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b1ba0f46-81b9-457e-8b5d-b87c000b41a2

📥 Commits

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

📒 Files selected for processing (1)
  • README.md

📝 Walkthrough

Walkthrough

The PR adds a new "Implemented Plugins" section to the README documenting the github-webhook-rewards plugin. This entry includes an associated issue reference, plugin repository link, implementation status, and a functional description of the plugin's behavior: mapping GitHub webhook events to contributor roles and calculating reward points using configurable timeline event weights.

Possibly related issues

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Out of Scope Changes check ❓ Inconclusive Only README documentation was added. While the actual plugin code is not shown in the changeset summary, the README addition directly documents the implemented plugin without extraneous changes. Verify that the complete implementation files match the documented features and that no unrelated code changes were introduced outside the plugin scope.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed Title clearly describes the main change: implementing the github-webhook-rewards plugin feature.
Description check ✅ Passed Description thoroughly relates to the changeset, explaining the plugin's purpose, features, configuration, and implementation details.
Linked Issues check ✅ Passed PR addresses core requirements from #47: webhook-to-role mapping, event configuration, reward scoring, and Config v3 support are documented.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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.

Warning

⚠️ This pull request might be slop. It has been flagged by CodeRabbit slop detection and should be reviewed carefully.

@sungdark

This comment was marked as abuse.

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.

Generalized "GitHub Webhook + Contributor Role -> Rewards" With Config v3

1 participant