{"id":16935053,"url":"https://github.com/bsmth/gh-api-reproducer","last_synced_at":"2026-04-29T19:34:43.868Z","repository":{"id":187637124,"uuid":"677283703","full_name":"bsmth/gh-api-reproducer","owner":"bsmth","description":"Fetching commits via gh api","archived":false,"fork":false,"pushed_at":"2023-08-11T07:46:04.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-30T03:42:13.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":false,"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/bsmth.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,"governance":null}},"created_at":"2023-08-11T07:24:25.000Z","updated_at":"2023-08-11T08:32:19.000Z","dependencies_parsed_at":"2023-08-11T15:09:11.429Z","dependency_job_id":null,"html_url":"https://github.com/bsmth/gh-api-reproducer","commit_stats":null,"previous_names":["bsmth/gh-api-reproducer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bsmth/gh-api-reproducer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsmth%2Fgh-api-reproducer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsmth%2Fgh-api-reproducer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsmth%2Fgh-api-reproducer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsmth%2Fgh-api-reproducer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsmth","download_url":"https://codeload.github.com/bsmth/gh-api-reproducer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsmth%2Fgh-api-reproducer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"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-13T20:53:35.108Z","updated_at":"2026-04-29T19:34:43.849Z","avatar_url":"https://github.com/bsmth.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-api-reproducer\n\nFetching commits via gh api\n\n## Test chars\n\n- 🇮🇪\n\n  - : Flag emoji\n\n- \u0026#65533;\n\n  - : Unicode replacement character HTML entity\n\n- �\n\n  - : Unicode replacement character\n\n## Steps to reproduce\n\nUse the `gh` cli to fetch commits from this repo:\n\n```bash\ngh api repos/bsmth/gh-api-reproducer/commits/81d0f58fbadb176ccfd292240b87e474f4b5c848\n# invalid UTF-8 string\n```\n\n## Expected result\n\nA full JSON response is returned:\n\n```json\n{\n  // ...\n  \"files\": [\n    {\n      // ...\n      \"patch\": \"@@ -1,3 +1,5 @@\\n []: # Path: README.md\\n # gh-api-reproducer\\n \\n+Fetching commits via gh api\\n+\\n ## Test chars\\n \\n - �\\n  - : Unicode replacement character\\n ...\"\n  // ...\n}\n```\n\n## Actual result\n\nJSON output is truncated / broken at the `patch` key at the point where the character is encountered:\n\n```json\n{\n  // ...\n  \"patch\": \"@@ -1,3 +1,5 @@\\n []: # Path: README.md\\n # gh-api-reproducer\\n \\n+Fetching commits via gh api\\n+\\n ## Test chars\\n \\n -\n```\n\n## Example passing command\n\nIf the patch is parsed correctly, we can get the patch contents:\n\n```bash\ngh api repos/bsmth/gh-api-reproducer/commits/1b33e078374c5d3e596c16ea4a02c735191b21ec --jq '.files[].patch'\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsmth%2Fgh-api-reproducer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsmth%2Fgh-api-reproducer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsmth%2Fgh-api-reproducer/lists"}