Polkassembly Logo

Create Pencil IconCreate
OpenGov

Notice: Polkadot has migrated to AssetHub. Balances, data, referenda, and other on-chain activity has moved to AssetHub.Learn more

View All Discussion

Add possibility to incentivize merged PRs directly from Github

userhirschenberger
5 years ago

First discussion happend in Kusama Direction.

The goal should be, to make it possible to incentivize PR-submitters with Treasury-KSM when the PR gets merged.

I first proposed to create an offchain worker that pulls the merged Github PRs, tries to find the submitter's address and spends a small amount of KSM to him. Maybe locked for some days to prevent abuse and offer the possibility to slashing.

In the discussion there was a big decline for an automatic solution, because of the possible huge amount of low-quality/low-impact PRs from the community and the increased amount of work for the reviewers.

Then there was a discussion about, what a low-quality/low-impact PS is. My argument was that the incentive should be just as big to give the user a little kick to create a PR for, e.g. a typo, a small issue on the webpage... that otherwise was not reported due to the laziness of the finder.

Then there was a proposal to maybe write a Github-Bot that scans for trigger lines like:

tip: 0.001 5EkgL7gLn5tnUsXQEyTuDuPfQw119tTFKE5YDvtEHuZcC25K

from the reviewer to trigger the payout.

One Problem that remains, was that only the Council has access to the Treasury and we don't want to call the council for every code-tipping. So my proposal was to create a Pot/Account, filled by the Council on a demand basis, that the Github-Bot can spend.

I'd like to continue the discussion here as I see real benefits on such a mechanism.

Comments (2)

5 years ago

It could be a little inflexible, we can see Raul and Shawn or others continuously monitoring the valuable github PRs and submit tips for developers. I'm afraid this function will bring more work burden for onchain tips.

profile
hirschenberger
5 years ago

Hey Patract, why do you think it is inflexibe and and will bring more work? I don't get your point.

PleaseLogin to comment

Help Center

Report an Issue
Feedback
Terms and Conditions
Github

Our Services

Docs
Terms of Website
Privacy Policy

A House of Commons Initiative.

Polka Labs Private Limited 2026

All rights reserved.

Terms and ConditionsTerms of Website
Privacy Policy