Perl::RT2Github - Given RT ticket number, find corresponding Github issue
use Perl::RT2Github; my $self = Perl::RT2Github->new(); my $github_url = $self->get_github_url( 125740 ); my $github_urls_ref = $self->get_github_urls( 125740, 133776 ); my $github_id = $self->get_github_id( 125740 ); my $github_ids_ref = $self->get_github_ids( 125740, 133776 );
With the recent move of Perl 5 issue tracking from rt.cpan.org to github.com, we need to be able to take a list of RT ticket numbers and look up the corresponding github issue IDs and URLs. This module is a first attempt at doing so.
new()
Purpose
Perl::RT2Github constructor.
Arguments
my $self = Perl::RT2Github->new({ timeout => 120});
Hash reference; optional. Currently, the only possible element in this hashref is timeout, whose value defaults to 120 seconds.
timeout
Return Value
Perl::RT2Github object.
get_github_url()
Get github.com URL for old RT ticket number.
my $github_url = $self->get_github_url( 125740 );
A single rt.perl.org ticket ID, which must be all-numeric.
String holding URL for corresponding github.com issue.
get_github_urls()
Get github.com URLs for multiple old RT ticket numbers.
my $got = $self->get_github_urls( 125740, 200895 );
List of rt.perl.org ticket IDs.
Hash reference.
get_github_id()
Get github.com issue number for old RT ticket number.
my $github_id = $self->get_github_id( 125740 );
String holding github.com issue number.
get_github_ids()
Get github.com ID numbers for multiple old RT ticket numbers.
my $github_ids_ref = $self->get_github_ids( 125740, 133776 );
List of RT ticket numbers, which must each be all numeric.
None so far.
The author prefers patches over pull requests on github.com. To report bugs or otherwise contribute to the development of this module, please attach a patch (e.g., output of git format-patch) to either (a) an email sent to bug-Perl-RT2Github@rt.cpan.orgor use the web interface at https://rt.cpan.org/Ticket/Create.html?Queue=Perl-RT2Github.
git format-patch
bug-Perl-RT2Github@rt.cpan.org
James E Keenan CPAN ID: JKEENAN jkeenan@cpan.org http://thenceforward.net/perl
Implementation suggestions from Dagfinn Ilmari Mannsåker and Dan Book. Correction of error in Changes from Graham Knop. Patch to Makefile.PL from Mohammad S Anwar.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
perl(1).
To install Perl::RT2Github, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::RT2Github
CPAN shell
perl -MCPAN -e shell install Perl::RT2Github
For more information on module installation, please visit the detailed CPAN module installation guide.