Rename webhook to hook where appropriate

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2024-07-10 14:02:35 +02:00
commit 1cf93d1ba8
No known key found for this signature in database
GPG key ID: DEDA74AEECA9D0F2
4 changed files with 16 additions and 16 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, GitlabHook};
use crate::hook::{format_hook, GitlabHook};
use log::debug;
use xmpp::parsers::message::MessageType;
@ -74,10 +74,10 @@ impl XmppClient {
}
}
pub async fn webhook(&mut self, wh: GitlabHook) {
debug!("Received Webhook");
if let Some(display) = format_webhook(&wh) {
debug!("Webhook: {}", display);
pub async fn hook(&mut self, wh: GitlabHook) {
debug!("Received Hook");
if let Some(display) = format_hook(&wh) {
debug!("Hook: {}", display);
for room in &self.rooms {
self.agent
.send_message(