-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Bounties 💸 #79
Conversation
@raysubham is attempting to deploy a commit to the formbricks Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions for pull request titles! 🙏 |
Hey @raysubham so cool! Thanks a lot also for the video and great PR description :)) I've applied for a prod API key from Tremendous. Maybe we can use the meanwhile to add a limit to the bounties which can be issued. It makes me a bit nervous to think that someone might exploit this to issue and reward a bunch of bounties to themselves. The form is there already, can we introduce the max bounty amount? ![]() Would only require the app to check if the /bounty exceeds the max amount and display a corresponding notifier, if it does 🤓 I'm aware that bounties are only paid out if a PR gets merged but it would still let me sleep a bit better 😉 Thanks a ton, this is great! |
Totally agree, We should have proper guardrails in place to avoid exploiting this feature. Additionally, before awarding bounty, we also check whether the PR author is assigned the issue or not. |
@jobenjada I have added the max bounty settings. Please review it. Screen.Recording.2024-05-09.at.10.27.45.PM.mov |
/award 800 |
Awarding raysubham: 800 points! |
What does this PR do?
/bounty
command to create bounties for an issue. Only allows bounty on issues.bounties
table to the db.Fixes #74
Screen.Recording.2024-05-01.at.7.1.mp4
How should this be tested?
.env
file, copy them from the.env.example
file.Checklist
Required
pnpm build
console.logs
git pull origin main
Appreciated