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