Skip to content

maxandersen/botty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

The simplest github bot app

This repo has a proof-of-concept for a tiny github bot app built with jbang and quarkus using https://github.com/quarkiverse/quarkiverse-github-app extension.

Prerequisite:

  • Have a https://smee.io channel created

  • Have a github app created with the permissions you need

  • Add a webhook secret (random characters)

  • Create a private key for the app (scroll down)

Then create a .env file (don’t commit it) with contents like:

QUARKUS_GITHUB_APP_APP_ID=<your numeric app id>
QUARKUS_GITHUB_APP_WEBHOOK_SECRET=<entered secret>
QUARKUS_GITHUB_APP_WEBHOOK_PROXY_URL=<your Smee.io channel URL>
QUARKUS_GITHUB_APP_PRIVATE_KEY=-----BEGIN RSA PRIVATE KEY-----\
                                                                \
                        YOUR PRIVATE KEY                        \
                                                                \
-----END RSA PRIVATE KEY-----

Then you can run your bot with jbang bot.java

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages