From 3cd19308ca64382ead17b3e6f8ef168777f688ce Mon Sep 17 00:00:00 2001 From: Guilherme Pelayo Date: Tue, 5 Aug 2025 18:03:36 +0100 Subject: [PATCH] VALI-10193: Force review on /merge command --- .github/workflows/merge_command.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/merge_command.yml diff --git a/.github/workflows/merge_command.yml b/.github/workflows/merge_command.yml new file mode 100644 index 0000000..44770e9 --- /dev/null +++ b/.github/workflows/merge_command.yml @@ -0,0 +1,19 @@ +name: "Merge Command Handler" +on: + issue_comment: + types: [created] +jobs: + handle-merge: + runs-on: gha-eks + if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/merge') }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_REPO_ADMIN_CI_TOKEN }} + - name: Handle merge + uses: valispace/cicd/internal/build/pr-command-merge@main + with: + comment-body: ${{ github.event.comment.body }} + env: + GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_REPO_ADMIN_CI_TOKEN }}