Skip to content
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

GitHub Action & Slackbot: /bounty $X Command #3767

Open
DonnieBLT opened this issue Mar 2, 2025 · 6 comments · May be fixed by #3809 or OWASP-BLT/BLT-Action#66
Open

GitHub Action & Slackbot: /bounty $X Command #3767

DonnieBLT opened this issue Mar 2, 2025 · 6 comments · May be fixed by #3809 or OWASP-BLT/BLT-Action#66
Labels

Comments

@DonnieBLT
Copy link
Collaborator

DonnieBLT commented Mar 2, 2025

GitHub Action Behavior:
• When a user comments on a GitHub issue with /bounty $X, the action will:
1. Add or update a $X Bounty label on the issue (if multiple bounties are placed, it updates to reflect the total bounty).
2. Post a comment confirming the bounty.
3. Track the user’s sponsorship history (e.g., total number of developers they have sponsored).
4. If a bounty already exists, it updates the total bounty amount instead of adding multiple labels.

GitHub Issue Output:

Once the bounty is placed, the GitHub Action will comment on the issue:

💰 A bounty has been added!

This issue now has a total bounty of $X thanks to @githubusername.
They have sponsored # developers so far!

Want to contribute? Solve this issue and claim the reward.

(If multiple bounties are placed on the same issue, the comment is updated to reflect the new total bounty.)

Slackbot Integration:

When a bounty is placed using /bounty $X in Slack:
• The Slackbot will confirm the action and post a message:

🚀 Bounty Alert!

@githubusername has added a $X bounty to an issue: .
The total bounty for this issue is now $Y.
Contribute now and earn rewards!

Additional Features (Optional Enhancements)
• Bounty Claiming: When an issue is closed (pr is merged), the GitHub Action will trigger the payouts.
• Leaderboard: update the leaderboard (user profile.winnings)

@github-project-automation github-project-automation bot moved this to Backlog in 📌 All Mar 2, 2025
@DonnieBLT DonnieBLT added the $5 label Mar 2, 2025
@DonnieBLT DonnieBLT changed the title Add a /bounty $5 command to the GitHub action and slackbot GitHub Action & Slackbot: /bounty $X Command Mar 2, 2025
@rishyym0927
Copy link

/assign

Copy link
Contributor

github-actions bot commented Mar 2, 2025

Hello @rishyym0927! You've been assigned to OWASP-BLT/BLT issue #3767. You have 24 hours to complete a pull request.

Copy link
Contributor

github-actions bot commented Mar 3, 2025

⏰ This issue has been automatically unassigned due to 24 hours of inactivity. The issue is now available for anyone to work on again.

@github-actions github-actions bot removed the assigned label Mar 3, 2025
@rishyym0927
Copy link

/assign

Copy link
Contributor

github-actions bot commented Mar 3, 2025

Hello @rishyym0927! You've been assigned to OWASP-BLT/BLT issue #3767. You have 24 hours to complete a pull request.

Copy link
Contributor

github-actions bot commented Mar 4, 2025

⏰ This issue has been automatically unassigned due to 24 hours of inactivity. The issue is now available for anyone to work on again.

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