reposilite icon indicating copy to clipboard operation
reposilite copied to clipboard

Webhooks

Open ChachyDev opened this issue 3 years ago • 12 comments

Request details

Deployment notifications would send a webhook to the given URL in the configuration. For example, there could be Discord support which would display: image

ChachyDev avatar Oct 20 '21 17:10 ChachyDev

You can use this library to handle the webhooks: https://github.com/MinnDevelopment/discord-webhooks

hypherionmc avatar Dec 04 '21 18:12 hypherionmc

Could be implemented as a separate plugin in reality now the API is present

ChachyDev avatar Dec 26 '21 12:12 ChachyDev

Once plugins are fully implemented, it would be pretty easy to create plugins for different webhooks, as there are many API wrappers for services like Slack, Discord etc.

pauliesnug avatar Dec 30 '21 21:12 pauliesnug

After I finish #993, I'll be happy to implement it. Although since webhooks are using a pretty simple format, I don't think a wrapper is really needed, it's just a plus dependency.

TOTHT0MI avatar Jan 02 '22 11:01 TOTHT0MI

I have been working on this for the past few days, I will create a draft pull request as soon as I have gotten it all working smoothly.

joshuasing avatar Aug 19 '22 02:08 joshuasing

This is something I want to make use of in the near future. @joshuasing are you still working on this? Are you in need of any help or feedback?

Saladoc avatar Oct 03 '22 12:10 Saladoc

This is something I want to make use of in the near future. @joshuasing are you still working on this? Are you in need of any help or feedback?

Yes, I've been slowly working on this however I've been really busy and haven't been able to get much done. Hopefully in a few weeks I will have a working prototype, however if you have the time and want to, you could start on this and I can help when I have time.

joshuasing avatar Oct 03 '22 12:10 joshuasing

Any update on that?

IM-IgniteDEV avatar Nov 08 '22 16:11 IM-IgniteDEV

Any update on that?

Sorry for the delay in my reply.
Unfortunately I haven't made any more progress on this since I last commented, and I've somehow got even busier.

I would recommend that if anyone else wants to work on this, please do.
I'm likely unable to work on this for at least the next 2 months.

joshuasing avatar Nov 24 '22 12:11 joshuasing

Don't worry, let me know if you'd like to work on it in the future :)

dzikoysk avatar Nov 25 '22 14:11 dzikoysk

Do you have any working code you feel like pushing, so we could build on top of it?

I may start working on this after some important events have completed next week, because this is a feature our org. could use, as we rely heavily on reposilite.

I don't guarantee it however... I will see how my week goes, if it turns out ok, I will prob. start working on it by Sunday.

TOTHT0MI avatar Nov 26 '22 12:11 TOTHT0MI

For all those who need webhook support explicitly for Discord, I wrote a plugin! :)

https://github.com/Koboo/reposilite-discord-webhook-plugin

Koboo avatar Feb 05 '23 19:02 Koboo