{"id":15139611,"url":"https://github.com/probot/example-aws-lambda-sam","last_synced_at":"2025-10-19T15:32:36.829Z","repository":{"id":42085390,"uuid":"455427810","full_name":"probot/example-aws-lambda-sam","owner":"probot","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-28T12:30:36.000Z","size":369,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-29T19:46:45.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/probot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-04T05:03:59.000Z","updated_at":"2025-01-28T12:30:39.000Z","dependencies_parsed_at":"2023-02-08T03:45:35.851Z","dependency_job_id":"daf082d2-11a3-4ce7-8312-e2a95891778f","html_url":"https://github.com/probot/example-aws-lambda-sam","commit_stats":{"total_commits":114,"total_committers":4,"mean_commits":28.5,"dds":"0.24561403508771928","last_synced_commit":"85abcb6c30810562219062d7a01b5c0c86c5582c"},"previous_names":[],"tags_count":0,"template":true,"template_full_name":"probot/example-aws-lambda-serverless","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fexample-aws-lambda-sam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fexample-aws-lambda-sam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fexample-aws-lambda-sam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/probot%2Fexample-aws-lambda-sam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/probot","download_url":"https://codeload.github.com/probot/example-aws-lambda-sam/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237163103,"owners_count":19265211,"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":[],"created_at":"2024-09-26T08:01:06.044Z","updated_at":"2025-10-19T15:32:36.469Z","avatar_url":"https://github.com/probot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Probot \u0026 AWS Lambda example\n\nThis repository is an example of how to deploy the \"Hello, World\" of probot apps to [AWS Lambda](https://aws.amazon.com/lambda/) using [aws sam](https://aws.amazon.com/serverless/sam/).\n\n## Local setup\n\nInstall dependencies\n\n```\nnpm install\n```\n\nStart the server\n\n```\nnpm start\n```\n\nFollow the instructions to register a new GitHub app.\n\n## Deployment\nGet the following details about your GitHub app:\n- `APP_ID`\n- `WEBHOOK_SECRET`\n- `PRIVATE_KEY`\n\n1. Setup your aws cli creds\n1. set your aws profile by running `export AWS_PROFILE=\u003cprofile\u003e`\n1. run `sam build`\n1. run `sam deploy --guided`\n\nSubsequent deploys to the same stack to the default environment...\n1. run `sam build`\n1. run `sam deploy`\n\n## Debugging locally\nThere are two options to debug locally.\n\n### Debug via unit tests\n1. Intall nyc and mocha: `npm install -g nyc mocha`\n1. From the VSCode `RUN AND DEBUG` menu select `Mocha` and click the green arrow to start debugging.\n\n### Debug by launching probot locally and sending it a payload \n\n1. Point your GitHub app to your local using something like smee.io\n1. Copy .env-sample to .env and populate with values specific for your GitHub app. [See here for more details](https://probot.github.io/docs/configuration/).\n1. From the VSCode `RUN AND DEBUG` menu select `Launch Probot` and click the green arrow to start debugging.\n\n## Docker\n\n```sh\n# 1. Run npm install\nnpm install\n\n# 2. Build container\ndocker build -t my-probot-app .\n\n# 3. Srouce your .env file\nexport $(cat .env | xargs)\n\n# 3. Start container\ndocker run \\\n    -e APP_ID=$APP_ID \\\n    -e PRIVATE_KEY=$PRIVATE_KEY \\\n    -e WEBHOOK_SECRET=$WEBHOOK_SECRET \\\n    my-probot-app\n```\n\n## License\n\n[ISC](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fexample-aws-lambda-sam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprobot%2Fexample-aws-lambda-sam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprobot%2Fexample-aws-lambda-sam/lists"}