{"id":16453482,"url":"https://github.com/blimmer/create-or-update-pr-comment-demo","last_synced_at":"2026-03-18T19:45:47.023Z","repository":{"id":45326311,"uuid":"440390945","full_name":"blimmer/create-or-update-pr-comment-demo","owner":"blimmer","description":null,"archived":false,"fork":false,"pushed_at":"2021-12-30T00:27:11.000Z","size":5,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-09T15:55:24.344Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/blimmer.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-12-21T04:36:33.000Z","updated_at":"2021-12-30T00:27:14.000Z","dependencies_parsed_at":"2022-09-02T06:11:16.576Z","dependency_job_id":null,"html_url":"https://github.com/blimmer/create-or-update-pr-comment-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blimmer/create-or-update-pr-comment-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fcreate-or-update-pr-comment-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fcreate-or-update-pr-comment-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fcreate-or-update-pr-comment-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fcreate-or-update-pr-comment-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blimmer","download_url":"https://codeload.github.com/blimmer/create-or-update-pr-comment-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blimmer%2Fcreate-or-update-pr-comment-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29113188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T03:44:17.043Z","status":"ssl_error","status_checked_at":"2026-02-05T03:44:12.077Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2024-10-11T10:15:45.484Z","updated_at":"2026-02-05T05:01:29.082Z","avatar_url":"https://github.com/blimmer.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Create or Update PR Comment API Demo\n\nOftentimes, it's nice to have a bot user post some information to a Pull Request.\nFor example, imagine a link to a pre-production preview link for the branch,\nor infrastructure-as-code diffs.\n\nHowever, GitHub doesn't provide a simple way to \"create or update\" a comment for\na particular bot message. So, I built a simple serverless solution to work around\nthis using the GitHub API.\n\nYou can learn more about the backend implementation\n[at benlimmer.com](https://benlimmer.com/2021/12/20/create-or-update-pr-comment/).\n\n## Demo\n\nTo see this solution in action, check out\n[the Demo Pull Request](https://github.com/blimmer/github-pr-comment-api-demo/pull/1).\n\nAs you'll see, the first time the API is called, a new comment is created. Then,\nwhen the API is subsequently called, the existing comment will be updated.\n\nBy updating an existing comment, bot-based noise is significantly reduced, while\nthe history of each bot post is retained in the \"edited\" dropdown.\n\n\u003cimg width=\"668\" alt=\"Screen_Shot_2021-12-20_at_9_50_55_PM\" src=\"https://user-images.githubusercontent.com/630449/146873107-c8e3ea7a-c395-4e1b-b5c3-5564e765fb77.png\"\u003e\n\n## Let's Connect!\n\nI'm a freelance architect and engineer who loves focusing on Developer Experience\nand tooling. Learn more at [benlimmer.com/freelance](https://benlimmer.com/freelance?utm_source=github\u0026utm_campaign=create-or-update-pr-comment-demo).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblimmer%2Fcreate-or-update-pr-comment-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblimmer%2Fcreate-or-update-pr-comment-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblimmer%2Fcreate-or-update-pr-comment-demo/lists"}