Socket
Socket
Sign inDemoInstall

@baidu-map/bz

Package Overview
Dependencies
35
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @baidu-map/bz

专门符合百度地图物流团队规范


Version published
Maintainers
1
Created

Readme

Source

bz

百度地图物流团队约束git commit message ,内置的百度内部的卡片ID校验

使用

  • 如果全局安装,可直接在控制台中使用 bz 代替 git commit

  • 如果是项目安装,可以在package.json中加一条 命令 "commit":bz

icafeId

在message中增加了一个卡片ID的参数

 messages: {
    icafeId: "请输入iCafe 卡片 ID(必填)",
},

如何关闭 icafeId

.bz-config.js 中配置skipQuestions ["icafeId"] 跳过该步骤

默认配置

可根据默认配置自由调整

module.exports = {
    types: [
        { value: "💥 feat", name: "💥 feat:   新功能" },
        { value: "🐛 fix", name: "🐛 fix:    修复" },
        { value: "📝 docs", name: "📝 docs:   文档变更" },
        { value: "🌷 UI", name: "🌷 UI:     代码格式(不影响代码运行的变动)" },
        {
            value: "🛠 refactor",
            name: "🛠 refactor:   重构(既不是增加功能,也不是修复bug)",
        },
        { value: "💄 perf", name: "💄 perf:   性能优化" },
        { value: "🔬 test", name: "🔬 test:   增加测试" },
        { value: "🏰 chore", name: "🏰 chore:  构建过程或辅助工具的变动" },
        { value: "📎 revert", name: "📎 revert:   回退" },
        { value: "⛏ build", name: "⛏ build:   打包" },
    ],

    messages: {
        type: "请选择提交类型:",
        customScope: "请输入修改范围(可选):",
        subject: "请简要描述提交(必填):",
        icafeId: "请输入iCafe 卡片 ID(必填)",
        confirmCommit: "确认使用以上信息提交?(y/n)",
    },
    // 需要跳过的问题
    skipQuestions: ["footer"],
    subjectLimit: 100,
};


Keywords

FAQs

Last updated on 11 Aug 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc