pulsar-edit / package-backend

Pulsar Server Backend for Packages
https://api.pulsar-edit.dev
MIT License
11 stars 11 forks source link

Webhooks on Package Publish and Version Publish #156

Closed confused-Techie closed 1 year ago

confused-Techie commented 1 year ago

Requirements

Description of the Change

This PR adds the ability for the backend to send out webhooks whenever a new package, or package version is published.

This Webhooks, as discussed on Discord, will then be sent to the Pulsar Discord Server to allow not only admins, but users to gain better insight into what's being published in real time, and lets community members show off their packages easier, or let others find new working packages easier.

Webhooks will be sent after the return is given to the user so they don't have to wait on this process.

To configure webhooks, the backend will need a username for them when sending, and will need URLs for both the package and version publishing (Although these can be the same)