From the course: Building GitHub Bots

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Write and deploy a "Hello World" web service

Write and deploy a "Hello World" web service

From the course: Building GitHub Bots

Write and deploy a "Hello World" web service

- [Instructor] In the previous video, we made requests to GitHub. We were able to create an issue, an issue comment, and close the same issue. Whatever we did, we triggered that action ourselves with the help of a terminal. But the bot should do it all on its own, don't you think? In this video, we use what we know so far and start building an actual bot, which will get triggered on an event, say creating an issue or a public request. We will first create a web server that responds to GitHub webhook events. Talking about webhook events, when an event is triggered, GitHub can notify you about the event by sending you a post request along with the payload. Some example events are issues or public requests and sometimes status. The actions associated with issues can be assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, et cetera. For the public request event, the actions can be opened, edited, closed or something like reopened or review requested. The same goes…

Contents