Skip to content
项目

JulienKode/pull-request-name-linter-action

在 GitHub 查看

关于

⚡️ Lint pull request name with commit lint. This is useful if you squash merge your pull requests ⚡️

效率与自动化

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
0

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

⚡️ Pull request name linter with commitlint ⚡️


build GitHub issues GitHub forks GitHub stars GitHub license Watch on GitHub Tweet

GitHub action to automatically lint pull request name with commitlint. This is useful if squash merge your pull request for example.

Note: If you are looking to lint the commits of your pull request with commitlint you can use commitlint-github-action

This package uses commitlint version 20

Configuration

Usage

Create .github/workflows/pr-name.yml

Create a workflow (eg: .github/workflows/pr-name.yml see Creating a Workflow file). Here is an example of configuration

name: pr-name-linter
on:
  pull_request:
    types: ['opened', 'edited', 'reopened', 'synchronize']

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4
    - name: Install Dependencies
      run: npm install @commitlint/config-conventional
    - uses: JulienKode/[email protected]

Note: make sure you install your dependencies that commitlint use

Example

If you want to see an example of usage you can checkout this repository: https://github.com/JulienKode/pull-request-name-linter-action-example

image

探索相关项目

加载中…