DX: lint PRs with @compwa/commitlint-config
#447
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR linting | |
on: | |
pull_request: | |
types: | |
- edited | |
- labeled | |
- opened | |
- reopened | |
- synchronize | |
- unlabeled | |
jobs: | |
check-labels: | |
name: Check labels | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: docker://agilepathway/pull-request-label-checker:latest # cspell:ignore agilepathway | |
with: | |
any_of: >- | |
🐛 Bug,✨ Feature,⚙️ Enhancement,⚠️ Interface,❗ Behavior,📝 Docs,🔨 Maintenance,🖱️ DX | |
none_of: Epic,💫 Good first issue | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
check-title: | |
name: Check title | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- run: npm install @commitlint/config-conventional | |
- run: npm install @compwa/commitlint-config | |
- name: Create commitlint config | |
run: | | |
echo "module.exports = {extends: ['@compwa/commitlint-config']}" > commitlint.config.js | |
- uses: JulienKode/[email protected] # cspell:ignore kode |