From 845390a2d22729bdd5b89ec46bfcacfc8bfa8ea4 Mon Sep 17 00:00:00 2001 From: Yossi Saadi Date: Mon, 9 Dec 2024 18:08:52 +0200 Subject: [PATCH] ci: commitlint the squashed commit that's about to be merged to master (#2637) --- .github/workflows/merge-queue.yml | 17 +++++++++++++++++ .github/workflows/pr.yml | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .github/workflows/merge-queue.yml diff --git a/.github/workflows/merge-queue.yml b/.github/workflows/merge-queue.yml new file mode 100644 index 0000000000..505e32b358 --- /dev/null +++ b/.github/workflows/merge-queue.yml @@ -0,0 +1,17 @@ +name: Merge Queue Checks + +on: + merge_group: + types: + - checks_requested + +jobs: + commitlint: + name: Commit Lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.sha }} + + - uses: YossiSaadi/commitlint-github-action@vibe-fork/support-merge_group-event diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index c319969be4..0cccad06d1 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -18,3 +18,13 @@ jobs: uses: ./.github/workflows/test.yml secrets: npm_token: ${{ secrets.npm_token }} + + commitlint: + name: Commit Lint + needs: build + if: false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.sha }}