Attempt at Forgejo Webhook support

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2024-04-19 20:49:31 +02:00
commit 8e94435604
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2
7 changed files with 124 additions and 27 deletions

View file

@ -13,7 +13,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
use crate::webhook::{format_webhook, WebHook};
use crate::webhook::{format_webhook, GitlabHook};
use log::debug;
use xmpp::parsers::message::MessageType;
@ -74,7 +74,7 @@ impl XmppClient {
}
}
pub async fn webhook(&mut self, wh: WebHook) {
pub async fn webhook(&mut self, wh: GitlabHook) {
debug!("Received Webhook");
if let Some(display) = format_webhook(&wh) {
debug!("Webhook: {}", display);