登录

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通知

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

# Git
漂亮男人漂亮男人2151 天前589 次浏览

全部回复(1) 我要回复

  • 某草草

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

    同问同问,我也遇到这个问题了

    回复
    0
  • 取消回复发送