npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

commitlint-plugin-with-jira-issue

v1.2.6

Published

校验commit message是否合规

Downloads

29

Readme

commitlint-plugin-with-jira-issue

校验commit message是否合规,依赖于commitlint-with-demand

Configuration

commitlint-plugin-with-jira-issue picks up configuration from ./.demand.js

  • JIRA_PROJECT: { string | array, default [] }: This is the subject. Example: XX10001

  • domain: { string, default "" }: This is the subject domain. Example: http://jira.domain.com

  • issueId: { Array, default ["10001"] }: The type of issues that needs to be verified. Example: 10001

  • storyId: { string, default "10001" }: The id of stories

  • token: { string, default "" }: This is the subject. Example: window.btoa(`${user}:${token}`). Basic authentication

    1. Build a string of the form username:password.
    2. Encode the string to Base64.
    3. Supply an authorization header with format Authorization: Basic {encoded-string}. Make sure to replace {encoded-string} with your encoded string from Step 2. For example, if your username and password are both fred then the string "fred:fred" encodes to ZnJlZDpmcmVk in Base64.
  • apiVersion: { string, default "/rest/api/2" }: Version of the API.

  • assignee: { boolean, default true }: Whether to verify the assignee.

  • developers: { boolean, default true }: Whether to verify the developers.

  • devfield: { string, default "customfield_11637" }: The field of developers.

  • dueDate: { boolean, default true }: Whether to verify the dueDate.

  • checkPFDate: { boolean, default true }: Whether to verify the PF.

  • checkPFDatefield: { string, default "customfield_13632" }: The field of PF.

  • dueDatelimit: { number, default 0 }: Custom expiration range (day).

// .demand.js
module.exports = {
  JIRA_PROJECT: ["XX10001"], // Your JIRA project name
  domain: "http://jira.domain.com", // domain
  issueId: ["10001"], // 需要校验的issue类型
  storyId: "10001", // 故事的id 默认 10001
  token: "dXNlcjp0b2tlbg==", // base64处理之后得到的token
  apiVersion: "/rest/api/2", // 自定义接口版本 默认是 v2 不建议改动
  assignee: false, // 是否校验经办人 默认是 true
  developers: false, // 是否校验开发人员 默认是 true
  devfield: "", // 自定义开发人员字段,默认是 customfield_11637
  dueDate: false, // 是否校验到期日 默认是 true
  dueDatelimit: 1, // 自定义到期范围提醒 默认是 0
  checkPFDate: false, // 是否校验计划开发完成日期 默认是 true 仅当 issue 的类型为 storyId 时才会校验
  checkPFDatefield: "", // 自定义计划开发完成字段,默认是 customfield_13632
}
  • 获取 token:在浏览器中运行:window.btoa(${user}:${token}) 即可 user:账号 如 abc11;token:密码 如 1234 window.btoa("abc11:1234")