artemeon / mantis2github

一个小型的命令行工具,可以从 Mantis 工单创建 GitHub 问题。

2.3.0 2024-02-27 11:42 UTC

README

Packagist Version PHPStan Packagist Downloads License

一个小型的命令行工具,可以从 Mantis 工单创建 GitHub 问题。创建交叉引用,因此将 GitHub 问题与 mantis 以及反之相连。

安装

composer global require artemeon/mantis2github

配置

当您首次安装此软件包时,请调用 configure 命令。您只需要这样做一次。

mantis2github configure

该命令将引导您完成安装过程。

快速设置

如果您已经使用过此软件包的先前版本并且已经有一个 config.yaml 文件,您可以通过运行以下命令跳过配置:

mantis2github configure path/to/config.yaml

用法

mantis2github [command]

可用命令

sync

从 Mantis 工单列表创建 GitHub 问题。

mantis2github sync <ids>...
参数
示例
同步单个问题
mantis2github sync 123
同步多个问题
mantis2github sync 123 456 789

read:github

读取 GitHub 问题的详细信息。

mantis2github read:github <id>
参数

read:mantis

读取 Mantis 工单的详细信息。

mantis2github read:mantis <id>
参数

issues:list

获取带有相关 GitHub 问题的 Mantis 工单列表。

mantis2github issues:list [--output=html]
选项

许可证

本项目是开源软件,根据MIT 许可证许可。