JacobCoffee / byte

The Discord bot built for developers
https://byte-bot.app/
MIT License
5 stars 2 forks source link

Enhancement (Core Feature): Create base GitHub app for Byte #31

Open JacobCoffee opened 12 months ago

JacobCoffee commented 12 months ago

Summary

For interactions with GitHub (e.g., anything other than reading) I think it would be best to create a GitHub app for API interaction. We can create discussions, reply on issues (#28, etc.), and more.

Looking across the available packages, https://github.com/yanyongyu/githubkit seems like the best fit. It utilizes httpx, has Octokit-like levels of feature set, async support, and is kept up to date.

Basic Example

https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/deciding-when-to-build-a-github-app

Drawbacks and Impact

No response

Unresolved questions

Project layout could be tricky. Do we have a fourth segment (on top of src/{byte,web,database}) for the GitHub portion, or can we intermingle in the byte "domain"?


[!NOTE]
We utilize Polar.sh to engage in regular as well as pledge-based > sponsorship.

Check out all issues funded or available for funding on our Polar.sh dashboard

  • If you would like to see an issue prioritized, make a pledge towards it!
  • We receive the pledge once the issue is completed & verified
  • This, along with engagement in the community, helps us know which features are a priority to our users.

Fund with Polar