1name: Commit messages check 2on: 3 pull_request: 4 5jobs: 6 gitlint: 7 name: Check commit messages 8 runs-on: ubuntu-latest 9 steps: 10 - name: Checkout repository 11 uses: actions/checkout@v4 12 with: 13 ref: ${{ github.event.pull_request.head.sha }} 14 fetch-depth: 0 15 - name: Set up Python 3.10 16 uses: actions/setup-python@v3 17 with: 18 python-version: "3.10" 19 - name: Install dependencies 20 run: | 21 python -m pip install --upgrade pip 22 pip install --upgrade gitlint 23 - name: Lint git commit messages 24 run: | 25 gitlint --commits origin/$GITHUB_BASE_REF.. 26