Skip to content

[#2643] refactor: Replace TypeScript with JavaScript in the web #1823

[#2643] refactor: Replace TypeScript with JavaScript in the web

[#2643] refactor: Replace TypeScript with JavaScript in the web #1823

name: Automatically cherry-pick merged PR to different branches
on:
pull_request_target:
branches:
- main
types: ["closed"]
jobs:
cherry_pick_branch_0_3:
runs-on: ubuntu-latest
name: Cherry pick into branch_0.3
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.3') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into branch-0.3
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.3
labels: |
cherry-pick
reviewers: |
jerryshao
cherry_pick_branch_0_4:
runs-on: ubuntu-latest
name: Cherry pick into branch_0.4
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.4') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into branch-0.4
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.4
labels: |
cherry-pick
reviewers: |
jerryshao
cherry_pick_branch_0_5:
runs-on: ubuntu-latest
name: Cherry pick into branch_0.5
if: ${{ contains(github.event.pull_request.labels.*.name, 'branch-0.5') && github.event.pull_request.merged == true }}
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cherry pick into branch-0.5
uses: carloscastrojumo/github-cherry-pick-action@v1.0.9
with:
token: ${{ secrets.BOT_TOKEN }}
branch: branch-0.5
labels: |
cherry-pick
reviewers: |
jerryshao
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}