An open API service indexing awesome lists of open source software.

https://github.com/maxandersen/botty


https://github.com/maxandersen/botty

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

## 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 https://github.com/settings/apps/new[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:

[source,shell]
[source]
----
QUARKUS_GITHUB_APP_APP_ID=
QUARKUS_GITHUB_APP_WEBHOOK_SECRET=
QUARKUS_GITHUB_APP_WEBHOOK_PROXY_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`