Web: Bot / Github integration Revamp MVP

Created on 20 Dec 2017  路  21Comments  路  Source: gitcoinco/web

What

The ability to post a bounty, claim a bounty, or approve a bounty, directly from github

Scope

For each of the above actions, the user could enter into any github issue

@gitcoinbot bounty 1.1 ETH
@gitcoinbot approve
@gitcoinbot claim
@gitcoinbot tip <username>

and receive a link back to gitcoin.co, which when they click on it, they get with forms autofilled. they can submit the form and then approve in metamask

Other notes

Here is a proof of concept I hacked together back in the day. http://bits.owocki.com/1m2N3m3i0s2R/bot.gif

high-priority

All 21 comments

cc @kumavis @mbeylin @danfinlay let me know what you think of this :) going to bounty it today

__This issue now has a funding of 0.15 ETH (120.72 USD) attached to it.__

  • If you would like to work on this issue you can claim it here.
  • If you've completed this issue and want to claim the bounty you can do so here
  • Questions? Get help on the Gitcoin Slack
  • $11873.66 more Funded OSS Work Available at: https://gitcoin.co/explorer

Very cool. What did you build the Proof of Concept in? (language)

That's pretty cool. I'll give this one a shot.

Those look like a great inaugural set of commands!

One thought: Since having the bot tip on your behalf requires it holding a balance in your name, and some users might prefer to use their own wallet, for a more edge-secured metamask-style, what about a flow like this:

  • User types @gitcoinbot tip @owocki 0.1 ether
  • Bot hearts the comment
  • Bot replies To complete the tip, please visit this link.
  • User clicks link, visits gitcoin web3-enabled site, where they get a variety of ways to complete the tip, and they're able to tip directly.
  • Bot updates latest comment to Tipped @owocki 0.1 ether.

Very cool. What did you build the Proof of Concept in? (language)

Just Python -- Github has a nice requestful API too

One thought: Since having the bot tip on your behalf requires it holding a balance in your name, and some users might prefer to use their own wallet, for a more edge-secured metamask-style, what about a flow like this:

Strongly agree with this. For legal reasons, gitcoin will not hold any funds on behalf of a user

__The funding of 0.15 ETH (124.2 USD) attached has been claimed by @romanjesus.__

@romanjesus, please leave a comment to let the funder (@owocki) and the other parties involved your implementation plan. If you don't leave a comment, the funder may expire your claim at their discretion.

Hey @owocki, I just claimed this issue via gitcoin.co there is no repository for this project so I should make one from scratch, correct?

i had envisioned making this just another management command in the web repo..

but i guess theres no reason to go the monolith route.. sure, go ahead and make a new repo

heres my old code

https://gist.github.com/owocki/26d4cb0ab7db5b3a5e340220bdb4c12f

this site is where you get an API key for github https://developer.github.com/v3/

here is where most of the github api centric code lives https://github.com/gitcoinco/web/blob/master/app/app/github.py

@romanjesus hows it going?

@owocki good! Thanks for the documentation, I went through it and got a webhook set up with a sample app. I should have something to push up tomorrow. I didn't realize the deadline was coming up so soon, but hoping to have the mvp tomorrow night.

okie dokie... id rather have something that's good / maintainable than something thats rushed... @romanjesus want to say that we'll aim for delivery mid to late this week?

That's totally fair, I'm ok with that @owocki 馃憤

Hey @romanjesus recently joined the Gitcoin squad alongside @owocki and checking in here. How goes it?

Hey @vs77bb, congratulations! And it's going well, I reached out to @owocki via the gitcoin slack to talk about the bounty. We're deciding on increasing the scope as a result of some github api constraints I came across.

@romanjesus still interested in this?

definitely, I'll have a pr soon with what we discussed over slack 馃憤

@romanjesus @owocki Did this one need pay out?

@romanjesus @owocki Bump :D

@vs77bb PR is ready to go. Awaiting @mbeacom 's approval

https://github.com/gitcoinco/web/pull/236

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kziemianek picture kziemianek  路  3Comments

Makondor2 picture Makondor2  路  3Comments

frankchen07 picture frankchen07  路  4Comments

mbeacom picture mbeacom  路  4Comments

kuhnchris picture kuhnchris  路  4Comments