Add Gitlab functionalities #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint commit messages | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
commitlint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout "main" branch | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Checkout the current pull request branch | |
run: git checkout ${{ github.event.pull_request.head.ref }} | |
- name: Install dependencies | |
run: npm ci | |
- name: Lint commit messages | |
run: npm run commit-messages:lint |