diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index ffdd2bd..96227fa 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -3,17 +3,18 @@ name: Lint merge commit name on: pull_request: merge_group: - types: [checks_requested] - +# jobs: lint-commit-name: - if: ${{ github.event_name == 'merge_group' }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 1 - - name: Show commit message - run: git log -1 --pretty=%B + # - uses: actions/checkout@v4 + # with: + # fetch-depth: 1 + # # ref: ${{ github.event.pull_request.head.sha }} + # - name: Show commit message + # run: git log -1 --pretty=%B - uses: wagoid/commitlint-github-action@v5 + with: + commitDepth: 10