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

tranz-commit-icafe-close

v2.0.2

Published

根据 commit message 自动关闭 icafe 卡片

Downloads

6

Readme

tranz-commit-icafe-close

分析 commit message,修改关联的卡片状态

Usage

const tranz = require('tranz').default
const tranzCommitIcafeClose = require('tranz-commit-icafe-close')

tranz(['feat: 修复 bug #99', 'closed #111 icafe-api-ok-123'].join('\n'), [
  tranzCommitIcafeClose({ spaceId: 'icafe-api', username: 'xxx', password: 'yyy' })
]).then(output => {
  // 将会修改 icafe-api-111 和 icafe-api-ok-123 卡片的状态
  // #99 则不会被处理
})

Options

stateName

修改卡片至什么状态。

当类型为 object 时,如

{
  stateName: {
    'Bug': "已解决",
    "任务": "PM待验收",
    "$fallback": "进行中"
  }
}

表示:类型为 Bug 的卡片,状态更改至 "已解决",任务 则更改至 "PM 待验收",$fallback 则表示其他类型的状态

  • type: string|object
  • default: '开发中'
debug

打印调试信息

  • type: boolean
  • default: false
silent

不 log 任何信息

  • type: boolean
  • default: false

注意:以下选项不存在时,将会向上读取 package.json 中的 icafe 字段获取

spaceId

当遇到 #123 卡片缩写时,将会修改卡片 {spaceId}-123 状态

  • type: string
  • default: undefined
username

icafe username,详见icafe-api

  • type: string
  • default: undefined
password

icafe 虚拟密码,详见icafe-api

  • type: string
  • default: undefined