mirror of
https://github.com/google/blockly.git
synced 2026-01-11 02:47:09 +01:00
chore: add commitlint workflow (#9409)
* chore: add commitlint workflow * chore: exit 1 on fail * chore: use builtin helpurl
This commit is contained in:
22
.github/workflows/conventional-label.yml
vendored
22
.github/workflows/conventional-label.yml
vendored
@@ -3,8 +3,28 @@ on:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
name: conventional-release-labels
|
||||
name: commit lint & label
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: read
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
cache: npm
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Check PR title
|
||||
id: check-pr-title
|
||||
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose
|
||||
|
||||
label:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
||||
Reference in New Issue
Block a user