• conventional-changelog standard-version 配置项


    schema.json

    {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "title": "Conventional Changelog Configuration",
        "description": "Describes the configuration options supported by conventional-config for upstream tooling.",
        "type": "object",
        "properties": {
            "header": {
                "type": "string",
                "description": "A string to be used as the main header section of the CHANGELOG.",
                "default": "# Changelog\n\n"
            },
            "types": {
                "description": "An array of `type` objects representing the explicitly supported commit message types, and whether they should show up in generated `CHANGELOG`s.",
                "type": "array",
                "items": {
                    "$ref": "#/definitions/type"
                },
                "default": [
                    {"type": "feat", "section": "Features"},
                    {"type": "fix", "section": "Bug Fixes"},
                    {"type": "chore", "hidden": true},
                    {"type": "docs", "hidden": true},
                    {"type": "style", "hidden": true},
                    {"type": "refactor", "hidden": true},
                    {"type": "perf", "hidden": true},
                    {"type": "test", "hidden": true}
                ]
            },
            "preMajor": {
                "type": "boolean",
                "description": "Boolean indicating whether or not the action being run (generating CHANGELOG, recommendedBump, etc.) is being performed for a pre-major release (<1.0.0).\n This config setting will generally be set by tooling and not a user.",
                "default": false
            },
            "commitUrlFormat": {
                "type": "string",
                "description": "A URL representing a specific commit at a hash.",
                "default": "{{host}}/{{owner}}/{{repository}}/commit/{{hash}}"
            },
            "compareUrlFormat": {
                "type": "string",
                "description": "A URL representing the comparison between two git SHAs.",
                "default": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}"
            },
            "issueUrlFormat": {
                "type": "string",
                "description": "A URL representing the issue format (allowing a different URL format to be swapped in for Gitlab, Bitbucket, etc).",
                "default": "{{host}}/{{owner}}/{{repository}}/issues/{{id}}"
            },
            "userUrlFormat": {
                "type": "string",
                "description": "A URL representing the a user's profile URL on GitHub, Gitlab, etc. This URL is used for substituting @bcoe with https://github.com/bcoe in commit messages.",
                "default": "{{host}}/{{user}}"
            },
            "releaseCommitMessageFormat": {
                "type": "string",
                "description": "A string to be used to format the auto-generated release commit message.",
                "default": "chore(release): {{currentTag}}"
            },
            "issuePrefixes": {
                "type": "array",
                "items": {
                    "type": "string"
                },
                "description": "An array of prefixes used to detect references to issues",
                "default": ["#"]
            }
        },
        "definitions": {
            "type": {
                "description": "An object that describes a commit type's settings in the CHANGELOG",
                "type": "object",
                "properties": {
                    "type": {
                        "description": "A string used to match <type>s used in the Conventional Commits convention.",
                        "type": "string"
                    },
                    "scope": {
                        "description": "A string used to match `[optional scope]` used in the Conventional Commits convention.",
                        "type": "string"
                    },
                    "section": {
                        "description": "The section where the matched commit type will display in the CHANGELOG.",
                        "type": "string"
                    },
                    "hidden": {
                        "description": "Set to `true` to hide matched commit types in the CHANGELOG.",
                        "type": "boolean"
                    }
                },
                "required": ["type"],
                "oneOf": [
                    {
                        "required": ["section"]
                    },
                    {
                        "required": ["hidden"]
                    }
                ]
            }
        }
    }
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43
    • 44
    • 45
    • 46
    • 47
    • 48
    • 49
    • 50
    • 51
    • 52
    • 53
    • 54
    • 55
    • 56
    • 57
    • 58
    • 59
    • 60
    • 61
    • 62
    • 63
    • 64
    • 65
    • 66
    • 67
    • 68
    • 69
    • 70
    • 71
    • 72
    • 73
    • 74
    • 75
    • 76
    • 77
    • 78
    • 79
    • 80
    • 81
    • 82
    • 83
    • 84
    • 85
    • 86
    • 87
    • 88
    • 89
    • 90
    • 91
    • 92
    • 93
    • 94
    • 95
    • 96
    • 97
    • 98
    • 99
    • 100
    • 101
  • 相关阅读:
    R语言聚类分析
    人员定位成为化工企业安全管理的新支撑
    半解析快速傅里叶变换
    C# in a Nutshell 系列(3)C#语言基础
    Gemmini测试test文件chisel源码详解(四)
    kali——tcpdump的使用
    Spring读取.xml和通过Java类配置对比
    H3C AC通过Web平台进行AC软件的升级?
    Vue3.2中,CSS与数据的双向绑定
    带你入门HTML+CSS网页设计,编写网页代码的思路
  • 原文地址:https://blog.csdn.net/MAIMIHO/article/details/125510790