mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
3715ae645d
* chore: bump plugins version * refactor: replace deprecated API calls * chore(lsp): update skipped servers list * ci: update workflows * ci: update release names in installer script * ci: use action-setup-vim
26 lines
989 B
YAML
26 lines
989 B
YAML
name: "Commit Linter"
|
|
on:
|
|
pull_request: # By default, a workflow only runs when a pull_request event's activity type is opened, synchronize, or reopened.
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
- reopened
|
|
jobs:
|
|
lint-pr-title:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
HELP_URL: "https://github.com/LunarVim/LunarVim/blob/rolling/CONTRIBUTING.md#commit-messages"
|
|
COMMITLINT_CONFIG: ${{ format('{0}/.github/workflows/commitlint.config.js', github.workspace) }}
|
|
GH_REPO: ${{ github.repository }}
|
|
PR_NUMBER: ${{ github.event.pull_request.number }}
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: install commitlint
|
|
run: |
|
|
npm install --save-dev @commitlint/cli
|
|
- name: run commitlint
|
|
run: |
|
|
echo "$PR_TITLE" | npx commitlint --verbose --help-url "$HELP_URL" --config "$COMMITLINT_CONFIG"
|