Web hooks are used on gitlab to monitor push occurrences. The receiving end is a route written in NodeJS, as follows
app.post('/git/hooks' , (req,res) => {
const kind = req.body.object_kind,
name = req.body.user_name,
msg = req.body.commits[0].message;
console.log(kind);
});
The test submission will be received, but the push notification of the previous test will be received repeatedly
May I ask the master, how can I notify you once?
Same question, I also encountered this problem