search

Home  >  Q&A  >  body text

gitlab使用webhooks push事件,接收端重复收到通知

在gitlab上使用了web hooks 监听push发生,接收端是用NodeJS写的一个路由,如下

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);
    });

测试提交是会接收到,但是不断重复地收到之前测试的push通知

求问大神,应该怎么通知一次就可以了呢

漂亮男人漂亮男人2753 days ago917

reply all(1)I'll reply

  • 某草草

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

    Same question, I also encountered this problem

    reply
    0
  • Cancelreply