@cypress/github-commit-status-check

中文文档
1.5.0发布于 2019/07/04ISCTypeScriptCommonJS近 30 天下载 2261

Set GitHub commit status

此软件包已被标记为弃用

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

原始使用文档
文档目录4 节
  1. Use
  2. Setting commit check
  3. Adding comment to a commit
  4. Debugging

@cypress/github-commit-status-check

Small utility for setting GitHub commit status based on GH app installation

This utility is meant to be used by GitHub App installations. Thus your environment should have the following 3 pieces of authentication information set as environment variables:

  • GH_APP_ID
  • GH_INSTALLATION_ID
  • GH_PRIVATE_KEY

The GH_PRIVATE_KEY is the base64-encoded private key. For example, if you copy the contents of the private "pem" file into your clipboard, from the terminal you can execute "pbpaste | base64 | pbcopy" and get the encoded string in the clipboard.

As always, for local use I recommend as-a utility.

Use

Primary use via module API, see src/index.ts

Setting commit check

import { setCommitStatus } from '@cypress/github-commit-status-check'
await setCommitStatus({
  // bunch of options
})

There is a bin script src/bin/set-commit-status.ts that reads options from command line arguments. For example, if environment variables are stored under block set-status in your as-a settings, then:

$ as-a set-status npm run set-commit-status -- --repo ...

Adding comment to a commit

$ as-a set-status npm run add-commit-comment -- --repo ...

Debugging

Run with environment variable DEBUG=@cypress/github-commit-status-check to see more log messages

版本与发布记录

@cypress/github-commit-status-check 共发布 3 个版本,首次发布于 2019/04/24;过去 12 个月发布了 0 个版本。

版本发布日期距今
1.5.0latest2019/07/047 年前
1.4.12019/04/247 年前
1.4.02019/04/247 年前

关于 @cypress/github-commit-status-check 的常见问题

@cypress/github-commit-status-check 是什么?

Set GitHub commit status注意:该包已被作者标记为弃用——Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

如何安装 @cypress/github-commit-status-check?

在项目目录运行 npm install @cypress/github-commit-status-check,或使用 pnpm add / yarn add / bun add。

@cypress/github-commit-status-check 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@cypress/github-commit-status-check 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@cypress/github-commit-status-check 可以商用吗?

@cypress/github-commit-status-check 使用 ISC 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cypress/github-commit-status-check 的下载量有多少?

根据 npm 官方下载统计,@cypress/github-commit-status-check 在 2026/10/11 – 2026/11/09 这 30 天内被下载 2,261 次,日均约 75 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cypress/github-commit-status-check 还在维护吗?

最新版本 1.5.0 发布于 2019/07/04(7 年前);至今共发布 3 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/04/24。作者已将其标记为弃用,新项目建议寻找替代方案。