diff --git a/lib/Web.js b/lib/Web.js index d0210d6..0507dae 100644 --- a/lib/Web.js +++ b/lib/Web.js @@ -47,7 +47,8 @@ app.post('/', (req, res) => { const repo = data.project.path_with_namespace; const channels = ChannelConfig.findByRepo(repo); - const actionText = data.object_attributes && data.object_attributes.action ? `/${data.object_attributes.action}` : ''; + const action = data.object_attributes && (data.object_attributes.action || data.object_attributes.state); + const actionText = action ? `/${action}` : ''; Log.verbose(`GitLab | ${repo} - ${eventName}${actionText} (${channels.size} channels)`); res.send(`${data.project.path_with_namespace} : Received ${eventName}${actionText}, emitting to ${channels.size} channels...`); const eventResponse = GitlabEventHandler.use(data, event);