mirror of
https://github.com/google/blockly.git
synced 2025-12-16 06:10:12 +01:00
41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- edited
|
|
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:
|
|
issues: write
|
|
pull-requests: write
|
|
steps:
|
|
- uses: bcoe/conventional-release-labels@v1
|
|
with:
|
|
type_labels:
|
|
'{"feat": "PR: feature", "fix": "PR: fix", "breaking": "breaking
|
|
change", "chore": "PR: chore", "docs": "PR: docs", "refactor": "PR:
|
|
refactor", "revert": "PR: revert", "deprecate": "deprecation"}'
|
|
ignored_types: '[]'
|