{"id":18234061,"url":"https://github.com/yuri-val/auto-pr-action","last_synced_at":"2026-04-29T01:33:53.172Z","repository":{"id":259126088,"uuid":"874939150","full_name":"yuri-val/auto-pr-action","owner":"yuri-val","description":"GitHub Action that automates PR creation from dev to default branch, generates PR content using OpenAI API, and adds reviewers.","archived":false,"fork":false,"pushed_at":"2025-08-11T12:31:17.000Z","size":279,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-11T14:26:29.565Z","etag":null,"topics":["automation","devops","github-actions","openai","pull-requests"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/auto-pr-dev-to-main-master","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yuri-val.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-18T18:37:40.000Z","updated_at":"2025-08-11T12:26:40.000Z","dependencies_parsed_at":"2024-10-23T05:58:31.095Z","dependency_job_id":null,"html_url":"https://github.com/yuri-val/auto-pr-action","commit_stats":null,"previous_names":["yuri-val/auto-pr-action"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/yuri-val/auto-pr-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuri-val%2Fauto-pr-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuri-val%2Fauto-pr-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuri-val%2Fauto-pr-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuri-val%2Fauto-pr-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yuri-val","download_url":"https://codeload.github.com/yuri-val/auto-pr-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yuri-val%2Fauto-pr-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["automation","devops","github-actions","openai","pull-requests"],"created_at":"2024-11-04T17:03:19.014Z","updated_at":"2026-04-29T01:33:53.158Z","avatar_url":"https://github.com/yuri-val.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Auto PR from Dev to Default Branch\n\n## Description\n\nThis GitHub Action automatically creates or updates a Pull Request from a development branch to the default branch, generates descriptive PR content using OpenAI's API, and adds relevant reviewers.\n\n## Features\n\n- 🔄 Automatically creates or updates a PR from dev to the default branch\n- 🤖 Generates PR descriptions using OpenAI API\n- 👥 Automatically adds relevant reviewers\n- 📅 Sets PR title with current date (e.g., \"Release v2023.05.25\")\n\n## Inputs\n\n| Name | Description | Required | Default |\n|------|-------------|----------|---------|\n| `openai_api_key` | OpenAI API Key | Yes | N/A |\n| `openai_model` | OpenAI model to use for generating PR descriptions | No | 'gpt-4o-mini' |\n| `github_token` | GitHub Personal Access Token with repo permissions | Yes | N/A |\n| `dev_branch` | Name of the development branch | No | 'dev' |\n\n## Outputs\n\n| Name | Description |\n|------|-------------|\n| `pr_number` | The number of the pull request created or updated |\n\n## Usage\n\nTo use this action in your workflow, add the following step:\n\n```yaml\n- name: Auto PR from Dev to Default\n  uses: yuri-val/auto-pr-action@v1\n  with:\n    openai_api_key: ${{ secrets.OPENAI_API_KEY }}\n    openai_model: gpt-4o  # Optional, defaults to 'gpt-4o-mini'\n    github_token: ${{ secrets.GITHUB_TOKEN }}\n    dev_branch: dev  # Optional, defaults to 'dev'\n```\n\nMake sure to set up the `OPENAI_API_KEY` secret in your repository settings.\n\n### Example Workflow Using Your Custom Action\n\nCreate a workflow file in your repository (e.g., `.github/workflows/auto-pr.yml`):\n\n```yml\nname: Auto PR from dev to default\n\non:\n  push:\n    branches:\n      - dev\n\njobs:\n  auto-pr:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Run Auto PR Action\n        uses: yuri-val/auto-pr-action@v1.0.0\n        with:\n          openai_api_key: ${{ secrets.OPENAI_API_KEY }}\n          github_token: ${{ secrets.PAT_TOKEN }}\n          dev_branch: 'dev'  # Optional, defaults to 'dev'\n\n```\n\n## How it works\n\n1. Checks out the repository\n2. Sets up Git configuration\n3. Determines the default branch\n4. Generates a diff between the dev and default branches\n5. Uses OpenAI API to generate a descriptive PR content\n6. Creates a new PR or updates an existing one\n7. Adds relevant reviewers to the PR\n\n## GitHub Workflow Description (Development Workflow)\n\n### Branch Structure\n1. Default Branch: `main` or `master`\n2. Development Branch: `dev`\n3. Feature Branches: Multiple branches like `feature/new_awesome_feature`, `feature/new_files`, etc.\n\n### Workflow Steps\n\n![alt text](docs/dev_workflow_steps.png)\n\n1. **Branch Creation:**\n   - The `dev` branch is created from the default branch (`main` or `master`).\n   - `dev` always contains all commits from the default branch.\n\n2. **Feature Development:**\n   - Multiple feature branches are created from `dev`.\n   - Examples: `feature/new_awesome_feature`, `feature/new_files`, etc.\n   - Developers work on these feature branches.\n\n3. **Feature Integration:**\n   - When a feature is complete, it is merged into the `dev` branch.\n\n4. **Automated Pull Request Creation/Update:**\n   - On every merge to `dev` (or any push to `dev`):\n     - An automated process creates or updates a Pull Request from `dev` to the default branch (`main` or `master`).\n     - The Pull Request description is automatically generated using OpenAI's API.\n     - This ensures that the default branch is always aware of changes in `dev`.\n\n5. **Continuous Integration:**\n   - The `dev` branch continuously integrates new features.\n   - The automated PR to the default branch is kept up-to-date with these changes.\n\n6. **Review and Merge:**\n   - The auto-generated PR can be reviewed and eventually merged into the default branch when ready.\n\nThis workflow allows for organized feature development, continuous integration into the `dev` branch, and an always up-to-date PR to the default branch with AI-generated descriptions for easy review and merging.\n\n## License\n\n[MIT License](LICENSE)\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\nThis README.md provides an overview of your GitHub Action, including its features, inputs, outputs, and usage instructions. It also briefly explains how the action works and includes sections for licensing and contributions.\n\nYou may want to adjust the \"Usage\" section to reflect the correct GitHub username or organization where this action will be published. Also, if you haven't already, you might want to add a LICENSE file to your repository.\n\nFeel free to modify this README to better fit your project's specific needs or to add any additional information you think would be helpful for users of your GitHub Action.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuri-val%2Fauto-pr-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyuri-val%2Fauto-pr-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyuri-val%2Fauto-pr-action/lists"}