Gitlab uses webhooks push events, and the receiving end receives repeated notifications
漂亮男人
漂亮男人 2017-05-02 09:30:45
0
1
947

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?

漂亮男人
漂亮男人

reply all(1)
某草草

Same question, I also encountered this problem

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template