This workflow automates the creation of production deployment pull requests, including automatic reviewer assignment and comprehensive change documentation.
jobs:
create-pr:
uses: ZeroGachis/.github/.github/workflows/create-gotoprod-pr.yml@v4
with:
base: main
Input | Default | Description |
---|---|---|
base |
main |
Base branch for the pull request |
- 🤖 Automated PR creation
- 👥 Automatic reviewer assignment
- 📝 Comprehensive change documentation
- 🏷️ Automatic labeling
- 🔄 PR update support
- 📊 Change categorization
jobs:
create-pr:
uses: ZeroGachis/.github/.github/workflows/create-gotoprod-pr.yml@v4
jobs:
create-pr:
uses: ZeroGachis/.github/.github/workflows/create-gotoprod-pr.yml@v4
with:
base: production
name: Production Deployment
on:
workflow_dispatch:
schedule:
- cron: "0 10 * * 1" # Every Monday at 10:00 UTC
jobs:
tests:
uses: ./.github/workflows/run-tests.yml
create-pr:
needs: tests
uses: ZeroGachis/.github/.github/workflows/create-gotoprod-pr.yml@v4
with:
base: main
-
Pull Request Creation:
- Creates or updates existing PR
- Assigns meaningful title
- Generates comprehensive description
- Adds appropriate labels
-
Change Documentation:
- Lists merged pull requests
- Documents direct commits
- Categorizes changes
- Links related issues
-
Reviewer Management:
- Identifies contributors from commits
- Automatically assigns reviewers
- Excludes bot accounts
- Maintains reviewer history
The workflow generates a pull request with the following structure:
## 🚀 Automated PR to prepare Go-To-Production
**Branch**: `feature/new-feature`
**Base**: `main`
### 🔍 Changes
#### 🔄 Merged Pull Requests
- Implement new authentication system (#123)
- Fix database performance issues (#124)
- Update documentation (#125)
#### 📝 Commits
- Update configuration files
- Fix typos in README
- Add new test cases
### 👥 Contributors
- @developer1
- @developer2
- @developer3
The workflow automatically adds the following labels:
go-to-prod
: Identifies production deployment PRs:robot: automated-pr
: Indicates automated creation