Skip to content
This repository has been archived by the owner on Apr 30, 2022. It is now read-only.

LEDBrain/add-project-on-labeled

Repository files navigation

add-project-on-labeled

A GitHub App built with Probot that adds PRs with the "dependencies" label to the fitting project.

Setup

With Docker

# 1. Pull the image (you can also build the image yourself, see down below for more information)
docker pull ledbrain/add-project-on-labeled

# 2. Start the container
docker run -e APP_ID=<app-id> -e PRIVATE_KEY=<pem-value> -e WEBHOOK_SECRET=<webhook-secret> ledbrain/add-project-on-labeled

I suggest mounting the .pem file (using absolute paths) and then setting the PRIVATE_KEY_PATH env to prevent any errors regarding newlines in the private key.

Without Docker

# Clone the repository
git clone https://github.com/ledbrain/add-project-on-labeled.git

# cd into the directory
cd add-project-on-labeled

# Install dependencies
npm install

# Run the bot
npm start

Building the Image

# 1. Build container
docker build -t add-project-on-labeled .

# 2. Start container
docker run -e APP_ID=<app-id> -e PRIVATE_KEY=<pem-value> -e WEBHOOK_SECRET=<webhook-secret> add-project-on-labeled

Again I suggest mounting the .pem file (using absolute paths) and then setting the PRIVATE_KEY_PATH env to prevent any errors regarding newlines in the private key.

Contributing

If you have suggestions for how this app could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

ISC © 2021 LEDBrain [email protected]