This application uses Now to produce a lambda that will generate a markdown-friendly list of recently closed pull requests for a given organization.
This appliation will creat a lambda that responds to HTTP GET requests, and takes in the following query parameters:
- Required
- String
This organization for which you which to fetch the last week of closed Pull Requests for. The GITHUB_AUTH_TOKEN
provided must have access to the specified organization.
- Optional
- String
- Comma separated list of email addresses
If provided, the function will send a copy of the generated list of recently closed Pull Requests to the email addresses specified. Email is sent using SendGrid and requires SENDGRID_API_KEY
to be set.
npm run dev
See .env.example
for a list of environmental variables to set.
For local development, you can use a .env
file:
cp .env.example .env
For production, we use Zeit Now's secrets. See now.json
for a list of secrets to set.
npm run deploy
This assumes you have installed Now locally and logged in.
Rather than manually checking the endpoint for the list of recently closed Pull Requests, we suggest leveraging EasyCron to periodically hit you Now endpoint with a to
query paramter to send yourself the list via email on your own schedule.