lupinia / awi

Full Lupinia/Awi website, built with Django
https://www.lupinia.net/
2 stars 1 forks source link

Post release notes from Github to Discord server #126

Closed lupinia closed 1 year ago

lupinia commented 1 year ago

Kind of a random idea, and an extension of #125, but since I do have a Discord server, with the goal of making my work visible to a community, it'd be nice to have some automation to update that community with what I'm working on at any given time.

Primary data to include:

Other possible data to include:

lupinia commented 1 year ago

I was really hoping there was an existing bot out there that does this, but all the ones I can find are either broken in some way, or absurd overkill for what I actually want to do. So I may have to roll my own (which I'm sure will be necessary for #127), which makes this more directly related to #125.

lupinia commented 1 year ago

Turns out this can be done entirely with webhooks, and doesn't need a bot at all, so yay!

lupinia commented 1 year ago

Looks like this is working, mostly: There's apparently no way to show the whole commit message using Github's built-in webhooks, so it will always be abbreviated. I hate that that's even a thing at all, and it's especially annoying in this context. So I'll have to set up a custom webhook at some point, as part of #125. But, at least it's relatively simple and straightforward.

Let's see what the issue comment results look like...

lupinia commented 1 year ago

The comment webhook events are much more robust, and I'm pretty happy with this as a starting point, so I think I can go ahead and mark this one done!