{"id":42068374,"url":"https://github.com/nusmodifications/deploy-preview-bot","last_synced_at":"2026-01-26T08:30:59.202Z","repository":{"id":148126773,"uuid":"219223387","full_name":"nusmodifications/deploy-preview-bot","owner":"nusmodifications","description":null,"archived":false,"fork":false,"pushed_at":"2020-02-03T08:04:53.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T05:15:18.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://deploy-preview-bot-pale-tin.now.sh","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nusmodifications.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-11-02T22:45:49.000Z","updated_at":"2020-02-03T08:04:55.000Z","dependencies_parsed_at":"2023-05-19T05:30:26.837Z","dependency_job_id":null,"html_url":"https://github.com/nusmodifications/deploy-preview-bot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nusmodifications/deploy-preview-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusmodifications%2Fdeploy-preview-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusmodifications%2Fdeploy-preview-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusmodifications%2Fdeploy-preview-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusmodifications%2Fdeploy-preview-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nusmodifications","download_url":"https://codeload.github.com/nusmodifications/deploy-preview-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nusmodifications%2Fdeploy-preview-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28770790,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T07:45:00.504Z","status":"ssl_error","status_checked_at":"2026-01-26T07:45:00.070Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-26T08:30:58.624Z","updated_at":"2026-01-26T08:30:59.197Z","avatar_url":"https://github.com/nusmodifications.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NUSMods Deploy Previw Bot\n\nAutomatically deploys built artifacts from successful CircleCI deploys to Netlify using a GitHub webhook, then link the deploy to the pull request on GitHub. Currently deployed as a serverless function on now.sh - https://circleci.com/docs/api/#recent-builds-for-a-single-project\n\nBuilt with ProBot: https://probot.github.io/docs/development/ \n\nAPI documentations\n\n- Netlify: https://docs.netlify.com/api/get-started/#zip-file-method\n- OctoKit: https://octokit.github.io/rest.js/#octokit-routes-issues\n- CircleCI: https://circleci.com/docs/api/#recent-builds-for-a-single-project\n\n## Development and Testing\n\nTo test the function locally, use the following commands\n\n```sh\n# Compile TypeScript\nyarn watch\n\n# Lint code\nyarn lint\n\n# Run Probot locally using the given fixture as the webhook event\nyarn probot receive -e check_suite.completed -p ./fixture/check_suite.completed.json ./lib/src/webhook.js \n```\n\n## Deployment\n\nDeploy using the `now` command\n\n```sh\n# Install now CLI\nyarn global add now\n\n# Deploy to personal now.sh instance\nnow\n```\n\nThis deploys the `/api` folder as a serverless function. Since now.sh supports TypeScript natively, we don't need a build script. The webhook will be accessible at `\u003cnow.sh URL\u003e/api`. \n\n## Secrets\n\nTo add a sensitive env variable, use `now secret` to add the secret to now.sh, then map the variable to an env variable in Node in the `now.json` config file. You also need to add the same env variable to `.env` and `.env.example` since we do not load secrets from now.sh in development. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnusmodifications%2Fdeploy-preview-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnusmodifications%2Fdeploy-preview-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnusmodifications%2Fdeploy-preview-bot/lists"}