artemeon / mantis2github
A small CLI tool to create a GitHub issue from a Mantis ticket.
Requires
- php: >=8.0
- composer-runtime-api: ^2.2.2
- ext-json: *
- ahinkle/packagist-latest-version: ^2.0
- artemeon/console: ^0.4.1
- guzzlehttp/guzzle: ^7.3.0
- nunomaduro/termwind: ^1.5|^2.0
- symfony/console: ^5.0|^6.0|^7.0
- symfony/yaml: ^5.0|^6.0|^7.0
Requires (Dev)
- roave/security-advisories: dev-latest
README
A small CLI tool to create a GitHub issue out of a Mantis issue. Creates cross-references, so links the GitHub issue to mantis and vice versa.
Installation
composer global require artemeon/mantis2github
Configuration
When you first installed the package, call the configure
command. You only need to do this once.
mantis2github configure
The command will direct you through the installation process.
Quick setup
If you have used a previous version of this package and already have a config.yaml
file, you can skip the configuration by running:
mantis2github configure path/to/config.yaml
Usage
mantis2github [command]
Available Commands
sync
Create a GitHub issue from a list of Mantis issues.
mantis2github sync <ids>...
Arguments
Examples
Sync a single issue
mantis2github sync 123
Sync multiple issues
mantis2github sync 123 456 789
read:github
Read details of a GitHub issue.
mantis2github read:github <id>
Arguments
read:mantis
Read details of a Mantis issue.
mantis2github read:mantis <id>
Arguments
issues:list
Get a list of Mantis Tickets with their associated GitHub Issues.
mantis2github issues:list [--output=html]
Options
License
This project is open-sourced software licensed under the MIT license.