GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Preparation
  • octomachinery bot tutorial
  • Follow @webknjaz
  • GitHub Bots: What and Why
  • Resources
  • Using octomachinery client on the command line
  • Using octomachinery to respond to GitHub events
  • What’s Next?
  • Hall of Fame: Bots By Students
  • Git Cheat Sheet
  • 🤖 octomachinery [docs]
  • 🤖 octomachinery [www]

This view

  • Original page
  • New address

GeezerVison is showing tutorial.octomachinery.dev — How to Build a GitHub Bot — octomachinery bot tutorial 1.0 documentation

 

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.
  • Say thanks when a pull request has been closed.
  • Apply a label to issues or pull requests.
  • Gives a thumbs up reaction to comments you made. (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
  • GitHub Bots: What and Why
  • Resources
  • Using octomachinery client on the command line
  • Using octomachinery to respond to GitHub events
  • Make your GitHub bot activity feedback more colorful
  • What’s Next?
  • Hall of Fame: Bots By Students
  • Git Cheat Sheet
 
©2018–2020 Sviatoslav Sydorenko, original: ©2018 Mariatta Wijaya. | Powered by Sphinx 1.8.5 & Alabaster 0.7.12 | Page source
Fork me on GitHub
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.