From 3b6f3708ed1d8c3d399d4bd9976f5c51e5a8b3c0 Mon Sep 17 00:00:00 2001 From: Andrey Morozov Date: Mon, 1 Jul 2024 19:02:15 +0300 Subject: [PATCH 1/2] ci: add pr name check --- .github/workflows/pr-title.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/pr-title.yml diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml new file mode 100644 index 0000000000..e6414e884c --- /dev/null +++ b/.github/workflows/pr-title.yml @@ -0,0 +1,27 @@ +name: PR Conventional Changelog + +on: + pull_request: + types: + - opened + - synchronize + - reopened + - edited + +jobs: + verify_title: + name: Verify Title + runs-on: ubuntu-latest + if: ${{github.event.action != 'edited' || github.event.changes.title}} + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: npm + - name: Install Packages + run: npm ci + - name: Run Commitlint + run: echo "${{github.event.pull_request.title}}" | npx commitlint From 77d4a4f20ffdfa38f7a620661ef723e060539344 Mon Sep 17 00:00:00 2001 From: Andrey Morozov Date: Mon, 1 Jul 2024 19:14:19 +0300 Subject: [PATCH 2/2] ci: rename workflow --- .github/workflows/pr-title.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-title.yml b/.github/workflows/pr-title.yml index e6414e884c..42051123ed 100644 --- a/.github/workflows/pr-title.yml +++ b/.github/workflows/pr-title.yml @@ -1,4 +1,4 @@ -name: PR Conventional Changelog +name: PR Title on: pull_request: