search

Home  >  Q&A  >  body text

Gitlab uses webhooks push events, and the receiving end receives repeated notifications

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?

漂亮男人漂亮男人2829 days ago981

reply all(1)I'll reply

  • 某草草

    某草草2017-05-02 09:32:45

    Same question, I also encountered this problem

    reply
    0
  • Cancelreply