You now have built yourself a fully functional GitHub bot! Congratulations!!
However, the bot you've built today might not be the GitHub bot you really want. That's fine. The good thing is you've learned how to build one yourself, and you have access to all the libraries, tools, documentation needed in order to build another GitHub bot.
Related API: https://developer.github.com/v3/git/refs/#delete-a-reference.
The branch name can be found in the pull request webhook event.
Have your bot detect blacklisted keywords (e.g. offensive words, spammy contents) in issue comments. From there you can choose if you want to delete the comment, close the issue, or simply notify you of such behavior.
Folks using GitLab have said that they wished that this is available on GitHub. You can have a bot that does this! We made miss-islington do this for CPython.
When merge conflict occurs in a pull request, perhaps you can apply a label or tell the PR author about it, and ask them to rebase. You might have to do this as a scheduled task or a cron job.
You have a limit of 5000 API calls per hour using the OAuth token. The Rate Limit API docs have more info on this.
bedevere has 100% test coverage using pytest and pytest-asyncio. You can check the source code to find out how to test your bot.
gidgethub exceptions documentation.
Share with the world the bot that you just made. This is completely optional, but highly encouraged. Go to the :ref:`hall_of_fame` for more details.