david
(David Taylor)
9 نوفمبر 2021، 10:11ص
2
MessageBus هو خيار - يمكنك العثور على مكتبات العملاء لـ Ruby و JS هنا: GitHub - discourse/message_bus: A reliable and robust messaging bus for Ruby and Rack
ولكن من المحتمل أن يكون الحل الأبسط هو استخدام ميزة WebHooks الخاصة بـ Discourse. بهذه الطريقة، يمكن لـ Discourse إجراء طلب ويب إلى نقطة النهاية الخاصة بك كلما كان هناك موضوع/منشور جديد. يمكنك العثور على مزيد من المعلومات هنا:
A webhook is a way to notify external services about changes on the internet. It’s easier to setup, manage and develop than a Discourse plugin. Though, it does require you to program a little bit or understand its technical details.
In this howto , I’ll set up webhook to power a Github bot for referencing pull request brought in a forum. We’ll want to see a new comment on Github pull request when a new post has a link to it.
It’s a very simple process:
Publish a new post.
A webhook event happ…
5 إعجابات