From c0826e2cba98793889fe6691e048d14cb0b4563d Mon Sep 17 00:00:00 2001 From: Kutsan Kaplan Date: Tue, 8 Jun 2021 21:31:28 +0300 Subject: [PATCH] ci(commitlint): add initial commitlint config for pull requests --- .github/workflows/commitlint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/commitlint.yml diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml new file mode 100644 index 00000000..e46576c5 --- /dev/null +++ b/.github/workflows/commitlint.yml @@ -0,0 +1,24 @@ +name: commitlint + +on: pull_request + +jobs: + commitlint: + name: commitlint + runs-on: ubuntu-20.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: 16.x + + - name: Install dependencies + run: npm install + + - name: Lint commit messages + run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose