{"id":26781597,"url":"https://github.com/tmr08c/weekly-summary-cron-with-now","last_synced_at":"2025-03-29T08:17:13.708Z","repository":{"id":43653941,"uuid":"188617604","full_name":"tmr08c/weekly-summary-cron-with-now","owner":"tmr08c","description":"Application that leverages Now to create a lambda to generate a list of recently closed GitHub Pull Requests for an Organization.","archived":false,"fork":false,"pushed_at":"2023-01-04T12:54:34.000Z","size":963,"stargazers_count":1,"open_issues_count":16,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-14T10:06:21.082Z","etag":null,"topics":["easycron","github-api","now","typescript","zeit-lambdas","zeit-now"],"latest_commit_sha":null,"homepage":"https://github-weekly-summary.tmr08c.now.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmr08c.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-25T22:23:54.000Z","updated_at":"2024-04-14T10:06:21.083Z","dependencies_parsed_at":"2023-02-02T13:00:18.048Z","dependency_job_id":null,"html_url":"https://github.com/tmr08c/weekly-summary-cron-with-now","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr08c%2Fweekly-summary-cron-with-now","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr08c%2Fweekly-summary-cron-with-now/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr08c%2Fweekly-summary-cron-with-now/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmr08c%2Fweekly-summary-cron-with-now/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmr08c","download_url":"https://codeload.github.com/tmr08c/weekly-summary-cron-with-now/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246156412,"owners_count":20732397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["easycron","github-api","now","typescript","zeit-lambdas","zeit-now"],"created_at":"2025-03-29T08:17:13.077Z","updated_at":"2025-03-29T08:17:13.698Z","avatar_url":"https://github.com/tmr08c.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Weekly Summary Cron with Now\n\n[![Deploy to now](https://deploy.now.sh/static/button.svg)](https://deploy.now.sh/?repo=https://github.com/tmr08c/weekly-sumary-cron-with-now\u0026env=GITHUB_AUTH_TOKEN\u0026env=SENDGRID_API_KEY)\n\nThis application uses [Now](https://zeit.co) to produce a [lambda](https://zeit.co/docs/v2/deployments/concepts/lambdas) that will generate a markdown-friendly list of recently closed pull requests for a given organization.\n\n## API\n\nThis appliation will creat a lambda that responds to HTTP GET requests, and takes in the following query parameters:\n\n### `organization`\n\n* **Required**\n* String\n\nThis 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. \n\n### `to`\n\n* Optional\n* String\n* Comma separated list of email addresses \n\nIf 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](https://sendgrid.com/) and requires `SENDGRID_API_KEY` to be set.\n\n## Development\n\n```bash\nnpm run dev\n```\n\n### Environmental Variables\n\nSee [`.env.example`](https://github.com/tmr08c/weekly-sumary-cron-with-now/blob/master/.env.example) for a list of environmental variables to set.\n\n#### Local\n\nFor local development, you can use a `.env` file:\n\n```bash\ncp .env.example .env\n```\n\n#### Production\n\nFor production, we use [Zeit Now's secrets](https://zeit.co/docs/v2/deployments/environment-variables-and-secrets#securing-environment-variables-using-secrets). See [`now.json`](https://github.com/tmr08c/weekly-sumary-cron-with-now/blob/master/now.json#L5) for a list of secrets to set.\n\n## Deployment\n\n```bash\nnpm run deploy\n```\n\nThis assumes you have [installed Now locally](https://zeit.co/docs/v2/getting-started/installation/) and logged in.\n\n### Reccomendation \n\nRather than manually checking the endpoint for the list of recently closed Pull Requests, we suggest leveraging [EasyCron](https://www.easycron.com/) to periodically hit you Now endpoint with a `to` query paramter to send yourself the list via email on your own schedule.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmr08c%2Fweekly-summary-cron-with-now","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmr08c%2Fweekly-summary-cron-with-now","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmr08c%2Fweekly-summary-cron-with-now/lists"}