Attempt at Forgejo Webhook support
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
2ef603151e
commit
8e94435604
7 changed files with 124 additions and 27 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue