Comments (2)
能大致说说第3点的思路么?
我先说一下我的需求:
有点类似于如下.commitlintrc.json
这个配置文件的目的——指定每个项目特有的规则。
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"scope-enum": [
2,
"always",
[
"rest",
"service",
"shared",
"tests",
"db",
"redis",
"cicd",
"devops",
"docker",
"build",
"conf",
"javadoc",
"doc"
]
]
}
}
from plugins.
能大致说说第3点的思路么?
我先说一下我的需求:
有点类似于如下
.commitlintrc.json
这个配置文件的目的——指定每个项目特有的规则。{ "extends": [ "@commitlint/config-conventional" ], "rules": { "scope-enum": [ 2, "always", [ "rest", "service", "shared", "tests", "db", "redis", "cicd", "devops", "docker", "build", "conf", "javadoc", "doc" ] ] } }
- 支持添加自定义
type
及相关scope
、footerType
,根据这些配置信息会在项目下自动生成conventionalcommit.json
配置,用于导入Conventional Commit
插件 - 另外
footerType
支持是否必填
校验配置,比如:Reviewer
- 后续也可以支持一些自定义正则,比如某种注脚需要什么样的格式
目前的conventionalcommit.json
默认配置如下:
{
"types": {
"refactor": {
"description": "Changes which neither fix a bug nor add a feature"
},
"fix": {
"description": "Changes which patch a bug"
},
"feat": {
"description": "Changes which introduce a new feature"
},
"build": {
"description": "Changes which affect the build system or external dependencies.<br/>Example scopes: gulp, broccoli, npm",
"scopes": {
"npm": {},
"gulp": {},
"broccoli": {}
}
},
"chore": {
"description": "Changes which aren't user-facing"
},
"style": {
"description": "Changes which don't affect code logic, such as white-spaces, formatting, missing semi-colons"
},
"test": {
"description": "Changes which add missing tests or correct existing tests"
},
"docs": {
"description": "Changes which affect documentation"
},
"perf": {
"description": "Changes which improve performance"
},
"ci": {
"description": "Changes which affect CI configuration files and scripts.<br/>Example scopes: travis, circle, browser-stack, sauce-labs"
},
"revert": {
"description": "Changes which revert a previous commit"
}
},
"footerTypes": [
{
"name": "BREAKING CHANGE",
"description": "The commit introduces breaking API changes"
},
{
"name": "Closes",
"description": "The commit closes issues or pull requests"
},
{
"name": "Implements",
"description": "The commit implements features"
},
{
"name": "Co-authored-by",
"description": "The commit is co-authored by another person.<br/>For multiple people use one line each"
},
{
"name": "Refs",
"description": "The commit references other commits by their hash ID.<br/>For multiple hash IDs use a comma as separator"
}
]
}
from plugins.
Related Issues (20)
- ✨ 添加lombok.config配置功能
- ✨ 个性化com.github.ben-manes.versions插件配置,强化pub.ihub.plugin.ihub-bom版本管理
- 1、自定义版本文本导出格式、打印表格
- 2、个性化`manes.versions`配置,参见:https://github.com/ben-manes/gradle-versions-plugin
- 可以自动升级组件版本
- 🐛 bom插件还原spring-dependency-management管理组件版本
- ✨ 集成MapStruct
- ✨ 集成JMoleculesPlugin
- ✨ 为iHubTest和iHubBoot添加基于正则表达式的runIncludePropNames设置方式 HOT 3
- ✨ 支持Groovy 4
- 🐛 应对Spring安全漏洞,升级依赖组件版本
- ✨ 文档整理
- ✨ 适配SpringBoot3.0
- 请协助查看一下cornucopia使用最新版本插件时问题 HOT 5
- ✨ 为非SpringBoot项目提供UberJar构建支持 HOT 2
- 🐛 iHubJava的log依赖中缺少jcl-over-slf4j
- ✨ 集成 jacoco-report-aggregation 插件,便于查看各项目覆盖率合并后的报告 HOT 4
- ✨ 请为AbstractCompile型任务的options添加一个compilerArgs的扩展属性支持
- ✨ 为Java型任务添加传入Jvm Options的参数
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plugins.