This repository contains the code for the GitHub App "Issue Estimate Reminder". The app automatically detects when a new GitHub issue is created and writes a comment to remind the issue creator to provide a time estimate if it’s missing. This functionality helps the team scope and schedule projects more effectively.
Clone the repository:
git clone https://github.com/Addy832/Issue-Estimate-Reminder.git
cd Issue-Estimate-Reminder
Install dependencies:
bundle install
Create a .env
file in the root of the repository:
touch .env
Add your environment variables to the .env
file:
GITHUB_APP_ID=your_github_app_id
WEBHOOK_SECRET=your_webhook_secret
Place your private key file in the config
directory. Ensure the file is named issue-estimate-reminder.2024-07-12.private-key.pem
.
Add .env
and private key file to .gitignore
:
echo ".env" >> .gitignore
echo "config/issue-estimate-reminder.2024-07-12.private-key.pem" >> .gitignore
Start the Sinatra server:
ruby app.rb
Set up webhook forwarding using smee.io:
smee -u https://smee.io/JFmHbyLtWI9q3tP5 -t http://localhost:3000/payload
To run tests using RSpec:
bundle exec rspec