Rename webhook to hook where appropriate
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
1301275788
commit
1cf93d1ba8
4 changed files with 16 additions and 16 deletions
10
src/bot.rs
10
src/bot.rs
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue