Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 2.29 KB

index.rst

File metadata and controls

68 lines (50 loc) · 2.29 KB

How to Build a GitHub Bot

GitHub provides a great platform for collaborating. You can take it to the next level by creating custom GitHub bots. By delegating some of the chores to a bot, you get to spend more time developing your project and collaborating with others.

Learn how to automate your workflow by building a personal GitHub assistant for your own project. We'll use a framework called octomachinery to write a GitHub bot that does the following:

  • Greet the person who created an issue in your project <greet_author>.
  • Say thanks when a pull request has been closed <say_thanks>.
  • Apply a label to issues or pull requests <label_prs>.
  • Gives a thumbs up reaction to comments you made <react_to_comments>. (becoming your own personal cheer squad).

The best part is, you get to do all of the above using Python 3.7 as the framework heavily relies on some of its features!

This tutorial is heavily based on Build-a-GitHub-Bot Workshop by Mariatta Wijaya which she first presented at PyCon US 2018. Yet, current version uses a bit more higher level approaches to abstract some implementation details away from programmers and help them focus on the business logic part.

Code of Conduct

Be open, considerate, and respectful.

License

The original tutorial has been written by Mariatta Wijaya, is licensed under CC-BY-SA 4.0 and adopted to use octomachinery framework as a basis for exercises by Sviatoslav Sydorenko.

Agenda

preparation why-github-bots resources octomachinery-cmd-line octomachinery-for-github-apps octomachinery-with-checks-api whats-next hall-of-fame git-basics