{"id":25268686,"url":"https://github.com/tamdilip/aws-git-pull-request-review","last_synced_at":"2026-04-26T12:31:57.294Z","repository":{"id":54617580,"uuid":"336979029","full_name":"tamdilip/aws-git-pull-request-review","owner":"tamdilip","description":"Architecture to integrate git repositories with AWS services via webhook to validate pull-requests for code reviews and coverage quality.","archived":false,"fork":false,"pushed_at":"2021-02-08T07:50:50.000Z","size":237,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T04:34:02.057Z","etag":null,"topics":["api-gateway","cloudwatch-event","codebuild","coverage-report","github","lambda","pull-request-review","pull-requests","request-review","webhook"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/tamdilip.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":"2021-02-08T06:17:51.000Z","updated_at":"2021-06-13T08:14:38.000Z","dependencies_parsed_at":"2022-08-13T21:40:47.767Z","dependency_job_id":null,"html_url":"https://github.com/tamdilip/aws-git-pull-request-review","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tamdilip/aws-git-pull-request-review","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Faws-git-pull-request-review","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Faws-git-pull-request-review/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Faws-git-pull-request-review/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Faws-git-pull-request-review/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tamdilip","download_url":"https://codeload.github.com/tamdilip/aws-git-pull-request-review/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tamdilip%2Faws-git-pull-request-review/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"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":["api-gateway","cloudwatch-event","codebuild","coverage-report","github","lambda","pull-request-review","pull-requests","request-review","webhook"],"created_at":"2025-02-12T10:32:09.828Z","updated_at":"2026-04-26T12:31:57.278Z","avatar_url":"https://github.com/tamdilip.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🔫 aws-git-pull-request-review\nArchitecture to integrate git repositories with AWS services via webhook to validate pull-requests for code reviews and coverage quality. \n\nFor every pull-request and consecutive commits on PR, github webhkook will trigger an API gateway which is bound to a lambda where the payload will be extracted and a codebuild will be triggered which will save the test and coverage reports as part of codebuild report groups and a cloudwatch event will trigger another lambda on build completion to update PR commit staus and post a comment with metrics.\n\n## Architecture\n![architecture](https://raw.githubusercontent.com/tamdilip/aws-git-pull-request-review/main/docs/git-aws-architecture.jpg)\n\n### Setup\n- Create two lambdas - [pre-pr-build-lambda](https://github.com/tamdilip/aws-git-pull-request-review/tree/main/pre-pr-build-lambda) and [post-pr-build-lambda](https://github.com/tamdilip/aws-git-pull-request-review/tree/main/post-pr-build-lambda) (override necessary config values inside).\n- Create a [codebuild](https://github.com/tamdilip/aws-git-pull-request-review/blob/main/cloudformation-for-codebuild-reports-with-cloudwatch-events.yaml#L1-L60) enabled with report groups.\n- Create a [cloudwatch event](https://github.com/tamdilip/aws-git-pull-request-review/blob/main/cloudformation-for-codebuild-reports-with-cloudwatch-events.yaml#L61-L95) to trigger [post-pr-build-lambda](https://github.com/tamdilip/aws-git-pull-request-review/tree/main/post-pr-build-lambda)\n- Create an API Gateway mapped to [pre-pr-build-lambda](https://github.com/tamdilip/aws-git-pull-request-review/tree/main/pre-pr-build-lambda)\n- Configure Github repo webhook with API Gateway URL and the secret key used inside [pre-pr-build-lambda](https://github.com/tamdilip/aws-git-pull-request-review/tree/main/pre-pr-build-lambda)\n\n### 📽 Codebuild - Test report group\n![test report](https://raw.githubusercontent.com/tamdilip/aws-git-pull-request-review/main/docs/aws-reports-group-test.jpeg)\n\n### 📽 Codebuild - Coverage report group\n![coverage report](https://raw.githubusercontent.com/tamdilip/aws-git-pull-request-review/main/docs/aws-reports-group-coverage.jpeg)\n\n### 📽 Github - Pull-Request review comment and status\n![pr status](https://raw.githubusercontent.com/tamdilip/aws-git-pull-request-review/main/docs/review-comment.png)\n\n**Happy coding :) !!**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamdilip%2Faws-git-pull-request-review","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftamdilip%2Faws-git-pull-request-review","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftamdilip%2Faws-git-pull-request-review/lists"}