summaryrefslogtreecommitdiff
path: root/javascript/videojs/.github/workflows/pr-titles.yml
blob: 0c62fd3e1b47c48f690fcc8980866dac2fbb4490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: PR title check

on:
  pull_request:
    types: [opened, reopened, edited, synchronize]
    branches: [main]

concurrency:
  group: ${{ github.workflow }}-${{ github.event.number }}
  cancel-in-progress: true

jobs:
  pr-title-lint:
    name: Should follow conventional commit spec
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '20'
      - run: npm i @actions/core @actions/github
      - run: node .github/actions/pr-titles.mjs