name: Conventional commits on: pull_request: jobs: conventional-commits: name: Conventional commits runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4 with: fetch-depth: 0 - name: Install dart uses: dart-lang/setup-dart@8a4b97ea2017cc079571daec46542f76189836b1 # v1 - name: Install commitlint_cli run: dart pub get - name: Lint conventional commits run: dart run commitlint_cli --from=${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to=${{ github.event.pull_request.head.sha }}