Skip to content

Application that leverages Now to create a lambda to generate a list of recently closed GitHub Pull Requests for an Organization.

Notifications You must be signed in to change notification settings

tmr08c/weekly-summary-cron-with-now

Repository files navigation

Weekly Summary Cron with Now

Deploy to now

This application uses Now to produce a lambda that will generate a markdown-friendly list of recently closed pull requests for a given organization.

API

This appliation will creat a lambda that responds to HTTP GET requests, and takes in the following query parameters:

organization

  • 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.

to

  • 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.

Development

npm run dev

Environmental Variables

See .env.example for a list of environmental variables to set.

Local

For local development, you can use a .env file:

cp .env.example .env

Production

For production, we use Zeit Now's secrets. See now.json for a list of secrets to set.

Deployment

npm run deploy

This assumes you have installed Now locally and logged in.

Reccomendation

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.

About

Application that leverages Now to create a lambda to generate a list of recently closed GitHub Pull Requests for an Organization.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published