name: Conventional commits on: pull_request: jobs: conventional-commits: name: Conventional commits runs-on: ubuntu-22.04 steps: - name: Checkout repository uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 with: fetch-depth: 0 - name: Install dart uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d # 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 }}