Khaaz / Discord-GitHook

Lightweight API that routes github and gitlab webhook requests to Discord
MIT License
9 stars 2 forks source link

Fix issue with unknown events (hotfix) #6

Closed matthew119427 closed 4 years ago

matthew119427 commented 4 years ago

This pull request fixes an issue where unknown events to the router will register as a "close" event, since it is not pulling up with the logic in the if/elseif statements currently in place, so it'll think it's close. This PR explicitly checks if the Merge Request and Issue is a close event, and will treat as such. If it doesn't recognize any of the other events that are currently in place, it will simply return.

matthew119427 commented 4 years ago

wrong branch