worknenjoy / gitpay

Bounties for issues on demand. Be rewarded by learning, using Git workflow and continuous integration
http://gitpay.me
Other
181 stars 161 forks source link

Send notification comment with our Gitpaybot for users who needs to claim issue #829

Closed alexanmtz closed 3 years ago

alexanmtz commented 3 years ago

We need to make our bot help contributors who need to claim a bounty.

This user may have an account on Gitpay or not.

We will check this weekly in our cronjobs: https://github.com/worknenjoy/gitpay/blob/master/cron.js

This Cron will query all tasks with bounties with status closed not paid, and it will comment on the issue with the following message:

hello {{github_user}},

Here's is Gitpaybot with good news! You have a bounty to claim :-)

There's a bounty of $ {{amount}} for a task you solved on Gitpay.

If you have a Pull Request merged, please claim on Gitpay (https://gitpay.me) on the issue:
{{url}}

Please set the title of your pull request to *issue#{{issue_id}}* and go in _Solve issue_ and send your Pull Request URL.

Why

A user can solve an issue in which there's a bounty on Gitpay, and he needs to be notified somehow.

Level

Medium

Current behavior

Expected behavior

Useful links

How to reproduce the user scenario

What you will need to complete this issue

You should create a coupon to apply 100% discount to be able to do a payment successfully in your local environment.

Tips

leonardohofling commented 3 years ago

@alexanmtz Hey! About the first line of the message "hello {{github_user}},": if the user is not registered on gitpay and not assigned, I can't get this information.

I guess we will show the github_user only if the user is assigned and has a github account, right?

alexanmtz commented 3 years ago

@leonardohofling , yes, you will show only in that case 👍