From a628e2c5881308df0eb0105f22f03b7b5b455958 Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Fri, 19 May 2023 16:35:26 +0530 Subject: [PATCH 1/4] fix: commit lint is updated --- .github/workflows/commitlint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 0f4a4b94db..9367c00d61 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -15,4 +15,4 @@ jobs: # or just "yarn" if you depend on "@commitlint/cli" already - run: yarn add @commitlint/cli - run: yarn add @commitlint/config-conventional - - run: yarn run commitlint --config ./node_modules/@commitlint/config-conventional/index.js --from HEAD~${{ github.event.pull_request.commits }} --to HEAD + - run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose From 50572b6fe66754c5e677dfed0697ffffcc0163e7 Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Fri, 19 May 2023 16:39:20 +0530 Subject: [PATCH 2/4] chore: command is updated --- .github/workflows/commitlint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 9367c00d61..8b9fc241fa 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -15,4 +15,4 @@ jobs: # or just "yarn" if you depend on "@commitlint/cli" already - run: yarn add @commitlint/cli - run: yarn add @commitlint/config-conventional - - run: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose + - run: yarn commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose From 21ac21841a1a5850fe8684e9889d1c9dcdf6cedc Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Fri, 19 May 2023 16:44:11 +0530 Subject: [PATCH 3/4] chore: added dummy commit message --- .github/workflows/commitlint.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 8b9fc241fa..f18ce5c0a5 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -15,4 +15,6 @@ jobs: # or just "yarn" if you depend on "@commitlint/cli" already - run: yarn add @commitlint/cli - run: yarn add @commitlint/config-conventional + - name: Create dummy COMMIT_EDITMSG + run: echo "dummy" > .git/COMMIT_EDITMSG - run: yarn commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose From 02e9317c622a3fb742a144225e78a6138fd6bfc0 Mon Sep 17 00:00:00 2001 From: Palash Gupta Date: Fri, 19 May 2023 16:49:15 +0530 Subject: [PATCH 4/4] chore: updated the github actions --- .github/workflows/commitlint.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index f18ce5c0a5..b624a90b9f 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -7,14 +7,7 @@ jobs: lint-commits: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.1 + - uses: actions/checkout@v3 with: - # we actually need "github.event.pull_request.commits + 1" commit fetch-depth: 0 - - uses: actions/setup-node@v2.1.0 - # or just "yarn" if you depend on "@commitlint/cli" already - - run: yarn add @commitlint/cli - - run: yarn add @commitlint/config-conventional - - name: Create dummy COMMIT_EDITMSG - run: echo "dummy" > .git/COMMIT_EDITMSG - - run: yarn commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose + - uses: wagoid/commitlint-github-action@v5