dwyl / dwylbot

:robot: Automating our GitHub Workflow to improve team communication/collaboration and reduce tedious repetition!
28 stars 7 forks source link

open PR without a descripton #81

Closed SimonLab closed 7 years ago

SimonLab commented 7 years ago

Add a comment which warns the user to add a description on a PR see https://github.com/dwyl/dwylbot/pull/79#pullrequestreview-44316470

SimonLab commented 7 years ago

We need first to know the type of the event, issue or pull request, to be able to apply the right set of rules. We can get this information from the x-github-event header of the request, with phoenix: Plug.Conn.get_req_header conn, "x-github-event")

Here is the list of all the possible type of events: https://developer.github.com/webhooks/#events

ghost commented 7 years ago

https://github.com/dwyl/dwylbot/pull/90 dwylbot doesn't comment when there is a description 👍

https://github.com/dwyl/dwylbot/pull/91 dwylbot does comment when there is no description 👍