{"id":25074836,"url":"https://github.com/javiln8/gpt-pr","last_synced_at":"2025-03-31T19:47:18.473Z","repository":{"id":202901370,"uuid":"618052150","full_name":"javiln8/gpt-pr","owner":"javiln8","description":"🤖 Automatic PR creation using ChatGPT","archived":false,"fork":false,"pushed_at":"2023-03-29T10:57:06.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T07:01:42.115Z","etag":null,"topics":["automation","chatgpt","github","pull-requests"],"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/javiln8.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-03-23T16:47:51.000Z","updated_at":"2023-06-06T11:23:21.000Z","dependencies_parsed_at":"2023-10-22T14:35:49.826Z","dependency_job_id":null,"html_url":"https://github.com/javiln8/gpt-pr","commit_stats":null,"previous_names":["javiln8/gpt-pr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiln8%2Fgpt-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiln8%2Fgpt-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiln8%2Fgpt-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javiln8%2Fgpt-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javiln8","download_url":"https://codeload.github.com/javiln8/gpt-pr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246531983,"owners_count":20792735,"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","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":["automation","chatgpt","github","pull-requests"],"created_at":"2025-02-07T00:18:50.911Z","updated_at":"2025-03-31T19:47:18.457Z","avatar_url":"https://github.com/javiln8.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GPT-PR\n\n🤖 GPT-PR is a command-line tool that leverages the power of OpenAI's GPT-3 and GPT-4 models to automatically generate pull\nrequest (PR) details, including the title, branch name, and description, based on a given Git diff.\n\nAll PRs of this repository have been created with GPT-PR.\n\n## Features\n\n* Generate PR title, branch name, and description using GPT-3 and GPT-4 models\n* Automatically create and push a new branch with the generated details\n* Create a pull request on GitHub using the generated details\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://github.com/javiln8/gpt-pr.git\n```\n\n2. Build the project:\n\n```bash\ncd gpt-pr\ngo build -o gpt-pr\n```\n\n3. Add the gpt-pr binary to your system's PATH.\n\n## Setting up Environment Variables\n\nSet up the `GPT_API_KEY` environment variable with your OpenAI API key:\n\n```bash\nexport GPT_API_KEY=\u003cyour_openai_api_key\u003e\n```\n\nSet up the `GITHUB_TOKEN` environment variable with your GitHub Personal Access Token:\n\n```bash\nexport GITHUB_TOKEN=\u003cyour_github_personal_access_token\u003e\n```\n\n## Usage\n\nTo use GPT-PR, you can run the following commands:\n\n```bash\nUsage:\n  gpt-pr generate [flags]\n\nFlags:\n  -a, --add-attribution   Add an attribution message at the end of the PR summary\n  -g, --gpt-version int   Choose the GPT version (3 or 4), default is 3 (default 3)\n  -h, --help              help for generate\n  -v, --verbose           Show the ChatGPT response\n```\n\n## GPT-3 Limitations\n\nAlthough GPT-PR automates the PR creation process, it might be less reliable due to GPT-3's limitations. The tool makes\nmultiple calls to ChatGPT for better results, but the generated PR details may still vary in accuracy. However, the tool\nserves as a valuable starting point for streamlining the PR creation process and can be further enhanced with more\nsophisticated prompts or by utilizing newer AI models.\n\n## Obtaining GPT API Keys\n\nTo get API keys for GPT-3 or GPT-4, you need to sign up for an account with OpenAI. Visit the OpenAI website to create\nan account and obtain the necessary API keys ([link](https://platform.openai.com/account/api-keys)).\n\n## Acknowledgments\n\nThis project was built with the help of OpenAI's GPT-4, which contributed to the code generation and decision-making\nprocesses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviln8%2Fgpt-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaviln8%2Fgpt-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaviln8%2Fgpt-pr/lists"}