webiny/action-conventional-commits
GitHub: webiny/action-conventional-commits
这是一个 GitHub Action,用于在 CI 环境中自动检查提交是否符合 Conventional Commits 标准。
Stars: 75 | Forks: 33
# 规范提交 GitHub Action
一个简单的 GitHub Action,确保所有提交信息都遵循 [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0-beta.2/) 规范。

请注意,通常情况下,您会在预提交钩子中进行此类检查(例如,使用类似 [Commitlint](https://commitlint.js.org/) 的工具),但这些检查很容易被跳过,因此才有了这个 GitHub Action。
### 用法
最新版本:`v1.4.2`
```
name: Conventional Commits
on:
pull_request:
branches: [ master ]
jobs:
build:
name: Conventional Commits
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: webiny/action-conventional-commits@v1.4.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Optional, for private repositories.
allowed-commit-types: "feat,fix" # Optional, set if you want a subset of commit types to be allowed.
```
标签:Conventional Commits, Git, GitHub Actions, LNA, MITM代理, pre-commit hook, SOC Prime, 代码提交规范, 发布自动化, 安全可观测性, 开发工具, 开源框架, 持续集成, 提交信息验证, 数据可视化, 数据管道, 版本控制, 自动化攻击, 自动化检查, 自动笔记, 软件工程