Help you auto create PR from hotfix branch to other branches, such as: develop
, staging
-
Create github action file
.github/workflows/hotfix-action.yml
-
Save file with content:
name: Hotfix Action
on:
pull_request:
branches:
- master
jobs:
Create-Pull-Request-Action:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: quangvo09/pull-request-action@v1
name: Create PR to develop
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch_prefix: hotfix
base_branch: develop
labels: hotfix,develop
assignees: quangvo09
reviewers: quangvo09
- uses: quangvo09/pull-request-action@v1
name: Create PR to integration
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch_prefix: hotfix
base_branch: integration
labels: hotfix,integration
assignees: quangvo09
reviewers: quangvo09