@ckeditor/ckeditor5-dev-stale-bot

中文文档
63.1.3发布于 2026/11/09GPL-2.0-or-laterES Module近 30 天下载 4988

A stale bot is used to mark issues and pull requests that have not recently been updated.

原始使用文档
文档目录4 节
  1. Usage
  2. Configuration
  3. Changelog
  4. License

CKEditor 5 Stale bot

npm version CircleCI

A stale bot is used to mark issues and pull requests that have not recently been updated.

More information about development tools packages can be found at the following URL: https://github.com/ckeditor/ckeditor5-dev.

Usage

To execute the stale bot, run the following command:

pnpm run ckeditor5-dev-stale-bot [<args>...]

This script accepts the following arguments:

  • --config-path – Required. Path to a JSON or JavaScript file containing stale bot configuration.
  • --dry-run – Optional, false by default. Allows disabling any changes to GitHub if set to true. By default stale bot makes use of your real, live, production data.

Configuration

The following configuration options are supported by the stale bot:

  • GITHUB_TOKEN – Required. A GitHub token with the repo:* scope needed for managing repositories and issues.
  • REPOSITORY_SLUG – Required. The repository name in the format of owner/name, where stale bot will check for stale issues and pull requests.
  • STALE_LABELS – Required. A list of labels to add on staled issues and pull requests.
  • CLOSE_ISSUE_LABELS – Required. A list of labels to add after closing a stale issue.
  • CLOSE_PR_LABELS – Required. A list of labels to add after closing a stale pull request.
  • STALE_ISSUE_MESSAGE – Required. A comment that is added on the staled issues.
  • STALE_PR_MESSAGE – Required. A comment that is added on the staled pull requests.
  • CLOSE_ISSUE_MESSAGE – Required. A comment that is added on the closed issues.
  • CLOSE_PR_MESSAGE – Required. A comment that is added on the closed pull requests.
  • DAYS_BEFORE_STALE – Optional, 365 by default. The number of days without the required activity that qualifies an issue or pull request to be marked as stale. The dates taken into account are:
    • the creation date,
    • the last date of editing an issue or pull request,
    • the last date of adding a reaction to the body of issue or pull request,
    • the last date of adding or editing a comment,
    • the last date of changing a label.
  • DAYS_BEFORE_STALE_PENDING_ISSUE – Optional, 14 by default. The number of days without a comment on pending issue from a non-team member that qualifies the issue to be marked as stale.
  • PENDING_ISSUE_LABELS – Optional, an empty array by default. A list of labels that identify a pending issue. If empty, then pending issues are not processed.
  • STALE_PENDING_ISSUE_MESSAGE – Optional, set to the value from STALE_ISSUE_MESSAGE by default. A comment that is added on the staled pending issues.
  • DAYS_BEFORE_CLOSE – Optional, 30 by default. The number of days before closing the stale issues or the stale pull requests.
  • IGNORE_VIEWER_ACTIVITY – Optional, true by default. If set, the activity from the currently authenticated user is ignored.
  • IGNORED_ISSUE_LABELS – Optional, an empty array by default. A list of labels, whose assignment to an issue causes the issue to be ignored, even if it fits the stale criteria.
  • IGNORED_PR_LABELS – Optional, an empty array by default. A list of labels, whose assignment to a pull request causes the pull request to be ignored, even if it fits the stale criteria.
  • IGNORED_ACTIVITY_LABELS – Optional, an empty array by default. A list of labels, whose assignment to an issue or pull request is not counted as an activity event.
  • IGNORED_ACTIVITY_LOGINS – Optional, an empty array by default. A list of GitHub logins, whose activities are not counted.

Changelog

See the CHANGELOG.md file.

License

Licensed under the terms of GNU General Public License Version 2 or later. For full details about the license, please check the LICENSE.md file.

版本与发布记录

@ckeditor/ckeditor5-dev-stale-bot 共发布 172 个版本,首次发布于 2023/12/14;过去 12 个月发布了 80 个版本。

版本发布日期距今
63.1.3latest2026/11/09今天
63.1.22026/11/063 天前
54.11.0latest-v542026/11/036 天前
63.1.12026/11/027 天前
61.4.0latest-v612026/10/2812 天前
63.1.02026/10/2812 天前

其他发布通道:next → 54.2.1,alpha → 57.0.0-alpha.1,latest-v61 → 61.4.0,latest-v54 → 54.11.0。

关于 @ckeditor/ckeditor5-dev-stale-bot 的常见问题

@ckeditor/ckeditor5-dev-stale-bot 是什么?

A stale bot is used to mark issues and pull requests that have not recently been updated.

如何安装 @ckeditor/ckeditor5-dev-stale-bot?

在项目目录运行 npm install @ckeditor/ckeditor5-dev-stale-bot,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 ckeditor5-dev-stale-bot,可以用 npx ckeditor5-dev-stale-bot 直接运行。

@ckeditor/ckeditor5-dev-stale-bot 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/ckeditor__ckeditor5-dev-stale-bot 是否存在。

@ckeditor/ckeditor5-dev-stale-bot 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@ckeditor/ckeditor5-dev-stale-bot 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=26.10.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@ckeditor/ckeditor5-dev-stale-bot 可以商用吗?

@ckeditor/ckeditor5-dev-stale-bot 使用 GPL-2.0-or-later 许可。强 Copyleft:分发包含该代码的软件时,整个作品需以兼容的 GPL 许可开源。仅在内部使用、不对外分发时不触发此义务。以上为概括,不构成法律意见,请以许可原文为准。

@ckeditor/ckeditor5-dev-stale-bot 的下载量有多少?

根据 npm 官方下载统计,@ckeditor/ckeditor5-dev-stale-bot 在 2026/10/10 – 2026/11/08 这 30 天内被下载 4,988 次,日均约 166 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ckeditor/ckeditor5-dev-stale-bot 还在维护吗?

最新版本 63.1.3 发布于 2026/11/09(今天);至今共发布 172 个版本,其中过去 12 个月发布了 80 个;首次发布于 2023/12/14。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。