https://github.com/maxandersen/botty
https://github.com/maxandersen/botty
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxandersen/botty
- Owner: maxandersen
- Created: 2020-12-22T21:19:31.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T23:45:20.000Z (over 5 years ago)
- Last Synced: 2025-02-11T16:25:55.730Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 2.93 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.adoc
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`