daily-code icon indicating copy to clipboard operation
daily-code copied to clipboard

/bounty should trigger an entry to a google doc

Open hkirat opened this issue 3 months ago • 29 comments

To keep things simple, before we have bounty-dispenser, we need a way to log all the bounties somewhere so we can track them effectively

@devsargam do u think this is easy to do?

hkirat avatar May 06 '24 11:05 hkirat

Lets do a cloudflare fn so its easy to deploy

hkirat avatar May 06 '24 11:05 hkirat

The ckoudflare fn can also post it on discord/tweet out at https://twitter.com/Techalerts101

hkirat avatar May 06 '24 11:05 hkirat

The ckoudflare fn can also post it on discord/tweet out at https://twitter.com/Techalerts101

can other people try to build this as well or it is assigned to sargam only?

piyushhsainii avatar May 06 '24 11:05 piyushhsainii

@hkirat yep very easy doable 100%

devsargam avatar May 06 '24 11:05 devsargam

@piyushhsainii do u want to do it? @devsargam can u guide them?

hkirat avatar May 06 '24 11:05 hkirat

feel free to divide

hkirat avatar May 06 '24 11:05 hkirat

yeah can guide ofc

devsargam avatar May 06 '24 11:05 devsargam

@hkirat can u assign @piyushhsainii. I'll help if needed

devsargam avatar May 06 '24 11:05 devsargam

@piyushhsainii do u want to do it? @devsargam can u guide them?

Happy to contribute

piyushhsainii avatar May 06 '24 11:05 piyushhsainii

@devsargam one question , do i need to create a section in daily code where you can log the bounty details that will store it in the google doc ,right?

piyushhsainii avatar May 06 '24 11:05 piyushhsainii

Need to do some research here. I am guessing the core bot at https://github.com/code100x/github-sol-auto-dispenser is needed.

But I think should be a generic one to be used in cms, daily and chess too.

devsargam avatar May 06 '24 11:05 devsargam

@piyushhsainii sir I want to work on this enhancement sir can you give me a chance to work on it if not no problem sir you carry on.

Ameerjafar avatar May 06 '24 15:05 Ameerjafar

Hey @Ameerjafar. @piyushhsainii has already started the work can u work on something else for now?

devsargam avatar May 06 '24 15:05 devsargam

ok @devsargam sir

Ameerjafar avatar May 06 '24 15:05 Ameerjafar

@hkirat the automation-bot functionality is done, just need to add google doc now, sir can i use google sheet API for that? or strictly cloudfare is required?

piyushhsainii avatar May 06 '24 18:05 piyushhsainii

any API is fine We need this asap can u PR whatever u have right now @piyushhsainii ?

hkirat avatar May 07 '24 04:05 hkirat

please acitvely open draft PRs so we can partially review it

hkirat avatar May 07 '24 04:05 hkirat

Hey @hkirat should this be a part of daily code or a standalone project?

devsargam avatar May 07 '24 04:05 devsargam

Probably standalone yeah

hkirat avatar May 07 '24 04:05 hkirat

https://github.com/code100x/bounty-hook

hkirat avatar May 07 '24 05:05 hkirat

Can u create a repo sth like bounty-tracker with just a readme @hkirat

devsargam avatar May 07 '24 05:05 devsargam

Probably standalone yeah

@hkirat

The Automation-Bot setup is done which respond to appropiate bounty message

  • Automatic Discord Log is also setup

Raising a PR for this now.

piyushhsainii avatar May 07 '24 05:05 piyushhsainii

Can't this be integrated with the bounty-dispenser only?

I was thinking of working on this, where the owner has the track of all the bounties on his dashboard in the bounty-dispenser.

@devsargam @hkirat @piyushhsainii

nimit9 avatar May 07 '24 05:05 nimit9

Yeah bounty dispenser is better but this should work as an intermediate solution as a lot of bounties are being dispatched right now hard to keep up

devsargam avatar May 07 '24 05:05 devsargam

we will need some sort of manual intervention in bounty bot. Its a lil unsafe having a private key on an aws server

hkirat avatar May 07 '24 05:05 hkirat

Also can get tricky in taxes if we do it via sol

hkirat avatar May 07 '24 05:05 hkirat

@devsargam https://github.com/code100x/bounty-hook

hkirat avatar May 07 '24 05:05 hkirat

Can't we do this on Zapier? Or is it expensive? @hkirat @devsargam

nimit9 avatar May 07 '24 05:05 nimit9

Yes but, github webhook hitting a hono app deployed on cloudflare fn should do it

devsargam avatar May 07 '24 05:05 devsargam