{"id":15160119,"url":"https://github.com/michalswi/github-openai","last_synced_at":"2026-01-21T01:02:46.135Z","repository":{"id":237237359,"uuid":"794092746","full_name":"michalswi/github-openai","owner":"michalswi","description":"OpenAI (ChatGPT) integration with GitHub","archived":false,"fork":false,"pushed_at":"2024-05-07T12:35:27.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-08T09:53:59.073Z","etag":null,"topics":["chatgpt","chatgpt-api","cicd","github-actions","github-ai","github-api","openai","openai-api"],"latest_commit_sha":null,"homepage":"","language":"Go","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/michalswi.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-30T12:49:07.000Z","updated_at":"2024-06-19T13:03:34.634Z","dependencies_parsed_at":"2024-06-19T13:03:29.024Z","dependency_job_id":null,"html_url":"https://github.com/michalswi/github-openai","commit_stats":null,"previous_names":["michalswi/github-openai"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/michalswi/github-openai","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-openai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-openai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-openai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-openai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michalswi","download_url":"https://codeload.github.com/michalswi/github-openai/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michalswi%2Fgithub-openai/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28620572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T23:49:58.628Z","status":"ssl_error","status_checked_at":"2026-01-20T23:47:29.996Z","response_time":117,"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":["chatgpt","chatgpt-api","cicd","github-actions","github-ai","github-api","openai","openai-api"],"created_at":"2024-09-26T22:21:44.370Z","updated_at":"2026-01-21T01:02:46.118Z","avatar_url":"https://github.com/michalswi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# github-openai\n\n![](https://img.shields.io/github/stars/michalswi/github-openai)\n![](https://img.shields.io/github/issues/michalswi/github-openai)\n![](https://img.shields.io/github/forks/michalswi/github-openai)\n![](https://img.shields.io/github/last-commit/michalswi/github-openai)\n![](https://img.shields.io/github/release/michalswi/github-openai)\n\nThe Go application utilizes OpenAI's ChatGPT to review all files from the latest commit and subsequently adds comments.  \n\nExamples:\n- [main](https://github.com/michalswi/github-openai-test/commit/684842f1c83edce4c0f8cd12b545ab8febf97891#comments) branch\n- [develop](https://github.com/michalswi/github-openai-test/commit/3938a0d2482b325df367c824d3ded1bed8c307a9#comments) branch\n- github-actions integration - [commit](https://github.com/michalswi/github-openai-test/commit/4467c7b457e6357ea6d7b924a66a4163b39b1301), [gh-actions](https://github.com/michalswi/github-openai-test/actions/runs/8984096714)\n\nYou need:\n- [OpenAI API key](https://platform.openai.com/api-keys)\n- [GitHub Personal Token](https://docs.github.com/en/enterprise-server@3.9/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#about-personal-access-tokens)\n\n```\nexport API_KEY=\u003c\u003e \u0026\u0026\\\nexport GITHUB_PAT=\u003c\u003e \u0026\u0026\\\nexport REPO_OWNER=\u003cowner\u003e \u0026\u0026\\\nexport REPO_NAME=\u003crepo_name\u003e\n\n# [optional] if branch different than the default one (main)\nexport BRANCH_NAME=develop\n```\n\n#### GitHub Actions workflow example\n\n```\nname: github-openai\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  openai:\n    runs-on: ubuntu-latest\n    steps:\n    - name: wget github-openai binary v0.2.0\n      run: |\n        wget https://github.com/michalswi/github-openai/releases/download/v0.2.0/github-openai_linux_amd64\n        chmod +x github-openai_linux_amd64\n    - name: run github-openai\n      env:\n        API_KEY: ${{ secrets.API_KEY }}\n        GITHUB_PAT: ${{ secrets.GH_PAT }}\n        REPO_OWNER: ${{ github.repository_owner }}\n        REPO_NAME: ${{ github.repository }}\n      run: |\n        REPO_NAME=$(echo $REPO_NAME | cut -d '/' -f 2)\n        # export BRANCH_NAME=develop\n        ./github-openai_linux_amd64\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalswi%2Fgithub-openai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichalswi%2Fgithub-openai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichalswi%2Fgithub-openai/lists"}