From 305c19b4b4c39705204c91ffb38b724218d0a2c8 Mon Sep 17 00:00:00 2001 From: Omar Aljarrah <50204418+OmarAlJarrah@users.noreply.github.com> Date: Mon, 10 Jun 2024 16:17:38 +0300 Subject: [PATCH] fix: eliminate dependency of unmaintained julienkode pull-request-name-linter-action (#581) https://github.com/ExpediaGroup/expediagroup-java-sdk/pull/581 --- .github/workflows/contribution-lint.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/contribution-lint.yaml b/.github/workflows/contribution-lint.yaml index 5d1bd0e8d..cca9d6509 100644 --- a/.github/workflows/contribution-lint.yaml +++ b/.github/workflows/contribution-lint.yaml @@ -22,8 +22,6 @@ on: - ready_for_review - review_requested - auto_merge_enabled - push: - branches: '*' jobs: contribution-lint: name: Contribution Details Validation @@ -36,6 +34,6 @@ jobs: - name: Install Dependencies run: npm install - name: Run Pull Request Title Validation - uses: JulienKode/pull-request-name-linter-action@v0.5.0 + run: echo "${{ github.event.pull_request.title }}" | npx commitlint --config commitlint.config.js --verbose - name: Run Latest Commit Message Validation - run: git log -1 --pretty=format:"%s" | npx commitlint --config commitlint.config.js --verbose + run: git log -1 --no-merges --pretty=format:"%s" | npx commitlint --config commitlint.config.js --verbose