Skip to content

onpointvn/create-pull-request-action

 
 

Repository files navigation

typescript-action status

Create Pull Request Action

Help you auto create PR from hotfix branch to other branches, such as: develop, staging

Usage

  1. Create github action file .github/workflows/hotfix-action.yml

  2. 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 95.8%
  • JavaScript 4.2%