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
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Development environment setup1m 33s
-
(Locked)
Get started2m 48s
-
(Locked)
Using gidgethub on the command line20m 1s
-
(Locked)
Write and deploy a "Hello World" web service14m 15s
-
(Locked)
Using gidgethub to respond to webhooks16m 54s
-
(Locked)
Do more with your GitHub bot5m 50s
-
(Locked)
Challenge: Comment when a pull request is merged29s
-
(Locked)
Solution: Comment when a pull request is merged5m 37s
-
(Locked)
-
-
-