瀏覽代碼

Merge pull request #14 from Deuchnord/commitlint

build: add commitlint configuration
tags/v0.2.3
Jérôme Deuchnord 4 年之前
committed by GitHub
父節點
當前提交
33c0370e9f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 2 個檔案被更改,包括 22 行新增0 行删除
  1. +21
    -0
      .github/workflows/commitlint.yml
  2. +1
    -0
      commitlint.config.js

+ 21
- 0
.github/workflows/commitlint.yml 查看文件

@@ -0,0 +1,21 @@
name: Commit lint

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 13.x
- name: setup
run: |
npm install -g @commitlint/cli @commitlint/config-conventional
- name: commitlint
run: |
git log --format=%B -n 1 $GITHUB_SHA | commitlint


+ 1
- 0
commitlint.config.js 查看文件

@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}

Loading…
取消
儲存