summaryrefslogtreecommitdiff
path: root/javascript/videojs/.github/workflows/pr-titles.yml
diff options
context:
space:
mode:
Diffstat (limited to 'javascript/videojs/.github/workflows/pr-titles.yml')
-rw-r--r--javascript/videojs/.github/workflows/pr-titles.yml22
1 files changed, 22 insertions, 0 deletions
diff --git a/javascript/videojs/.github/workflows/pr-titles.yml b/javascript/videojs/.github/workflows/pr-titles.yml
new file mode 100644
index 0000000..0c62fd3
--- /dev/null
+++ b/javascript/videojs/.github/workflows/pr-titles.yml
@@ -0,0 +1,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