{"id":21647397,"url":"https://github.com/fitomad/github-chatgpt-integration","last_synced_at":"2025-08-02T19:09:03.814Z","repository":{"id":143562814,"uuid":"615676068","full_name":"fitomad/github-chatgpt-integration","owner":"fitomad","description":"How to integrate ChatGPT with a GitHub repository using GitHub Actions in order to perform automated code reviews for every pull request","archived":false,"fork":false,"pushed_at":"2023-03-25T19:20:45.000Z","size":68,"stargazers_count":11,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T23:58:55.811Z","etag":null,"topics":["chatgpt","chatgpt-api","github","github-actions","openai","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/fitomad.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":"2023-03-18T10:57:05.000Z","updated_at":"2025-04-22T12:02:59.000Z","dependencies_parsed_at":"2023-06-09T01:00:21.097Z","dependency_job_id":null,"html_url":"https://github.com/fitomad/github-chatgpt-integration","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/fitomad/github-chatgpt-integration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitomad%2Fgithub-chatgpt-integration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitomad%2Fgithub-chatgpt-integration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitomad%2Fgithub-chatgpt-integration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitomad%2Fgithub-chatgpt-integration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fitomad","download_url":"https://codeload.github.com/fitomad/github-chatgpt-integration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fitomad%2Fgithub-chatgpt-integration/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268439591,"owners_count":24250671,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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","github","github-actions","openai","python"],"created_at":"2024-11-25T06:49:45.761Z","updated_at":"2025-08-02T19:09:03.778Z","avatar_url":"https://github.com/fitomad.png","language":"Python","readme":"# GitHub \u0026 ChatGPT integration\n\n![python](https://img.shields.io/badge/python-3.9.6-blue) ![openai](https://img.shields.io/badge/OpenAI-0.27.2-orange)\n\nThis PoC is related to the integration of ChatGPT into a GitHub repository through [GitHub Actions](https://github.com/features/actions).\n\nActually there's no way to allow ChatGPT access a GitHub repository, inclusing the Pull Request permormed in any repository branch.\n\n## Design\n\nWe will obtain this integration thanks to GitHub actions. This repository contains an Action that performs the following tasks.\n\n* Pull Request checking and analizing, providing comments abou the repo.\n\n## Use this action in your CI/CD\n\nYou need to create two secrets in order to run this action\n\n* `OPENAI_API_KEY` Create an OpenAI developer account and obtain an API acces key\n* `GH_TOKEN` Create a GitHub developer access token\n\nOther fields that you can customize are\n\n* `dev-lang` Define the programming language using in your repository\n\n```yaml\nname: App Code Review\n\npermissions:\n  contents: read\n  pull-requests: write\n\non:\n  pull_request:\n    types: [opened, reopened]\n\njobs:\n  code-review:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: fitomad/github-chatgpt-integration@main\n        with:\n          openai-api-key: ${{ secrets.OPENAI_API_KEY }}\n          github-token: ${{ secrets.GH_TOKEN }}\n          github-pr-id: ${{ github.event.number }}\n          dev-lang: Swift\n          openai-max-tokens: 4096\n```\n\n## GitHub Action \n\nOur shell script must be executable. Make sure the `main.sh` file has execute permissions before using it in a workflow. You can modify the permission from your terminal using these commands.\n\nUsing the `update-index` parameter we will be sure that the execution flag will not be reseted every time we fork or create a new branch.\n\n```zsh\n$ git add entrypoint.sh\n$ git update-index --chmod=+x entrypoint.sh\n```\n\n## Contact\n\n* **Email** [adolfo.vera@globant.com](mailto:adolfo.vera@globant.com)\n* **LinkedIn** [https://www.linkedin.com/in/adolfo-vera](https://www.linkedin.com/in/adolfo-vera)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitomad%2Fgithub-chatgpt-integration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffitomad%2Fgithub-chatgpt-integration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffitomad%2Fgithub-chatgpt-integration/lists"}