Skip to content

Commit

Permalink
fix(web): fix disabledEvents looking for event name rather than short…
Browse files Browse the repository at this point in the history
…name
  • Loading branch information
David Sevilla Martín authored Jul 13, 2017
1 parent b656754 commit 4dac4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Web.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ app.post('/', (req, res) => {
};
const branch = data.ref && data.ref ? data.ref.split('/')[2] : data.object_attributes.ref;
if (!channel) return;
if (disabledEvents.includes(event) || disabledEvents.includes(`${event}${actionText}`)) return;
if (disabledEvents.includes(eventName) || disabledEvents.includes(`${eventName}${actionText}`)) return;
if (ignoredUsers && (ignoredUsers.includes(actor.name) || ignoredUsers.includes(actor.id))) return;
if (ignoredBranches && branch && ignoredBranches.includes(branch)) return;

Expand Down

0 comments on commit 4dac4aa

Please sign in to comment.