Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Designing one slash command

说明与用途

实现 /milestone 票内命令消除了对主机端 CLI 的需求,简化了发布流程并支持自托管。

问题

Engine tickets required a CLI command that tenants could not run, causing a gap between ticket creation and action.

结果

The /milestone command streamlined release workflow, eliminated the need for host-side CLI execution, and improved consistency across self-hosted and managed environments.

工作流

  • 1. Identify the gap where tickets ask for unavailable CLI commands.
  • 2. Design an in-ticket command that mirrors the CLI action.
  • 3. Choose a command name that reflects state rather than action, settling on /milestone.
  • 4. Decide on syntax without a bot mention to support self-hosting.
  • 5. Implement a regex that anchors the command, allows multiline comments, and ignores fenced code blocks.
  • 6. Integrate the command into the engine’s registry and validation system.
  • 7. Test the command in various comment contexts (plain text, quoted replies, indented code blocks).

证据

Closing that gap meant building an in-ticket command: comment /milestone v0.5.40 and the engine does the rest.

来源

In-ticket commands are named after states, not actions.

来源

  • 记录日期: 2026-09-22T19:15:36.534Z