From 33803e363eebb78d24b7f3aeebde0619c4040453 Mon Sep 17 00:00:00 2001 From: amineharbaoui Date: Tue, 22 Jul 2025 23:52:52 +0200 Subject: [PATCH] add github actions workflow and script for automating cherry-pick process --- .github/actions/cherry-pick/action.yml | 5 +++++ .github/actions/cherry-pick/index.js | 1 + .github/workflows/cherry-pick.yml | 18 ++++++++++++++++++ .idea/codeStyles/Project.xml | 1 + 4 files changed, 25 insertions(+) create mode 100644 .github/actions/cherry-pick/action.yml create mode 100644 .github/actions/cherry-pick/index.js diff --git a/.github/actions/cherry-pick/action.yml b/.github/actions/cherry-pick/action.yml new file mode 100644 index 000000000..56ce86d5f --- /dev/null +++ b/.github/actions/cherry-pick/action.yml @@ -0,0 +1,5 @@ +name: 'Create Cherry pick pull request' +description: 'Create Cherry pick pull request' +runs: + using: node20 + main: index.js \ No newline at end of file diff --git a/.github/actions/cherry-pick/index.js b/.github/actions/cherry-pick/index.js new file mode 100644 index 000000000..4e62e2f76 --- /dev/null +++ b/.github/actions/cherry-pick/index.js @@ -0,0 +1 @@ +console.log("run cherry-pick action") \ No newline at end of file diff --git a/.github/workflows/cherry-pick.yml b/.github/workflows/cherry-pick.yml index 8b1378917..7447c377f 100644 --- a/.github/workflows/cherry-pick.yml +++ b/.github/workflows/cherry-pick.yml @@ -1 +1,19 @@ +name: Cherry-Pick +on: workflow_dispatch + +jobs: + cherry-pick: + name: Cherry-Pick multiple PR into one + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 18 + - run: npm ci + + - uses: ./.github/actions/cherry-pick + with: + myToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index 6ef06e25a..3fa0ef569 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -12,6 +12,7 @@